Tagged Questions
0
votes
1answer
18 views
BBox missing when converting TIGER to GeoJSON
I can't get the bounding boxes of polygons if TIGER/Line shape files when converting them to GeoJSON using FWTools. The other default information is present and there is no difference between the ...
1
vote
0answers
61 views
Natural Earth: How to get the position of all provinces that belong to a state
This question is about Natural earth 1:10 states and provinces.shp file. I'm using ogr2ogr and want to know the name of the id i need to pass . In purpose of pulling out the right states regions.
...
3
votes
0answers
51 views
How do I clip Geojson FeatureCollection with another Geojson polygon
I have a GeoJSON file that contains one FeatureCollection with a bunch of features that are polygons. I also have the boundary of the continental USA in another GeoJSON file. I'd like to clip the ...
3
votes
1answer
133 views
ogr2ogr from Postgres to GeoJSON missing crs key
I'm using ogr2ogr to convert some OSM data for Greenland (not really important for the question), from a PostGIS database to a file containing GeoJSON.
The problem is that the GeoJSON gets written ...
7
votes
2answers
184 views
How to reduce the file size of GeoJSON data?
For my project I am trying to convert the tiger shapefile information for us states into GeoJSON format
However when I use the ogr2ogr tool the data file is about 20 MB. I have seen the geoJSON file ...
5
votes
3answers
2k views
How to create a GeoJSON that works with D3?
I'm simply trying to convert a .shp file to a geoJSON format using:
ogr2ogr -f geoJSON output.json input.shp
After executing the command nothing seems to be wrong. Here's an excerpt from the ...
3
votes
1answer
189 views
Change Layer name when converting from GeoJSON
I am converting GeoJSON files to other formats (including KML) using ogr2ogr.
As you may know, there is no field in a GeoJSON file to specify the name of the layer, causing every conversion to have ...
8
votes
2answers
3k views
ogr2ogr converting to shapefile - how to select feature types?
Shapefiles can only have one geometry type, but many other formats (kml, geojson) can have multiple types.
When converting to shapefiles, is it possible to to tell ogr2ogr to create multiple ...
1
vote
4answers
2k views
How to convert SHP into GPX or JSON?
I would like to convert the tree inventory shape files of London (Canada) into a GPX file and if possible into a JSON file. You can download the archive from their Open Data website. It contains the ...
3
votes
1answer
403 views
Why are GeoJSON coordinates different exported from QGIS vs. ogr2ogr?
I have a shapefile with a Google Mercator projection (900913) that I need converted to GeoJSON. I need to do this on a regular basis amongst other things so I wrote a shell script to do it using ...
1
vote
0answers
39 views
How to load GeoJSON files directly onto QGIS? [duplicate]
Possible Duplicate:
Plugin or script to get QGIS to display geoJSON in a layer
Is there a way to do this? Or is there a way i can put it onto PostGIS and then load it onto QGIS? I actually ...