SymbolPoint service and client setup: Difference between revisions
Created page with "This page covers running SymbolPoint under GDK5 MariaServiceHoster and connecting MariaApplication or third-party apps to the new HTTP service or an existing GDK4 service. == Run SymbolPoint under MariaServiceHoster == For general host configuration and deployment, see configuration, hosting and routing, and deployment. SymbolPoint is disable..." |
No edit summary |
||
| Line 23: | Line 23: | ||
With the default routing, clients use the host's HTTP listener on port <code>5110</code> at <code>/symbolpoint</code>; the child listens on loopback port <code>5121</code>. Check <code>http://127.0.0.1:5110/symbolpoint/ready</code>: HTTP 200 means at least one product loaded. When Swagger is enabled, browse to <code>/symbolpoint/swagger/index.html</code> on the same host. | With the default routing, clients use the host's HTTP listener on port <code>5110</code> at <code>/symbolpoint</code>; the child listens on loopback port <code>5121</code>. Check <code>http://127.0.0.1:5110/symbolpoint/ready</code>: HTTP 200 means at least one product loaded. When Swagger is enabled, browse to <code>/symbolpoint/swagger/index.html</code> on the same host. | ||
== How MariaApplication selects a SymbolPoint source == | |||
MariaApplication selects one source at startup: | |||
# '''Local files:''' A nonempty <code>symbolPointConfig.dataSources</code> list in the effective <code>GeneralConfiguration.json</code> selects the integrated renderer, regardless of the service endpoint. | |||
# '''GDK5 HTTP:''' With no local sources, a <code>SymbolPointService</code> endpoint with a nonblank address and neither a nonblank <code>bindingRef</code> nor an explicit <code>binding</code> selects the GDK5 HTTP client. | |||
# '''Legacy WCF:''' Otherwise, MariaApplication uses the named <code>SymbolPointService</code> endpoint as a WCF endpoint. The shared configuration defaults to WCF. | |||
This is startup selection, not failover. If the selected service is unreachable, MariaApplication does not switch sources or transports. | |||
== Connect MariaApplication to GDK5 HTTP == | == Connect MariaApplication to GDK5 HTTP == | ||
If local sources are configured, set <code>symbolPointConfig.dataSources</code> to <code>[]</code> in <code>GeneralConfiguration.local.json</code> to clear the inherited list. Add or update the following entry in <code>ClientServiceConfiguration.local.json</code>: | |||
<syntaxhighlight lang="json"> | <syntaxhighlight lang="json"> | ||
{ | { | ||
" | "endpoints": [ | ||
{ | |||
"name": "SymbolPointService", | |||
"address": "http://127.0.0.1:5110/symbolpoint", | |||
"bindingRef": null | |||
} | |||
] | |||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
For a remote deployment, use its published scheme, host, and port. | For a remote deployment, use its published scheme, host, and port. Use the service base URL ending in <code>/symbolpoint</code>, not a <code>/web</code> or <code>/api/v1</code> endpoint. The <code>endpoints</code> array merges by name: <code>"bindingRef": null</code> clears the inherited WCF reference, while omitting it keeps the shared value. If your base endpoint supplies an explicit <code>binding</code>, remove it from that endpoint to use HTTP. | ||
Place each <code>.local.json</code> beside its active base file. MariaApplication looks in <code>%LocalAppData%\TeleplanGlobe\MariaGDK</code> first, then in the application folder. When running from source, local override files in the MariaApplication project directory are ignored by Git and copied to the application output on build. Restart MariaApplication after changing the effective configuration. | |||
If you previously configured <code>symbolPointConfig.httpServiceUri</code>, remove it and use the named endpoint above instead. | |||
GDK5 also accepts APP-6C/2525C codes with an unambiguous single-point mapping. These render using Delta artwork, not the original GDK4 Charlie artwork. Use the legacy service if you need that artwork. | GDK5 also accepts APP-6C/2525C codes with an unambiguous single-point mapping. These render using Delta artwork, not the original GDK4 Charlie artwork. Use the legacy service if you need that artwork. | ||
| Line 42: | Line 60: | ||
== Connect MariaApplication to legacy GDK4 WCF == | == Connect MariaApplication to legacy GDK4 WCF == | ||
Leave <code>symbolPointConfig.dataSources</code> absent or empty in the effective configuration. Remove the HTTP <code>SymbolPointService</code> override if the shared WCF endpoint already points to your GDK4 service. Otherwise, replace the override with a WCF address and binding reference: | |||
<syntaxhighlight lang="json"> | <syntaxhighlight lang="json"> | ||
| Line 49: | Line 67: | ||
{ | { | ||
"name": "SymbolPointService", | "name": "SymbolPointService", | ||
"address": "http://127.0.0.1:9008/symbolpoint" | "address": "http://127.0.0.1:9008/symbolpoint", | ||
"bindingRef": "[binding]" | |||
} | } | ||
] | ] | ||
| Line 55: | Line 74: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Replace the example address with the actual GDK4 SOAP endpoint. | Replace the example address with the actual GDK4 SOAP endpoint. <code>[binding]</code> uses the top-level binding (normally <code>BasicHttp</code>); use a binding that matches your legacy deployment. Restart MariaApplication. For legacy server options, see [[Service configuration#SymbolPointSettings|legacy SymbolPoint settings]]. | ||
== Connect third-party applications == | == Connect third-party applications == | ||
Revision as of 10:21, 1 December 2026
This page covers running SymbolPoint under GDK5 MariaServiceHoster and connecting MariaApplication or third-party apps to the new HTTP service or an existing GDK4 service.
Run SymbolPoint under MariaServiceHoster
For general host configuration and deployment, see configuration, hosting and routing, and deployment. SymbolPoint is disabled by default. To enable it and load products, merge this into appSettings.ServiceSettings.Local.json beside the host executable:
{
"HostedServices": {
"SymbolPoint": {
"Settings": {
"Disabled": false,
"DataSources": [
{ "Path": "C:\\MariaData\\symbolpoint", "RecursionDepth": 1 }
]
}
}
}
}
Set Path to a directory the host can read. A depth of 1 is appropriate when each product folder, containing its own symcfg.json, is directly under that directory. Include the MilSymSVG product for military point symbols. Restart MariaServiceHoster and check the startup log for the loaded product names.
With the default routing, clients use the host's HTTP listener on port 5110 at /symbolpoint; the child listens on loopback port 5121. Check http://127.0.0.1:5110/symbolpoint/ready: HTTP 200 means at least one product loaded. When Swagger is enabled, browse to /symbolpoint/swagger/index.html on the same host.
How MariaApplication selects a SymbolPoint source
MariaApplication selects one source at startup:
- Local files: A nonempty
symbolPointConfig.dataSourceslist in the effectiveGeneralConfiguration.jsonselects the integrated renderer, regardless of the service endpoint. - GDK5 HTTP: With no local sources, a
SymbolPointServiceendpoint with a nonblank address and neither a nonblankbindingRefnor an explicitbindingselects the GDK5 HTTP client. - Legacy WCF: Otherwise, MariaApplication uses the named
SymbolPointServiceendpoint as a WCF endpoint. The shared configuration defaults to WCF.
This is startup selection, not failover. If the selected service is unreachable, MariaApplication does not switch sources or transports.
Connect MariaApplication to GDK5 HTTP
If local sources are configured, set symbolPointConfig.dataSources to [] in GeneralConfiguration.local.json to clear the inherited list. Add or update the following entry in ClientServiceConfiguration.local.json:
{
"endpoints": [
{
"name": "SymbolPointService",
"address": "http://127.0.0.1:5110/symbolpoint",
"bindingRef": null
}
]
}
For a remote deployment, use its published scheme, host, and port. Use the service base URL ending in /symbolpoint, not a /web or /api/v1 endpoint. The endpoints array merges by name: "bindingRef": null clears the inherited WCF reference, while omitting it keeps the shared value. If your base endpoint supplies an explicit binding, remove it from that endpoint to use HTTP.
Place each .local.json beside its active base file. MariaApplication looks in %LocalAppData%\TeleplanGlobe\MariaGDK first, then in the application folder. When running from source, local override files in the MariaApplication project directory are ignored by Git and copied to the application output on build. Restart MariaApplication after changing the effective configuration.
If you previously configured symbolPointConfig.httpServiceUri, remove it and use the named endpoint above instead.
GDK5 also accepts APP-6C/2525C codes with an unambiguous single-point mapping. These render using Delta artwork, not the original GDK4 Charlie artwork. Use the legacy service if you need that artwork.
Connect MariaApplication to legacy GDK4 WCF
Leave symbolPointConfig.dataSources absent or empty in the effective configuration. Remove the HTTP SymbolPointService override if the shared WCF endpoint already points to your GDK4 service. Otherwise, replace the override with a WCF address and binding reference:
{
"endpoints": [
{
"name": "SymbolPointService",
"address": "http://127.0.0.1:9008/symbolpoint",
"bindingRef": "[binding]"
}
]
}
Replace the example address with the actual GDK4 SOAP endpoint. [binding] uses the top-level binding (normally BasicHttp); use a binding that matches your legacy deployment. Restart MariaApplication. For legacy server options, see legacy SymbolPoint settings.
Connect third-party applications
Third-party applications can call the GDK5 service over HTTP without installing the GDK client libraries. Use the published /symbolpoint base URL:
- Get a PNG:
GET /symbolpoint/web/app6c/SFSPXM----*****?maxSize=64&crop=true. The response body isimage/png; theSymbol-Infoheader contains JSON metadata, including the anchor and bounds. For Delta SIDCs, use/web/app6d/{sidc}. - Render a batch: Send
POST /symbolpoint/api/v1/symbols/renderwithContent-Type: application/jsonand the body below. The response includes a state and metadata for each returned symbol;ImageDatais a base64-encoded PNG. Check the symbol state, not just the HTTP status. See/symbolpoint/swagger/index.htmlfor the full API.
{
"Symbols": [
{
"ProductId": "app6c",
"SymbolLayerIds": ["SFSPXM----*****"],
"MaxSymbolSize": 64
}
]
}
.NET applications using the GDK5 libraries can also pass the base URI to SymbolPointHttpClient. For an existing GDK4 deployment, use its /symbolpoint/web/... routes for PNGs or its SOAP/WCF endpoint for managed operations. The GDK5 /api/v1 requests do not work against GDK4.