fixed t_busstop.gmlid
1 parent 9f8a1de commit 2c4a1c01b56d172b8cb3e56585ddb0c38127b307
@hayashi hayashi authored on 13 May 2018
Showing 1 changed file
View
2
■■■
src/osm/jp/coverage/busstop/ToGeoJSON.java
+ "select 'Feature' As type, "
+ "ST_AsGeoJSON(ST_Transform(t_%s.geom,4326))::json As geometry, "
+ "row_to_json(("
+ "SELECT p FROM (SELECT t_%s.gmlid, t_%s.fixed) AS p"
+ ")) AS properties From t_%s %s order by area,idref) As feature";
+ ")) AS properties From t_%s %s order by area,gmlid) As feature";
Connection con = DatabaseTool.openDb("postgis");
obj.outputDb(con, "", new File("GML_BUSSTOP", "busstop.json"), false);
obj.outputDb(con, "WHERE fixed=0", new File("GML_BUSSTOP", "busstop0.json"), false);
obj.outputDb(con, "WHERE fixed=1", new File("GML_BUSSTOP", "busstop1.json"), false);