<div dir="ltr"><div>Hi Richard and thank you for your reply :)</div><div><br></div><div>Ok... from shell I should be able to read ecw file metadata, right?</div><div><br></div><div>Im putting here gdalinfo and ogrinfo outputs.</div><div><br></div><div>$ gdalinfo --formats</div><div><br></div><div>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)</div><div><br></div><div><br></div><div>$ ogrinfo 005991Argb_12_d73.ecw</div><div><br></div><div>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<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-04-10 1:19 GMT+01:00 Richard Greenwood <span dir="ltr"><<a href="mailto:richard.greenwood@gmail.com" target="_blank">richard.greenwood@gmail.com</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 dir="ltr">Why are you using a shapefile? Is it a tile index? Have you tried accessing the ecw file directly? Something like:<div><br><div><div>LAYER </div><div> NAME "ecw"</div><div> STATUS default</div><div> TYPE raster</div><div> DATA "<span style="font-size:12.8px">/fullpath/to/0608A1Argb_</span><span style="font-size:12.8px">12_d73.ecw</span>"</div><div>END</div></div><div><br></div><div>Ubuntu probably installed gdal, so you may have two copied. To see which one is first, try </div><div> which -a gdalinfo</div><div>and verify that the version with ecw support is first.</div></div><div><br></div><div>And if you are still having trouble, please post your layer definition.</div><div><br></div><div>rich</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Thu, Apr 9, 2015 at 8:54 AM, Marco Afonso <span dir="ltr"><<a href="mailto:mafonso333@gmail.com" target="_blank">mafonso333@gmail.com</a>></span> wrote:<br></div></div><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><div class="h5"><div dir="ltr"><div><br clear="all">Hi all,</div><div><br></div><div>Installed mapserver with apt-get.</div><div>I've installed gdal manually: compiled with ecw support (gdalinfo tell me that).</div><div>I'm trying to use a shapefile (which points to ecw files) on mapserver but comes the error (the relevant part):</div><div><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</div><div><br></div><div>Note also that I'm using the full path to the ecw.</div><div><br></div><div>Any ideas please? Thanks :)</div><span><font color="#888888"><div><br>-- <br></div><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>
</font></span></div>
<br></div></div>_______________________________________________<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><span><font color="#888888"><br></font></span></blockquote></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr">Richard W. Greenwood, PLS<br><a href="http://www.greenwoodmap.com" target="_blank">www.greenwoodmap.com</a></div></div>
</font></span></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></div>