[mapserver-dev] Vector Tileindexes - do they need to be shapefiles
Michael Smith
michael.smith.erdc at gmail.com
Wed Mar 22 10:53:57 PDT 2017
Thanks Even its working with an OGR connection.
I guess vector tileindexes just haven't kept up with raster ones.
Mike
--
Michael Smith
Remote Sensing/GIS Center
US Army Corps of Engineers
From: Even Rouault <even.rouault at spatialys.com>
Date: Wednesday, March 22, 2017 at 1:23 PM
To: <mapserver-dev at lists.osgeo.org>
Cc: Michael Smith <michael.smith.erdc at gmail.com>
Subject: Re: [mapserver-dev] Vector Tileindexes - do they need to be
shapefiles
> On mercredi 22 mars 2017 13:12:45 CET Michael Smith wrote:
>
>> > Devs,
>
>> >
>
>> > Currently raster tile indexes support multiple source types, ogr, db
>
>> > connections, etc. I just tried to do this with a vector tileindex and got
>
>> > that it has to be a shapefile. I see this in the code:
>
>> >
>
>> > if(tlp->connectiontype != MS_SHAPEFILE) {
>
>> > msSetError(MS_SHPERR, "Tileindex layer must be a shapefile.",
>
>> > "msTiledSHPOpenFile()");
>
>> > return(MS_FAILURE);
>
>> > }
>
>> >
>
>> > Do vector tileindexes only support shapefiles or is this just an old check
>
>> > that¹s never been removed?
>
>
>
> Mike,
>
>
>
> The check here is legitimate, and if you remove it, you'll likely get a crash
> as few lines because of the cast :
>
> tSHP->tileshpfile = (shapefileObj *) tlp->layerinfo; /* shapefiles use
> layerinfo to point to a shapefileObj */
>
>
>
> But you can accomplish what you want by adding a CONNECTIONTYPE OGR item in
> your layer definition. This will go through the OGR code path which also
> supports tile indexes ... provided they are OGR datasources themselves.
>
>
>
> Even
>
>
>
> --
>
> Spatialys - Geospatial professional services
>
> http://www.spatialys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20170322/347290c7/attachment.html>
More information about the mapserver-dev
mailing list