comparison pkg/geoserver/boot.go @ 5425:345515bc4548 marking-single-beam

Make GeoServer layer sounding_results_marking_points_geoserver working.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Fri, 09 Jul 2021 22:03:44 +0200
parents 5df1eff5e445
children 5f47eeea988d
comparison
equal deleted inserted replaced
5424:2f3fd2d0486b 5425:345515bc4548
306 "nativeName": table, 306 "nativeName": table,
307 "title": table, 307 "title": table,
308 } 308 }
309 if srs := tables[i].SRS; srs != nil { 309 if srs := tables[i].SRS; srs != nil {
310 ft["srs"] = *srs 310 ft["srs"] = *srs
311 // A bit of a hack!
312 if *srs == "EPSG:4326" {
313 box := map[string]interface{}{
314 "minx": -180,
315 "maxx": +180,
316 "miny": -90,
317 "maxy": +90,
318 "crs": "EPSG:4326",
319 }
320 ft["nativeBoundingBox"] = box
321 ft["latLonBoundingBox"] = box
322 }
311 } 323 }
312 324
313 var entries []map[string]interface{} 325 var entries []map[string]interface{}
314 326
315 if models.IntSQLView(tables[i]) { 327 if models.IntSQLView(tables[i]) {