Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
 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);
 }