Questions tagged [ogr]

The OGR Simple Features Library is a C++ open source library (and command line tools) providing access to vector file formats.

"The OGR Simple Features Library is a C++ open source library (and command line tools) providing read (and sometimes write) access to a variety of vector file formats. including ESRI Shapefiles, S-57, SDTS, PostGIS, Oracle Spatial, and Mapinfo mid/mif and TAB formats."

http://www.gdal.org/ogr/index.html

1099 questions
33
votes
1 answer

What does OGR stand for?

There are numerous commands and libraries that I see referenced or prefixed with OGR. What does the OGR stand for? ogrinfo ogr2ogr
Evan Carroll
  • 7,071
  • 2
  • 32
  • 58
6
votes
2 answers

Polygon to line with ogr2ogr

I need to make vector tiles but want the source to be like my data is.made up of polygons Can GDAL ogr2ogr convert from polygon to line?
Jordan Bess
  • 200
  • 1
  • 5
3
votes
3 answers

OGR: Meaning of "2.5D extension as per 99-402"

I'm looking at the enum defs in ogr_core.h. I see a bunch with comments that read: 2.5D extension as per 99-402. What in the world does that mean? Presumably it's referencing a spec or RFC? typedef enum { ... wkbPoint25D = 0x80000001, /**<…
jglouie
  • 215
  • 1
  • 4
3
votes
1 answer

ogrinfo missing DLL error

When trying to execute "ogrinfo" command the following message appears: the code execution cannot proceed because gssapi64.dll was not found. Reinstalling the program may fix this issue. I have tried to reinstall gdal with: conda install -c…
Windows
  • 39
  • 2
2
votes
1 answer

ogrinfo / ogr2ogr : sql values with accents

I'm trying to access data that is stored in a MSSQL spatial database and it seems to me that OGR is having some problems with accents. I'm not sure if maybe there is an encoding parameter or something else I could try before I report an issue on…
mikibok
  • 47
  • 6
2
votes
1 answer

OGR CreateLayer cannot use in a method

I have a method that creates a new Shapefile layer and returns the layer. As soon as I try to operate on that layer, I get a Segmentation fault. I verified the code works by pulling all the code out of the method and sticking it in the calling…
Cord
  • 295
  • 1
  • 11
2
votes
2 answers

How to select polygons by criteria and save them to shp file?

I have file of polygons and want to select few by criteria - area more or less then specific number and save result to shp file. code gives 0 by passing criteria: from osgeo import ogr, gdal shpFile = 'ReBu.shp' driver =…
user71110
  • 21
  • 1
2
votes
0 answers

What is a MULTILINESTRING25D

I've never encountered the OGR geometry type MULTILINESTRING25D before (or any of the *25D types). What are these? How do they differ from other types? I couldn't find any useful documentation from the rest of the internet.
spencerrecneps
  • 1,888
  • 1
  • 17
  • 22
1
vote
1 answer

ogrmerge with list of input file names from a text file

How might I feed ogrmerge the list filenames to use as input from a text file? Obvious things like the below do not work; there's no indication from the doc page that it's supposed to. Still this has to be a relatively common scenario. So how do…
matt wilkie
  • 28,176
  • 35
  • 147
  • 280
1
vote
1 answer

Is it possible to append shapefiles based on field values using ogr2ogr?

We have 5 "Master" shapefiles(A, B, C, D & E). Each will have different table structure. We have 100's of shapefiles which has features which has to go to A,B, C, D & E. We have a column in all those 100's of shapefiles, like Column Name: Master &…
joseph_k
  • 1,441
  • 15
  • 31
0
votes
3 answers

ogr2ogr KML Conversion skips Geometries with Corrupt Data error

I have an ogr2ogr bat file to convert SQL to KML that has worked fine for years. All of a sudden the three most recent geometries aren't appearing in the kml file it produces. The error is "ERROR 1: GetNextRawFeature(): Corrupt Data". I have…
Josh
  • 323
  • 1
  • 2
  • 9
0
votes
1 answer

How to install GMLAS driver, working for OGR command line tool?

Normally I run my OGR SQL syntax within OSGeo4W shell. I want to try out the GMLAS driver, but can´t find a distribution where it´s installed. I´m on windows. How do I install the GMLAS driver, working with OGR command line tool?
CARTOS
  • 727
  • 2
  • 8
  • 19
0
votes
1 answer

ogr2ogr KY GIS Import

Using ogr2ogr I was able to import a shapefile into SQL server, but it was imported as a geometry data type and not compatible to compare it to latitude longitude as the points were not correct on the polygons. gdal\bin\gdal\apps\ogr2ogr -overwrite…
Josh
  • 101
0
votes
1 answer

Where can I find ogr_FileGDB.dll v1.4 compilled for Windows?

Since v1.3 do not have custom CRS support, where can I find the ogr_FileGDB.dll v1.4 compiled for Windows?
Paulo Pires
  • 121
  • 1
  • 7