[mapserver-users] Access to a raster via http
Frank Warmerdam
warmerdam at pobox.com
Tue Apr 1 09:19:05 PDT 2008
Ruben Pardo wrote:
> I wanted to know if it is possible to access a raster file via http,
> something similar to
>
> LAYER
> NAME "capaRasterVirtual"
> DATA "http://localhost/archivo.tiff"
> TYPE RASTER
> DEBUG ON
>
> STATUS ON
> END
Ruben,
I haven't tried it, but I think this should work *if* your GDAL is
built against curl ("gdalinfo --format http" should report info).
But, keep in mind that archivo.tiff will be fetched for every map
request whether it falls within the bounds of the request or not.
And the whole file is fetched even if only a small subset or decimated
view is needed.
So I don't think of this as a generally prudent thing to be doing.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | President OSGeo, http://osgeo.org
More information about the MapServer-users
mailing list