Open danielvillalbamota opened 4 months ago
It seems only esri Geometry Point is supported, not "multipoint", "polyline", "polygon", "extent", "mesh"
Fixed by PR https://github.com/telefonicaid/fiware-cygnus/pull/2394
However, it will be wise to let this issue opened for a while, so @danielvillalbamota could provide hopefully positive feedback before closing it.
Description
Having a feature layer with geometry defined as "Geometry Type: esriGeometryPolyline" is raising some errors traces when I try to update an existing feature. Creating a feature is not a problem, I can create it properly, as do not need to check the geometry.
Example
When I try to update an existing feature which has an existing geometry that is not updated in the request (is not included in notified attributes) I get the following traces:
This exception is ocurring in https://github.com/telefonicaid/fiware-cygnus/blob/master/cygnus-common/src/main/java/com/telefonica/iot/cygnus/backends/arcgis/model/Point.java#L136
This method is assuming that geometry is a Point but in this case is a polyline. Geometry objects in Arcgis
If I make the request
https://<arcgis_host>/server/rest/services/<path_to_feature_layer>/query?outSR=%7B%22wkid%22%3A4326%7D&outFields=*&resultOffset=0&where=fiwareid+IN+%28%27EstadoTrafico_1%27%29&token=nLAno...XT9ku-9&f=json
by the API I get the following body:So, the sink should manage different geometries.