private void ProcessLineStringGeometry(LineString f) { var pGeom = _geometryFactory.CreateLineString( f.Coordinates.Select(crd => new Coordinate(crd.Longitude, crd.Latitude)).ToArray()); AddGeometryToCollection(f.GetParent <Placemark>(), pGeom); }
private void ProcessLineStringGeometry(LineString f) { IGeometry pGeom; if (f.Coordinates.Count == 1) { var coord = f.Coordinates.First(); var coords = new Coordinate(coord.Longitude, coord.Latitude); pGeom = _geometryFactory.CreatePoint(coords); } else { pGeom = _geometryFactory.CreateLineString( f.Coordinates.Select(crd => new Coordinate(crd.Longitude, crd.Latitude)).ToArray()); } AddGeometryToCollection(f.GetParent <Placemark>(), pGeom); }
private void ProcessLineStringGeometry(LineString f) { var pGeom =_geometryFactory.CreateLineString( f.Coordinates.Select(crd => new Coordinate(crd.Longitude, crd.Latitude)).ToArray()); AddGeometryToCollection(f.GetParent<Placemark>(), pGeom); }