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