Tagged Questions
0
votes
1answer
66 views
Export KML ExtendedData with OGR2OGR
I would like to export with ogr2ogr the data I have in a kml as ExtendedData
<Placemark>
<ExtendedData>
<SchemaData schemaUrl="#15540_punti">
...
1
vote
3answers
191 views
Ogr2Ogr SQLite Geometry Functions
I believe title is all clear.I'm using Ogr2ogr utilities & binaries to read geometry.
I used something like this:
ogr2ogr -f "SQLite" test2.sqlite test.sqlite -sql "SELECT ...
1
vote
1answer
48 views
Ogr_wrap problem
I'm having problems with my csharp project in developing a console application.I've added references of ogr_csharp.dll & osr_csharp.dll & gdal_csharp.dll.
In the line Ogr.RegisterAll(); ...
4
votes
1answer
167 views
Can't export a polygon shapefile to MySQL using ogr2ogr?
I am having problems with ogr2ogr and keep getting different versions of the error:
ERROR 1: MySQL error message: The used table type doesn't support SPATIAL indexes.
Description: ALTER TABLE ...
0
votes
1answer
55 views
Should a GDAL Plugin be the same version as GDAL aready built into QGIS
Should a GDAL Plugin be the same version as the GDAL that's aready built into the QGIS version installed?
Or,can another different version of GDAL be built and it installed as a Plugin for QGIS, ...
3
votes
1answer
484 views
How do you open shapefiles with ogr2ogr
I'm following along the D3 tutorial, and on this line:
ogr2ogr \
-f GeoJSON \
-where "adm0_a3 IN ('GBR', 'IRL')" \
subunits.json \
ne_10m_admin_0_map_subunits.shp
run into the following ...
3
votes
1answer
167 views
ogr2ogr / GDAL remove features in FileGDB while in use by ArcGIS Server map service
I'm using ogr2ogr to pull features out of Oracle and put them into a File GeoDatabase. The FGDB is being used by an active ArcGIS Server map service. This is all done for performance / reducing DB ...
3
votes
2answers
225 views
Why does Ogr2Ogr Postgres import fail?
I have a lot of S57 files that need to be imported to PostgresDB. The process takes over 2 hours. In order to improve performance, I have tried using PG_USE_COPY to use copy instead of DB inserts. I ...
2
votes
3answers
508 views
How do I use ogr2ogr to convert a GML to shapefile in Python
I am trying to convert a GML to an ESRI shapefile using ogr2ogr utility in a python script.
I have successfully installed the GDAL/OGR package via osgeo but I am now struggling to find/understand ...
0
votes
1answer
260 views
How current is GDAL in Java
I have used the ogr2ogr to import various formats to Postgres and have used GDAL utilities. Is there a complete Java port for these tools? Or are they simply wrappers calling JNI to C++ code? I have ...
1
vote
1answer
158 views
GDAL 1.9.1 ogr2ogr KML to PostGIS not incuding ExtendedData
I have a KML file utilizing a Schema in the document and ExtendedData in each placemark. The ExtendedData does not seem to pass in conversion to PostGIS or shapefile.
Any assistance would be much ...
3
votes
0answers
180 views
How to save table from PostgreSQL to MapInfo File?
I have two tables:
1 with geometry in WGS
2 with geometry in Local System
I tried this:
ogr2ogr -f "MapInfo File" output2.tab PG:"host=localhost user=postgres password=123456 dbname=postgis" -sql ...
3
votes
1answer
424 views
How do I split polygons that cross the dateline?
I have a dataset of country borders which I obtained from:
http://thematicmapping.org/downloads/world_borders.php/
I have that dataset in both shp and SQL, but I'll put out there that I don't feel ...
8
votes
2answers
3k views
ogr2ogr converting to shapefile - how to select feature types?
Shapefiles can only have one geometry type, but many other formats (kml, geojson) can have multiple types.
When converting to shapefiles, is it possible to to tell ogr2ogr to create multiple ...
8
votes
6answers
789 views
How to add field with filename when merging shapefiles with ogr2ogr?
I'm merging some shapefiles and I had some problems doing so inside QGIS, so i'm using ogr2ogr directly.
I'm doing this (in a batch):
ogr2ogr -overwrite %destination% %n1%
ogr2ogr -update -append ...
