<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.Shkpostityyli17
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 2.0cm 70.85pt 2.0cm;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="FI" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Use gdalinfo instead of ogrinfo.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">-Jukka Rahkonen<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Marco Afonso wrote:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US">Hi Richard and thank you for your reply :)<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Ok... from shell I should be able to read ecw file metadata, right?<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Im putting h</span>ere gdalinfo and ogrinfo outputs.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">$ gdalinfo --formats<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></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)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">$ ogrinfo 005991Argb_12_d73.ecw<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">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<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></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>>:<o:p></o:p></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:<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">LAYER <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> NAME "ecw"<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> STATUS default<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> TYPE raster<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> DATA "<span style="font-size:9.5pt">/fullpath/to/0608A1Argb_12_d73.ecw</span>"<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">END<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Ubuntu probably installed gdal, so you may have two copied. To see which one is first, try <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> which -a gdalinfo<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">and verify that the version with ecw support is first.<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">And if you are still having trouble, please post your layer definition.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">rich<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></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:<o:p></o:p></p>
</div>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<div>
<div>
<p class="MsoNormal"><br clear="all">
Hi all,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Installed mapserver with apt-get.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">I've installed gdal manually: compiled with ecw support (gdalinfo tell me that).<o:p></o:p></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):<o:p></o:p></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<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Note also that I'm using the full path to the ecw.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Any ideas please? Thanks :)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="color:#888888"><br>
-- <o:p></o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="color:#888888">Regards, <o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span style="color:#888888">Marco Afonso<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:#888888"><a href="http://goo.gl/ZDtQjm" target="_blank">http://goo.gl/ZDtQjm</a><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:#888888"><img border="0" id="_x0000_i1025" src="https://dl.dropboxusercontent.com/u/17607469/qr.png"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></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><o:p></o:p></p>
</blockquote>
</div>
<p class="MsoNormal"><span style="color:#888888"><br>
<br clear="all">
<o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span style="color:#888888"><o:p> </o:p></span></p>
</div>
<p class="MsoNormal"><span style="color:#888888">-- <o:p></o:p></span></p>
<div>
<div>
<p class="MsoNormal"><span style="color:#888888">Richard W. Greenwood, PLS<br>
<a href="http://www.greenwoodmap.com" target="_blank">www.greenwoodmap.com</a><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<br>
-- <o:p></o:p></p>
<div>
<div>
<p class="MsoNormal">Regards, <o:p></o:p></p>
<div>
<p class="MsoNormal">Marco Afonso<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><a href="http://goo.gl/ZDtQjm" target="_blank">http://goo.gl/ZDtQjm</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><img border="0" id="_x0000_i1026" src="https://dl.dropboxusercontent.com/u/17607469/qr.png"><o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>