private static void BuildIndex(BasFeatureEntity featureEntity, RtreeSpatialIndex openedRtree, Projection openedProjection) { if (featureEntity != null) { BaseShape newShape = featureEntity.Shape; if (openedProjection != null) { newShape = openedProjection.ConvertToExternalProjection(featureEntity.Shape); newShape.Id = featureEntity.Id; } openedRtree.Add(newShape); } }
public Feature ConvertToExternalProjection(Feature sourceFeature) { return(projection.ConvertToExternalProjection(sourceFeature)); }