fixed t_busstop.gmlid
1 parent eee4d89 commit f9df44a56e0081ea3ac5fa144a3c947151da01a0
@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);