Ejemplo n.º 1
0
        private static SMGeometryCollection SqlGeometryToSharpMapGeometryCollection(SqlGeometry geometry)
        {
            SMGeometryCollection geometryCollection = new SMGeometryCollection();

            for (int i = 0; i < geometry.STNumGeometries(); i++)
            {
                geometryCollection.Collection.Add(ToSharpMapGeometry(geometry.STGeometryN(i)));
            }
            return(geometryCollection);
        }
Ejemplo n.º 2
0
 private static SMGeometryCollection SqlGeometryToSharpMapGeometryCollection(SqlGeometry geometry)
 {
     SMGeometryCollection geometryCollection = new SMGeometryCollection();
     for (int i = 0; i < geometry.STNumGeometries(); i++)
         geometryCollection.Collection.Add(ToSharpMapGeometry(geometry.STGeometryN(i)));
     return geometryCollection;
 }
Ejemplo n.º 3
0
 private static void SharpMapGeometryCollectionToSqlGeometry(SqlGeometryBuilder geomBuilder, SMGeometryCollection geometryCollection)
 {
     geomBuilder.BeginGeometry(OpenGisGeometryType.GeometryCollection);
     for (int i = 0; i < geometryCollection.NumGeometries; i++)
         SharpMapGeometryToSqlGeometry(geomBuilder, geometryCollection.Geometry(i));
     geomBuilder.EndGeometry();
 }
Ejemplo n.º 4
0
 private static void SharpMapGeometryCollectionToSqlGeometry(SqlGeometryBuilder geomBuilder, SMGeometryCollection geometryCollection)
 {
     geomBuilder.BeginGeometry(OpenGisGeometryType.GeometryCollection);
     for (int i = 0; i < geometryCollection.NumGeometries; i++)
     {
         SharpMapGeometryToSqlGeometry(geomBuilder, geometryCollection.Geometry(i));
     }
     geomBuilder.EndGeometry();
 }