Originally posted by DoctorStrangelove
View Post
![Smile](https://forums.contractoruk.com/core/images/smilies/smile.png)
ogr2ogr -f GeoJSON rutland.json "PG:host=<database server> dbname=<database name> user=<user> password=<password>" \ -sql "select way, name from planet_osm_polygon where name='<administrative area I want the boundary and name of in the output, e.g. Rutland>'"
ogr2ogr -f GeoJSON rutland.json "PG:host=<database server> dbname=<database name> user=<user> password=<password>" \
-sql "select st_transform(way, 4326), name from planet_osm_polygon where name='<administrative area I want the boundary and name of in the output, e.g. Rutland>'"
Comment