[gdal-dev] Meaning of First pass in reading GeoJSON
Rahkonen Jukka (MML)
jukka.rahkonen at maanmittauslaitos.fi
Thu Sep 13 02:40:40 PDT 2018
Rahkonen Jukka (MML) wrote:
> That certain dataset contains just geometries but no attributes. I do not know if geometries are all
> polygons of if multipolygons can also appear. However, I hoped that by setting the environment
> variable ATTRIBUTES_SKIP=YES and defining -nlt PROMOTE_TO_MULTI I could make GDAL to skip the
> first pass. I think that in this special case there is already a way to provide both the the schema and
> geometry type. I can also see that GDAL did read the ATTRIBUTES_SKIP setting correctly.
> GeoJSON: Skip all attributes.
> GeoJSON: First pass: 4136960 bytes read
I forgot to mention that another existing option that user has for defining the schema and geometrytype is to write data into existing target by using ogrinfo with -append but without -addfields.
-Jukka-
More information about the gdal-dev
mailing list