Commit 499229c4 by dliangx

update

parent 4fb92a89
......@@ -401,7 +401,7 @@ func GetRelatedAdmArea(obj model.GeoJson) ([]model.GeoJson, error) {
var query string
if obj.Opt == 4 {
query = `SELECT id, type, properties, ST_AsGeoJSON(geom) as geometry FROM geojson_data WHERE ST_Intersects(ST_SetSRID($1::geometry,4326), geometry)`
query = `SELECT id, type, properties, ST_AsGeoJSON(geom) as geometry FROM geojson_data WHERE ST_Intersects(ST_SetSRID($1::geometry,4326), geom)`
}
rows, err := db.Query(query, wkt)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment