public IFeatureSet Reproject(ISpatialReference newProjection, out int reprojectedCount) { int count = 0; var sf = _shapefile.Reproject(newProjection.GetInternal(), ref count); reprojectedCount = count; return(WrapShapefile(sf)); }
public bool CreateLayer(string layerName, GeometryType geometryType, ISpatialReference projection = null, string creationOptions = "") { var shpType = GeometryHelper.GeometryType2ShpType(geometryType); GeoProjection gp = null; if (projection != null) { gp = projection.GetInternal(); } return(_datasource.CreateLayer(layerName, shpType, gp, creationOptions)); }
public bool ReprojectInPlace(ISpatialReference newProjection, ref int reprojectedCount) { return(_shapefile.ReprojectInPlace(newProjection.GetInternal(), ref reprojectedCount)); }
public bool CopyFrom(ISpatialReference sourceProj) { return(_projection.CopyFrom(sourceProj.GetInternal())); }
public bool StartTransform(ISpatialReference target) { return(_projection.StartTransform(target.GetInternal())); }
public bool GetIsSameGeogCoordinateSystem(ISpatialReference proj) { return(_projection.IsSameGeogCS[proj.GetInternal()]); }
public bool IsSameExt(ISpatialReference proj, IEnvelope bounds, int numSamplingPoints = 8) { return(_projection.IsSameExt[proj.GetInternal(), bounds.GetInternal(), numSamplingPoints]); }
public bool IsSame(ISpatialReference proj) { return(_projection.IsSame[proj.GetInternal()]); }
public IFeatureSet ReprojectShapefile(IFeatureSet sf, ISpatialReference source, ISpatialReference target) { var result = _utils.ReprojectShapefile(sf.GetInternal(), source.GetInternal(), target.GetInternal()); return(result != null ? new FeatureSet(result) : null); }