[gdal-dev] open shapefile from server

Mateusz Loskot mateusz at loskot.net
Fri Feb 18 08:54:17 EST 2011


On 18/02/11 13:08, Mohammed Rashad wrote:
> How can I open a shapefile and read the coordinates from it without
> downloading into client. just as mywebsite.com/shapefiles/myshape.shp
>  <http://mywebsite.com/shapefiles/myshape.shp> and pass this to
> function as
>
> poDS =
> OGRSFDriverRegistrar::Open("http://mywebsite.com/shapefiles/myshape.shp",
> FALSE );
>
> Is it possible in gdal/ogr?

It is not possible without downloading. Even if URL-based file open is
supported, the Open function would still need to download the whole file.

Best regards,
-- 
Mateusz Loskot, http://mateusz.loskot.net
Charter Member of OSGeo, http://osgeo.org
Member of ACCU, http://accu.org


More information about the gdal-dev mailing list