[mapserver-users] Access to a remote raster file in wms-mapfile

David Alda Fernandez de Lezea dalda at ikt.es
Wed Feb 3 23:39:49 PST 2010


 
Thanks for your answers:

Daniel: I tried what you mentioned:

 1- Does "gdalinfo --formats" list the ECW format?

	Yes it does.

Supported Formats:
  VRT (rw+): Virtual Raster
  GTiff (rw+): GeoTIFF
  NITF (rw+): National Imagery Transmission Format
  RPFTOC (ro): Raster Product Format TOC format
  HFA (rw+): Erdas Imagine Images (.img)
  SAR_CEOS (ro): CEOS SAR Image
  CEOS (ro): CEOS Image
  JAXAPALSAR (ro): JAXA PALSAR Product Reader (Level 1.1/1.5)
  GFF (ro): Ground-based SAR Applications Testbed File Format (.gff)
  ELAS (rw+): ELAS
  AIG (ro): Arc/Info Binary Grid
  AAIGrid (rw): Arc/Info ASCII Grid
  SDTS (ro): SDTS Raster
  DTED (rw): DTED Elevation Raster
  PNG (rw): Portable Network Graphics
  JPEG (rw): JPEG JFIF
  MEM (rw+): In Memory Raster
  JDEM (ro): Japanese DEM (.mem)
  GIF (rw): Graphics Interchange Format (.gif)
  ESAT (ro): Envisat Image Format
  FITS (rw+): Flexible Image Transport System
  BSB (ro): Maptech BSB Nautical Charts
  XPM (rw): X11 PixMap Format
  BMP (rw+): MS Windows Device Independent Bitmap
  DIMAP (ro): SPOT DIMAP
  AirSAR (ro): AirSAR Polarimetric Image
  RS2 (ro): RadarSat 2 XML Product
  PCIDSK (rw+): PCIDSK Database File
  PCRaster (rw): PCRaster Raster File
  ILWIS (rw+): ILWIS Raster Map
  SGI (rw+): SGI Image File Format 1.0
  SRTMHGT (rw): SRTMHGT File Format
  Leveller (rw+): Leveller heightfield
  Terragen (rw+): Terragen heightfield
  GMT (rw): GMT NetCDF Grid Format
  netCDF (rw): Network Common Data Format
  ISIS3 (ro): USGS Astrogeology ISIS cube (Version 3)
  ISIS2 (ro): USGS Astrogeology ISIS cube (Version 2)
  PDS (ro): NASA Planetary Data System
  ERS (rw+): ERMapper .ers Labelled
  ECW (rw): ERMapper Compressed Wavelets
  JP2ECW (rw+): ERMapper JPEG2000
  L1B (ro): NOAA Polar Orbiter Level 1b Data Set
  FIT (rw): FIT Image
  GRIB (ro): GRIdded Binary (.grb)
  MrSID (ro): Multi-resolution Seamless Image Database (MrSID)
  JP2MrSID (ro): MrSID JPEG2000
  RMF (rw+): Raster Matrix Format
  WCS (ro): OGC Web Coverage Service
  WMS (ro): OGC Web Map Service
  MSGN (ro): EUMETSAT Archive native (.nat)
  RST (rw+): Idrisi Raster A.1
  INGR (rw+): Intergraph Raster
  GSAG (rw): Golden Software ASCII Grid (.grd)
  GSBG (rw+): Golden Software Binary Grid (.grd)
  GS7BG (ro): Golden Software 7 Binary Grid (.grd)
  COSAR (ro): COSAR Annotated Binary Matrix (TerraSAR-X)
  TSX (ro): TerraSAR-X Product
  COASP (ro): DRDC COASP SAR Processor Raster
  PNM (rw+): Portable Pixmap Format (netpbm)
  DOQ1 (ro): USGS DOQ (Old Style)
  DOQ2 (ro): USGS DOQ (New Style)
  ENVI (rw+): ENVI .hdr Labelled
  EHdr (rw+): ESRI .hdr Labelled
  GenBin (ro): 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 (ro): GSC Geogrid
  FAST (ro): EOSAT FAST Format
  BT (rw+): VTP .bt (Binary Terrain) 1.3 Format
  LAN (ro): Erdas .LAN/.GIS
  CPG (ro): Convair PolGASP
  IDA (rw+): Image Data and Analysis
  NDF (ro): NLAPS Data Format
  EIR (ro): Erdas Imagine Raw
  DIPEx (ro): DIPEx
  LCP (ro): FARSITE v.4 Landscape File (.lcp)
  RIK (ro): Swedish Grid RIK (.rik)
  USGSDEM (rw): USGS Optional ASCII DEM (and CDED)
  GXF (ro): GeoSoft Grid Exchange Format
  HTTP (ro): HTTP Fetching Wrapper
  HDF5 (ro): Hierarchical Data Format Release 5
  HDF5Image (ro): HDF5 Dataset
  ADRG (rw+): ARC Digitized Raster Graphics
  BLX (rw): Magellan topo (.blx)

