Opened 10 years ago

Closed 10 years ago

#46690 closed defect (invalid)

gdal @1.11.1_3: ogr not supported

Reported by: basmac Owned by: Veence (Vincent)
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc: pixilla (Bradley Giesbrecht), petrrr, aaschwanden (Andy Aschwanden), MasakiOita, hanfl@…
Port: gdal

Description (last modified by larryv (Lawrence Velázquez))

We get this error on 10.9 and 10.10 Macports updated as of last week. Not sure if its a Macports install or user error, it seems to have been an issue with gdal 1.7 ?

[mac27:~] bmcinnes% gdal-config --ogr-enabled
yes
[mac27:~] bmcinnes% gdalwarp -cutline /Users/blivneh/Research/NLDAS/Shapefiles_MAY2005/Original_Features/Mexican_Cuencas.shp -crop_to_cutline -dstnodata "-9999.0" del.mask.tiff del.mask.clipped.tiff
ERROR 1: Request to load a cutline failed, this build does not support OGR features.

[mac27:~] bmcinnes% gdal-config --version
1.11.1
[mac27:~] bmcinnes% which gdal-config
/opt/local/bin/gdal-config
[mac27:~] bmcinnes% port info gdal
gdal @1.11.1_3 (gis)
Variants:             clang30, clang31, clang32, clang33, clang34, clang35, curl, dragonegg30, dragonegg31, dragonegg32, dragonegg33, dragonegg34, ecw, [+]expat, framework, gcc44, gcc45, gcc46, gcc47, gcc48, gcc49, geos, grib, hdf4, hdf5,
                      jasper, llvm, lzma, mpich, mpich_devel, mrsid, mysql5, netcdf, odbc, opencl, openjpeg, openmpi, openmpi_devel, perf, poppler, postgresql81, postgresql82, postgresql83, postgresql84, postgresql90, postgresql91,
                      postgresql92, postgresql93, spatialite, sqlite3, universal, xerces

Description:          GDAL is a translator library for raster geospatial data formats that is released under an X/MIT style Open Source license. As a library, it presents a single abstract data model to the calling application for all
                      supported formats. The related OGR library (which lives within the GDAL source tree) provides a similar capability for simple features vector data.
Homepage:             http://www.gdal.org/

Library Dependencies: zlib, libpng, tiff, libgeotiff, jpeg, giflib, proj, expat
Platforms:            darwin
License:              MIT BSD
Maintainers:          vince@macports.org, openmaintainer@macports.org
[mac27:~] bmcinnes%

Change History (16)

comment:1 Changed 10 years ago by larryv (Lawrence Velázquez)

Cc: vince@… removed
Description: modified (diff)
Keywords: gdal ogr removed
Owner: changed from macports-tickets@… to vince@…
Summary: gdal ogr not supportedgdal @1.11.1_3: ogr not supported

comment:2 Changed 10 years ago by pixilla (Bradley Giesbrecht)

Cc: pixilla@… added

Cc Me!

comment:3 Changed 10 years ago by pixilla (Bradley Giesbrecht)

barry.j.mcinnes: Is the shape file at a public url? I'd like to try your command on my systems.

comment:4 Changed 10 years ago by petrrr

Cc: petr@… added

Cc Me!

comment:5 Changed 10 years ago by basmac

Thanks for looking at this"error" - from the User

It's the zip file: Shapefiles_May2005.zip

ftp://ftp.crwr.utexas.edu/pub/outgoing/PATINOC/RioGrandeInfo/

Once uncompressed it's in the directory: Original_Features/

Note: I realise that the shapefile is in an Equal_Area projection, while my target grid (attached) is in a lat-lon projection.

comment:6 Changed 10 years ago by aaschwanden (Andy Aschwanden)

Cc: andy.aschwanden@… added

Cc Me!

comment:7 Changed 10 years ago by aaschwanden (Andy Aschwanden)

I've got the same / a similar issue; running gdal_contour on any kind of file results in

ERROR 6: GDALContourGenerate() unimplemented in a non OGR build

If I recall correctly, everything worked fine with gdal 1.10 and broke since the switch to 1.11.

comment:8 Changed 10 years ago by MasakiOita

Cc: epimetheus314@… added

Cc Me!

comment:9 Changed 10 years ago by hanfl@…

Cc: hanfl@… added

Cc Me!

comment:10 Changed 10 years ago by Veence (Vincent)

I thought it was a bug with 1.11.1, but the same thing happens with 1.11.2. I’m going to look at it.

comment:11 Changed 10 years ago by Veence (Vincent)

Well for some reason the vector code (OGR) is included in the .a but not in the .dylib.

comment:12 Changed 10 years ago by Veence (Vincent)

Should be fixed in r133518, that bumps to 1.11.2. Please upgrade and tell me.

comment:13 Changed 10 years ago by aaschwanden (Andy Aschwanden)

So far, I've tested gdal_contour which appears to work now. Thanks for fixing it!

comment:14 Changed 10 years ago by Veence (Vincent)

Resolution: fixed
Status: newclosed

Okay. I assume this is fixed. Please reopen if you still get an unwanted behaviour.

comment:15 Changed 10 years ago by basmac

Resolution: fixed
Status: closedreopened

Finally got the user to retest - it give a different error now

gdalwarp -cutline /Users/blivneh/Research/NLDAS/Shapefiles_MAY2005/Original_Features/Mexican_Cuencas.shp -crop_to_cutline -dstnodata "-9999.0" /Volumes/Drobo/blivneh/NLDAS/del.mask.tiff del.mask.clipped.tiff

Cannot compute bounding box of cutline.

comment:16 Changed 10 years ago by Veence (Vincent)

Resolution: invalid
Status: reopenedclosed

This is not a compilation bug. Remove the .prj file from your shapefile and it should work.

Note: See TracTickets for help on using tickets.