public IEnumerable<JObject> ReadSurfaceElement(IAixmConverter converter, JObject currentObject, XElement element) { //Convert ElevatedSurface to a GML Surface and convert to geojson. var geometry = GeometryFactory.GmlToGeometry(DownCastToSurfaceElement(element)); //Set the geometry currentObject.SetGeometry(geometry); //Set the projection on the feature obj. currentObject.SetSrs(element); return Enumerable.Empty<JObject>(); }
public IEnumerable<JObject> ReadElement(IAixmConverter converter, JObject currentObject, XElement element) { XNamespace aximNs = "http://www.aixm.aero/schema/5.1"; //Convert ElevatedPoint to a GML Surface and convert to geojson. var geometry = GeometryFactory.GmlToGeometry(DownCastToPointElement(element)); //Set the geometry currentObject.SetGeometry(geometry); //Set the projection on the feature obj. currentObject.SetSrs(element); //Read elevation property and return return converter.ReadElement(currentObject, element.Elements(aximNs + "elevation")); }