2- Check that you are able to open the file with
     gdalinfo \\192.168.1.4\ortofotos\EUSKADI_2009_ED50.ecw

	I'm able to get file info:
	Driver: ECW/ERMapper Compressed Wavelets
      Files: \\192.168.1.4\ortofotos\EUSKADI_2009_ED50.ecw
	Size is 596353, 462680
	Coordinate System is `'
	Origin = (457707.500000000000000,4811974.969999999700000)
	Pixel Size = (0.250000000000000,-0.250000000000000)
	Corner Coordinates:
	Upper Left  (  457707.500, 4811974.970) 
	Lower Left  (  457707.500, 4696304.970) 
	Upper Right (  606795.750, 4811974.970) 
	Lower Right (  606795.750, 4696304.970) 
	Center      (  532251.625, 4754139.970) 
	Band 1 Block=596353x1 Type=Byte, ColorInterp=Red
	  Overviews: arbitrary
	  Metadata:
	    LAYER_TYPE=athematic
	Band 2 Block=596353x1 Type=Byte, ColorInterp=Green
	  Overviews: arbitrary
	  Metadata:
	    LAYER_TYPE=athematic
	Band 3 Block=596353x1 Type=Byte, ColorInterp=Blue
	  Overviews: arbitrary
	  Metadata:
	    LAYER_TYPE=athematic


Jukka:

I've got another raster file that I CAN access from my WMS an it's located in a mapped unit:

DATA "\\iktfs1\Estatica$\ORTOFOTOS\Euskadi_2006_rgb_25cm_ed50.ecw"

It's weird isn't it?? I guess it could be something related to the named units or something like that.

More suggestions??

Thanks again.

 
Un saludo,
 
··················································································

David Alda Fernández de Lezea
Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad
 
IKT
Granja Modelo s/n · 01192 · Arkaute (Araba)

··················································································
Tlfnos.: 945-00-32-95                         Fax: 945-00.32.90
··················································································
email: dalda at ikt.es                                web: www.ikt.es
··················································································

-----Mensaje original-----
De: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] En nombre de Rahkonen Jukka
Enviado el: miércoles, 03 de febrero de 2010 23:23
Para: mapserver-users at lists.osgeo.org
Asunto: Re: [mapserver-users] Access to a remote raster file in wms-mapfile

Hi,

I guess that you will also need to configure Apache server so that it gives an access to the remote disk.  I have not done it with IP-address but by assigning a drive letter for it first.  This has a side effect that Apache cannot be installed as Windows service in a simple way.

-Jukka Rahkonen-


Daniel Morissette wrote:

I'd suggest you start by making sure GDAL can open the file:

1- Does "gdalinfo --formats" list the ECW format?

2- Check that you are able to open the file with
     gdalinfo \\192.168.1.4\ortofotos\EUSKADI_2009_ED50.ecw

Daniel

David Alda Fernandez de Lezea wrote:
> Hi list,
> 
> I'm trying to access a remote raster file stored in NAS device (Iomega StorCenter Pro NAS 150D) which ip address is (192.168.1.4).
> 
> In my mapfile I'm putting the url like this:
> 
> DATA "\\192.168.1.4\ortofotos\EUSKADI_2009_ED50.ecw"
> 
> But when I try to load the wms layer, I don't get anything and mapserver throws the following error:
> 
> ...
> [Wed Feb 03 09:11:13 2010].67000 msDrawRaster(): Unable to access 
> file. \\192.168.1.4\ortofotos\EUSKADI_2009_ED50.ecw using full path 
> \\192.168.1.4\ortofotos\EUSKADI_2009_ED50.ecw
> [Wed Feb 03 09:11:13 2010].67000 Unable to open file \\192.168.1.4\ortofotos\EUSKADI_2009_ED50.ecw for layer orto0 ... ignoring this missing data.
> [Wed Feb 03 09:11:13 2010].67000 msDrawMap(): Layer 1 (orto0), 0.000s 
> ...
> 
> The thing, is that if I type this url in my web browser, I get the file downloading. What I'm doing wrong? Any ideas?
> 
> Thanks in advance.
>  
>  
> Un saludo,
>  
> ······································································
> ············
> 
> David Alda Fernández de Lezea
> Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y 
> Biodiversidad
>  
> IKT
> Granja Modelo s/n · 01192 · Arkaute (Araba)
> 
> ··················································································
> Tlfnos.: 945-00-32-95                         Fax: 945-00.32.90
> ··················································································
> email: dalda at ikt.es                                web: www.ikt.es
> ······································································
> ············ _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users


--
Daniel Morissette
http://www.mapgears.com/
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users



More information about the MapServer-users mailing list