コード例 #1
0
 public void ValidatePolygonRing_Geography()
 {
     GeographyPipeline v = new SpatialValidatorImplementation();
     v.SetCoordinateSystem(NonDefaultGeographicCoords);
     v.BeginGeography(SpatialType.Polygon);
     v.BeginFigure(new GeographyPosition(10, 20, 30, 40));
     v.LineTo(new GeographyPosition(20, 30, 40, 50));
     v.LineTo(new GeographyPosition(20, 40, 40, 50));
     v.LineTo(new GeographyPosition(10, 20, 30, 40));
     v.EndFigure();
     v.EndGeography();
 }
コード例 #2
0
 public void ValidateFullGlobe_Geography()
 {
     GeographyPipeline v = new SpatialValidatorImplementation();
     v.SetCoordinateSystem(NonDefaultGeographicCoords);
     v.BeginGeography(SpatialType.FullGlobe);
     v.EndGeography();
 }