Esempio n. 1
0
 public SpatialResult Get(double lat, double lng, double radiusInMeters)
 {
     if (ModelState.IsValid)
     {
       var multiPoints = new SpatialDBWorker().GetPointsFromCircle(lat, lng, radiusInMeters);
       return multiPoints;
     }
     else
     {
       throw new HttpResponseException(HttpStatusCode.BadRequest);
     }
 }
Esempio n. 2
0
 public SpatialResult Get(string wkt, bool reorientObject)
 {
     if (ModelState.IsValid)
     {
       var multiPoints = new SpatialDBWorker().GetPointsFromWKT(wkt, reorientObject);
       return multiPoints;
     }
     else
     {
       throw new HttpResponseException(HttpStatusCode.BadRequest);
     }
 }