Questions tagged [ogrinfo]

ogrinfo is a program in the suite of GDAL tools. ogrinfo provides information about an OGR supported data format (traditionally vector format types).

8 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
247 views

ogrinfo: Unable to use sqlite dialect with -oo GEOM_POSSIBLE_NAMES open option

I am having problems using the SQLite SQL dialect to read a CSV file using ogrinfo, but only if I also specify a geometry column using the -oo GEOM_POSSIBLE_NAMES open option. Suppose file test.csv ...
2
votes
0answers
26 views

Attribute table empty with custom driver in newer versions

I've written a custom ogr driver for one of our own formats. When loading the data I get to see vector data nicely displayed in Brighton/Essen/Pisa. However, when opening the 'Attribute Table' only ...
1
vote
0answers
14 views

How to get feature class name using ogrinfo

I am importing kmz into postgres $ogrCommand = 'ogr2ogr -f "PostgreSQL" -a_srs "EPSG:4326" PG:"host='.env("DB_HOST").' port='.env("DB_PORT").' user='.env("DB_USERNAME").' dbname='.env("DB_DATABASE")...
1
vote
0answers
256 views

Trying to get GDAL 2.x to work, but ogrinfo reports ERROR 3: and ERROR 4: and “Failed to open table res_t48.PAT”

We have been using GDAL 1.9 for years on a Ubuntu 12.04 machine, but are trying to upgrade to Ubuntu 16.04 with the latest PostGIS and GDAL. When I install gdal-bin I end up with version 2.1.3. But ...
0
votes
1answer
21 views

One-liner to print first feature from GPKG

To make the findings from this GDAL issue more discoverable, I'm posting here as well. ogr2ogr has a -limit option. I couldn't find this option for ogrinfo, while ogrinfo has e.g. -where. I would ...
0
votes
0answers
157 views

ogr2ogr cannot import .osm.pbf file to PostGIS

I'm trying to import a multipolygon layer from "colorado-latest.osm.pbf" into PostGIS. GDAL 2.4.2 has been installed in a Ubuntu system. However, whenever I'm trying to import the osm.pbf file, I get ...
0
votes
0answers
244 views

Alter and update a shapefile with a field from an ASCII file using ogr

I have a vector file "map.shp" with a field ID. I have an attribute table (data.txt) with the following fields: ID, value1, value2. The field ID is the same in both files. I want to update map.shp by ...
0
votes
1answer
58 views

How to restrict the output parameters in ogrinfo?

Just want to know, is it possible to restrict the output parameters while using ogrinfo? For example, I need only the Projection details for a bunch of tab files, that too in a single continuous line ...