public static GeometryType Convert(SqlTypes.OpenGisGeometryType type) { switch (type) { case SqlTypes.OpenGisGeometryType.GeometryCollection: return(GeometryType.GeometryCollection); case SqlTypes.OpenGisGeometryType.LineString: return(GeometryType.LineString); case SqlTypes.OpenGisGeometryType.MultiLineString: return(GeometryType.MultiLineString); case SqlTypes.OpenGisGeometryType.MultiPoint: return(GeometryType.MultiPoint); case SqlTypes.OpenGisGeometryType.MultiPolygon: return(GeometryType.MultiPolygon); case SqlTypes.OpenGisGeometryType.Point: return(GeometryType.Point); case SqlTypes.OpenGisGeometryType.Polygon: return(GeometryType.Polygon); } throw new NotSupportedException( string.Format( CultureInfo.CurrentCulture, SR.UnsupportedGeometryTypeException, type ) ); }
void SqlTypes.IGeometrySink.BeginGeometry(SqlTypes.OpenGisGeometryType type) { BeginGeometry(GeometryTypeUtils.Convert(type)); }
public void BeginGeometry(SqlTypes.OpenGisGeometryType type) { _Sink.BeginGeometry(GeometryTypeUtils.Convert(type)); }