Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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).

1
vote
1answer
48 views

ST_Area(geometry) with ogrinfo estimates a stable area per grid cell

I use ST_area(geometry) in order to calculate the area of each grid cell of a vector grid with LCC projection and 6x6km2 resolution. The CRS of the vector is: +proj=lcc +lat_1=45 +lat_2=22 +lat_0=38.7 ...
0
votes
1answer
40 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 ...
2
votes
0answers
170 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
25 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
178 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
0answers
51 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
0answers
20 views

Using ST_Area(geography) with ogrinfo in command line?

I want to to calculate the ellipsoidal/spheroidal area of each grid cell of a vector grid using ogrinfo. When using ST_Area(geometry) I get the 2D planimetric area (which seems to be constant for a ...