[R-sig-Geo] Issue with ogrInfo
Roger Bivand
Roger.Bivand at nhh.no
Sun May 10 19:38:53 CEST 2015
On Sun, 10 May 2015, Barry Rowlingson wrote:
> 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)"
Right, but while the geojson driver does read topojson from 1.11, ogrinfo
says no-go. On inspecting the file, it appears only to contain lost of
links to other stuff and no geometries that I (or OGR) recognise. The
geometries must be hidden in one of the links, but are not exposed.
Roger
>
>
> Barry
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>
--
Roger Bivand
Department of Economics, Norwegian School of Economics,
Helleveien 30, N-5045 Bergen, Norway.
voice: +47 55 95 93 55; fax +47 55 95 91 00
e-mail: Roger.Bivand at nhh.no
More information about the R-sig-Geo
mailing list