|
|
- "sql_code": "select t.* from (select id, dkid, xzqmc, dkmc, address, dkmj, tdyt, round(st_distance(st_geometryfromtext('POINT (120.42827489304307 30.23751646603668)', 4490)::geography,shape::geography)::numeric,0) as distance, st_astext(st_centroid(shape)) as center_wkt from sde.ecgap_klyzy where tdyt ='工业用地' and sfsj=1 and dkmj BETWEEN 30 and 100) as t where t.distance <= 5000 order by t.dkmj nulls last limit 10"
|
|
|
+ "sql_code": "select t.* from (select id, dkid, xzqmc, dkmc, address, dkmj, tdyt, round(st_distance(st_geometryfromtext('POINT (120.42827489304307 30.23751646603668)', 4490)::geography,shape::geography)::numeric,0) as distance, st_astext(st_centroid(shape)) as center_wkt from sde.ecgap_klyzy where tdyt ='工业用地' and sfsj=1 and dkmj BETWEEN 30 and 100) as t where t.distance <= 5000 order by t.dkmj nulls last limit 1"
|