[mapserver-users] Ubuntu Trusty, MapServer 6.4.1, Gdal 1.11
Marco Afonso
mafonso333 at gmail.com
Fri Apr 10 06:34:46 PDT 2015
Ok,
It's not a problem with mapserver. Just found that I need to apply some
patches/options when compiling gdal with ECW on recent GCC nix.
Found this
http://osgeo-org.1560.x6.nabble.com/ECW-support-on-Fedora-Linux-error-td4991388.HTML
And reading moreover on http://trac.osgeo.org/gdal/wiki/ECW
Thank you all anyway!
2015-04-10 14:17 GMT+01:00 Marco Afonso <mafonso333 at gmail.com>:
> Hi Jukka,
>
> Hmm... something bad!
>
> $ gdalinfo 005991Argb_12_d73.ecw
>
> terminate called after throwing an instance of 'std::length_error'
> what(): basic_string::_S_create
> Aborted (core dumped)
>
>
> 2015-04-10 14:12 GMT+01:00 Rahkonen Jukka (MML) <
> jukka.rahkonen at maanmittauslaitos.fi>:
>
>> Hi,
>>
>>
>>
>> Use gdalinfo instead of ogrinfo.
>>
>>
>>
>> -Jukka Rahkonen
>>
>>
>>
>> Marco Afonso wrote:
>>
>>
>>
>> Hi Richard and thank you for your reply :)
>>
>>
>>
>> Ok... from shell I should be able to read ecw file metadata, right?
>>
>>
>>
>> Im putting here gdalinfo and ogrinfo outputs.
>>
>>
>>
>> $ gdalinfo --formats
>>
>>
>>
>> VRT (rw+v): Virtual Raster
>> GTiff (rw+vs): GeoTIFF
>> NITF (rw+vs): National Imagery Transmission Format
>> RPFTOC (rovs): Raster Product Format TOC format
>> ECRGTOC (rovs): ECRG TOC format
>> HFA (rw+v): Erdas Imagine Images (.img)
>> SAR_CEOS (rov): CEOS SAR Image
>> CEOS (rov): CEOS Image
>> JAXAPALSAR (rov): JAXA PALSAR Product Reader (Level 1.1/1.5)
>> GFF (rov): Ground-based SAR Applications Testbed File Format (.gff)
>> ELAS (rw+v): ELAS
>> AIG (rov): Arc/Info Binary Grid
>> AAIGrid (rwv): Arc/Info ASCII Grid
>> GRASSASCIIGrid (rov): GRASS ASCII Grid
>> SDTS (rov): SDTS Raster
>> DTED (rwv): DTED Elevation Raster
>> PNG (rwv): Portable Network Graphics
>> JPEG (rwv): JPEG JFIF
>> MEM (rw+): In Memory Raster
>> JDEM (rov): Japanese DEM (.mem)
>> GIF (rwv): Graphics Interchange Format (.gif)
>> BIGGIF (rov): Graphics Interchange Format (.gif)
>> ESAT (rov): Envisat Image Format
>> BSB (rov): Maptech BSB Nautical Charts
>> XPM (rwv): X11 PixMap Format
>> BMP (rw+v): MS Windows Device Independent Bitmap
>> DIMAP (rov): SPOT DIMAP
>> AirSAR (ro): AirSAR Polarimetric Image
>> RS2 (ros): RadarSat 2 XML Product
>> PCIDSK (rw+v): PCIDSK Database File
>> PCRaster (rw): PCRaster Raster File
>> ILWIS (rw+v): ILWIS Raster Map
>> SGI (rw+): SGI Image File Format 1.0
>> SRTMHGT (rwv): SRTMHGT File Format
>> Leveller (rw+): Leveller heightfield
>> Terragen (rw+): Terragen heightfield
>> GMT (rw): GMT NetCDF Grid Format
>> netCDF (rw+s): Network Common Data Format
>> HDF4 (ros): Hierarchical Data Format Release 4
>> HDF4Image (rw+): HDF4 Dataset
>> ISIS3 (rov): USGS Astrogeology ISIS cube (Version 3)
>> ISIS2 (rw+v): USGS Astrogeology ISIS cube (Version 2)
>> PDS (rov): NASA Planetary Data System
>> TIL (rov): EarthWatch .TIL
>> ERS (rw+v): ERMapper .ers Labelled
>> ECW (rw): ERDAS Compressed Wavelets (SDK 3.x)
>> JP2ECW (rw+v): ERDAS JPEG2000 (SDK 3.x)
>> L1B (rovs): NOAA Polar Orbiter Level 1b Data Set
>> FIT (rwv): FIT Image
>> GRIB (rov): GRIdded Binary (.grb)
>> JPEG2000 (rwv): JPEG-2000 part 1 (ISO/IEC 15444-1)
>> RMF (rw+v): Raster Matrix Format
>> WCS (rovs): OGC Web Coverage Service
>> WMS (rwvs): OGC Web Map Service
>> MSGN (ro): EUMETSAT Archive native (.nat)
>> RST (rw+v): Idrisi Raster A.1
>> INGR (rw+v): Intergraph Raster
>> GSAG (rwv): Golden Software ASCII Grid (.grd)
>> GSBG (rw+v): Golden Software Binary Grid (.grd)
>> GS7BG (rw+v): Golden Software 7 Binary Grid (.grd)
>> COSAR (ro): COSAR Annotated Binary Matrix (TerraSAR-X)
>> TSX (rov): TerraSAR-X Product
>> COASP (ro): DRDC COASP SAR Processor Raster
>> R (rwv): R Object Data Store
>> MAP (rov): OziExplorer .MAP
>> PNM (rw+v): Portable Pixmap Format (netpbm)
>> DOQ1 (rov): USGS DOQ (Old Style)
>> DOQ2 (rov): USGS DOQ (New Style)
>> ENVI (rw+v): ENVI .hdr Labelled
>> EHdr (rw+v): ESRI .hdr Labelled
>> GenBin (rov): Generic Binary (.hdr Labelled)
>> PAux (rw+): PCI .aux Labelled
>> MFF (rw+): Vexcel MFF Raster
>> MFF2 (rw+): Vexcel MFF2 (HKV) Raster
>> FujiBAS (ro): Fuji BAS Scanner Image
>> GSC (rov): GSC Geogrid
>> FAST (rov): EOSAT FAST Format
>> BT (rw+v): VTP .bt (Binary Terrain) 1.3 Format
>> LAN (rw+v): Erdas .LAN/.GIS
>> CPG (ro): Convair PolGASP
>> IDA (rw+): Image Data and Analysis
>> NDF (rov): NLAPS Data Format
>> EIR (rov): Erdas Imagine Raw
>> DIPEx (rov): DIPEx
>> LCP (rwv): FARSITE v.4 Landscape File (.lcp)
>> GTX (rw+v): NOAA Vertical Datum .GTX
>> LOSLAS (rov): NADCON .los/.las Datum Grid Shift
>> NTv2 (rw+vs): NTv2 Datum Grid Shift
>> CTable2 (rw+v): CTable2 Datum Grid Shift
>> ACE2 (rov): ACE2
>> SNODAS (rov): Snow Data Assimilation System
>> KRO (rw+v): KOLOR Raw
>> ARG (rwv): Azavea Raster Grid format
>> RIK (ro): Swedish Grid RIK (.rik)
>> USGSDEM (rwv): USGS Optional ASCII DEM (and CDED)
>> GXF (ro): GeoSoft Grid Exchange Format
>> HTTP (ro): HTTP Fetching Wrapper
>> BAG (ro): Bathymetry Attributed Grid
>> HDF5 (ros): Hierarchical Data Format Release 5
>> HDF5Image (ro): HDF5 Dataset
>> NWT_GRD (rov): Northwood Numeric Grid Format .grd/.tab
>> NWT_GRC (rov): Northwood Classified Grid Format .grc/.tab
>> ADRG (rw+vs): ARC Digitized Raster Graphics
>> SRP (rovs): Standard Raster Product (ASRP/USRP)
>> BLX (rw): Magellan topo (.blx)
>> Rasterlite (rws): Rasterlite
>> PostGISRaster (rws): PostGIS Raster driver
>> SAGA (rw+v): SAGA GIS Binary Grid (.sdat)
>> KMLSUPEROVERLAY (rwv): Kml Super Overlay
>> XYZ (rwv): ASCII Gridded XYZ
>> HF2 (rwv): HF2/HFZ heightfield raster
>> PDF (rw): Geospatial PDF
>> OZI (rov): OziExplorer Image File
>> CTG (rov): USGS LULC Composite Theme Grid
>> E00GRID (rov): Arc/Info Export E00 GRID
>> ZMap (rwv): ZMap Plus Grid
>> NGSGEOID (rov): NOAA NGS Geoid Height Grids
>> MBTiles (rov): MBTiles
>> IRIS (rov): IRIS data (.PPI, .CAPPi etc)
>>
>>
>>
>>
>>
>> $ ogrinfo 005991Argb_12_d73.ecw
>>
>>
>>
>> FAILURE:
>> Unable to open datasource `005991Argb_12_d73.ecw' with the following
>> drivers.
>> -> ESRI Shapefile
>> -> MapInfo File
>> -> UK .NTF
>> -> SDTS
>> -> TIGER
>> -> S57
>> -> DGN
>> -> VRT
>> -> REC
>> -> Memory
>> -> BNA
>> -> CSV
>> -> NAS
>> -> GML
>> -> GPX
>> -> KML
>> -> GeoJSON
>> -> Interlis 1
>> -> Interlis 2
>> -> GMT
>> -> GPKG
>> -> SQLite
>> -> ODBC
>> -> WAsP
>> -> PGeo
>> -> MSSQLSpatial
>> -> PostgreSQL
>> -> PCIDSK
>> -> OpenFileGDB
>> -> XPlane
>> -> AVCBin
>> -> AVCE00
>> -> DXF
>> -> Geoconcept
>> -> GeoRSS
>> -> GPSTrackMaker
>> -> VFK
>> -> PGDump
>> -> OSM
>> -> GPSBabel
>> -> SUA
>> -> OpenAir
>> -> PDS
>> -> WFS
>> -> HTF
>> -> AeronavFAA
>> -> Geomedia
>> -> EDIGEO
>> -> GFT
>> -> GME
>> -> SVG
>> -> CouchDB
>> -> Idrisi
>> -> ARCGEN
>> -> SEGUKOOA
>> -> SEGY
>> -> ElasticSearch
>> -> PDF
>> -> Walk
>> -> CartoDB
>> -> SXF
>>
>>
>>
>> 2015-04-10 1:19 GMT+01:00 Richard Greenwood <richard.greenwood at gmail.com
>> >:
>>
>> Why are you using a shapefile? Is it a tile index? Have you tried
>> accessing the ecw file directly? Something like:
>>
>>
>>
>> LAYER
>>
>> NAME "ecw"
>>
>> STATUS default
>>
>> TYPE raster
>>
>> DATA "/fullpath/to/0608A1Argb_12_d73.ecw"
>>
>> END
>>
>>
>>
>> Ubuntu probably installed gdal, so you may have two copied. To see which
>> one is first, try
>>
>> which -a gdalinfo
>>
>> and verify that the version with ecw support is first.
>>
>>
>>
>> And if you are still having trouble, please post your layer definition.
>>
>>
>>
>> rich
>>
>>
>>
>>
>>
>> On Thu, Apr 9, 2015 at 8:54 AM, Marco Afonso <mafonso333 at gmail.com>
>> wrote:
>>
>>
>> Hi all,
>>
>>
>>
>> Installed mapserver with apt-get.
>>
>> I've installed gdal manually: compiled with ecw support (gdalinfo tell me
>> that).
>>
>> I'm trying to use a shapefile (which points to ecw files) on mapserver
>> but comes the error (the relevant part):
>>
>>
>> msDrawMap(): Image handling error. Failed to draw layer named
>> 'ortos2012'.
>> msDrawRasterLayerLow(): Unable to access file. Corrupt, empty or missing
>> file '/fullpath/to/0608A1Argb_12_d73.ecw
>>
>>
>>
>> Note also that I'm using the full path to the ecw.
>>
>>
>>
>> Any ideas please? Thanks :)
>>
>>
>> --
>>
>> Regards,
>>
>> Marco Afonso
>>
>> http://goo.gl/ZDtQjm
>>
>>
>>
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>>
>>
>>
>>
>> --
>>
>> Richard W. Greenwood, PLS
>> www.greenwoodmap.com
>>
>>
>>
>>
>> --
>>
>> Regards,
>>
>> Marco Afonso
>>
>> http://goo.gl/ZDtQjm
>>
>>
>
>
> --
> Regards,
> Marco Afonso
> http://goo.gl/ZDtQjm
>
>
--
Regards,
Marco Afonso
http://goo.gl/ZDtQjm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20150410/5553702a/attachment.htm>
More information about the MapServer-users
mailing list