public ActionResult GetAchseByBbox(double minX, double minY, double maxX, double maxY) { try { Coordinate bottomLeft = new Coordinate(minX, minY); Coordinate topRight = new Coordinate(maxX, maxY); Coordinate bottomRight = new Coordinate(maxX, minY); Coordinate topLeft = new Coordinate(minX, maxY); ILinearRing linearRing = new LinearRing(new Coordinate[] { topLeft, topRight, bottomRight, bottomLeft, topLeft }); IGeometry filterGeom = new NetTopologySuite.Geometries.Polygon(linearRing, GISService.CreateGeometryFactory()); IList <AchsenSegment> achsseg = achsensegmentService.GetCurrentBySpatialFilter(filterGeom); achsseg = achsseg.Where(s => s.Shape.Intersects(filterGeom)).ToList(); return(Content(geoJSONParseService.GenereateGeoJsonStringfromAchsenSegment(achsseg), "application/json")); } catch (Exception exc) { return(Content(GeoJSONStrings.GeoJSONFailure(exc.Message), "application/json")); } }