koopjs / koop-provider-marklogic

A Koop Provider that can be used to exposed data in MarkLogic via Esri feature services
https://koopjs.github.io/koop-provider-marklogic/
Other
6 stars 11 forks source link

Add the ability to get point geometry from lat/lon fields in the view or SPARQL results #96

Open jkerr5 opened 6 years ago

jkerr5 commented 6 years ago

Instead of requiring the connector to retrieve the documents to extract point geometry, point geometry data should be able to be extracted and built from fields in a view or SPARQL query result.

The feature service descriptor needs to be able to specify how to get the geometry from the fields. It should look something like:

"geometrySource" : {
  "fields" : {
    "lat" : "lat",
    "lon" : "lon"
  }
}
jkerr5 commented 5 years ago

This is implemented in the code but there are no test cases or documentation for it yet.