[R-sig-Geo] Issue with ogrInfo

Barry Rowlingson b.rowlingson at lancaster.ac.uk
Sun May 10 19:12:40 CEST 2015


On Sun, May 10, 2015 at 4:31 PM, Daniel Marcelino <dmarcelino at live.com> wrote:
> Dear all, I'm having the following issue when trying to read a
> topographical json file:

 That's a **topological**  (not topographical) geojson file. Instead
of recording each polygon separately, and thus duplicating common
boundaries, a topojson file stores all the line segments once, and
then defines polygons as which sequence of line segments draws the
polygon.

 I'm guessing your ogr library doesn't have topojson support. Does the
output of ogrDrivers() agree with me?

 Solution is usually "use gdal/ogr tools to convert to plain old
geojson (ogr2ogr)"


Barry



More information about the R-sig-Geo mailing list