Exemplo n.º 1
0
 private static NtsSpatialContext CreateNtsContext(SpatialOptions options)
 {
     if (options.Type == SpatialFieldType.Cartesian)
     {
         var nts = new NtsSpatialContext(new GeometryFactory(), false, new CartesianDistCalc(), null);
         nts.GetWorldBounds().Reset(options.MinX, options.MaxX, options.MinY, options.MaxY);
         return nts;
     }
     return GeoContext;
 }