Esri / kml-for-geoevent

ArcGIS GeoEvent Server sample KML connector for sending GeoEvents in the KML format.
Apache License 2.0
4 stars 6 forks source link

Draw elipses in KML #2

Open elihusmails opened 10 years ago

elihusmails commented 10 years ago

I am interested in adding support for ellipses in the KML adapter. This functionality is shown in the geometry processor (https://github.com/Esri/solutions-geoevent-java/tree/master/solutions-geoevent/processors/geometry-processor). Would this functionality just require updates to the KmlAdapterBase? It appears that the KML adapter is geared heavily towards just plotting points and tracks. I need to support ellipses around points as well.

mzesri commented 10 years ago

This version of the KML outbound adapter is geared toward displaying points and tracks. Adapters usually don't process data. You can add code to create placement for polygons as a geometry type. The KML outbound adapter process geoevents from the REST cache. I would recommend using a geometry processor such as the one you referenced to generate the ellipses for each geoevent before you put them into the REST cache.

elihusmails commented 10 years ago

I am using the geometry processor to generate the ellipse information. Unfortunately the KML adapter only supports points. Looking at KmlGeneratorBase.java lines 85 - 110, I believe that if the geometry in the GeoEvent is not a point, you will not get any ellipse information in the resulting KML due to the adapter only supporting points.