Tag Info

New answers tagged

0

Turns out to be a path issue. With the C ogrinfo, I can put the shapefile layer filenames sans path in the OGRVRTLayer. If I then run the C# ogrinfo, it can't find those shapefiles. However, if I put the full path of the shapefiles into the OGRVRTLayer, then both versions successfully read the virtual source.


0

[WARNING: A gratuitous promotion of a product I am involved with] We have been working on exactly this. We have developed an application that has an advanced GUI for GIS (and other) data transformations. This uses GDAL/OGR in the back end. Some information can be found at https://www.geoactive.it Commercial use requires it to be purchased but we do have ...


0

QGIS expects the CRS to either be defined within the dataset or by the user. If it doesn't have this information, it won't know what CRS to render the dataset in as the coordinates within the dataset itself could be rendered using any CRS.


0

OSGEO is the location to find most of the answers you are looking for. There are quite a few tools compiled for windows in the OsGeo4W Once you are signed in you can access the member page for binary distribution However you may have already discovered that there are limitations to the filegdb drivers. under the gdal/ogr umbrella there is an earlier version. ...


0

Here is the arcpy/python script flow: Use os.walk to iterate through directory and sub-directories Once shp is found use ListFields function to get a list of all shp field names Use condition if logic to check if field name exists in fc from ListFields list If field name does not exist use Add Field method to create the field Use Project method to ...


1

You can get GDAL 1.10 from http://download.osgeo.org/gdal/1.10.1/ and compile it the same way as you did with 1.9. BTW, GDAL 1.11.2 is the current stable version, and installing QGIS on a vanilla lubuntu 15.04 includes that GDAL version. So if you remove (delete the self-compilation and sudo apt-get purge the packages) all GDAL and QGIS stuff, then ...


1

To solve my issue, I had to use the debug option in the command ogr2ogr --config CPL_DEBUG ON -f GFT "GFT:access=<authorization token>" ~/countries.shp The returned output was Shape: DBF Codepage = LDID/87 for countries.shp Shape: Treating as encoding 'ISO-8859-1'. OGR: OGROpen(france.shp/<persistent_session_code>) succeeded as ESRI Shapefile. ...


1

I use fiona and shapely for that kind of tasks: import fiona from shapely.geometry import shape with fiona.open(r'd:\Projects\_00_Data\_USstates\fe_2007_us_state00.shp', 'r') as features: for i, feat in enumerate(features): geom = shape(feat['geometry']) name = feat['properties']['NAME00'] print ','.join((name,) + tuple([str(i) ...


2

Looking at GDAL autotests, I see only the refresh token is defined. As far as I understand the code, the access token will be automatically got from the refresh token (since the access token is apparently renewed from the refresh token, so it is not practical setting its value directly). So try to undefine the access token ("GFT:" as connection string), and ...



Top 50 recent answers are included