[mapserver-dev] Possible to use PostGIS as a TILEINDEX to
shapefiles?
Brent Fraser
bfraser at geoanalytic.com
Thu Apr 28 10:41:15 EDT 2011
Steve,
Yes, I'll file a ticket (maybe even write some code!). And the doc
on TILEINDEX is a little light so I may add to that as well.
Best Regards,
Brent Fraser
On 4/27/2011 9:38 PM, Stephen Woodbridge wrote:
> Brent,
>
> It would be good to bug this as it is a good idea and something that
> could potentially come out in a point release if it is not overly
> disruptive code-wise because it should be transparent to most
> operations (i'm guess as I have not dug into the code, and it might
> impact mapscript).
>
> -Steve W
>
> On 4/27/2011 11:02 PM, Daniel Morissette wrote:
>> Unfortunately too late for 6.0 as you had already figured out. However
>> you could use OGR connections for your PostGIS tileindex and to read
>> your shapefiles with the current version.
>>
>> Daniel
>>
>>
>> On 11-04-27 08:42 PM, Brent Fraser wrote:
>>> I've used a PostGIS layer as a TILEINDEX to raster files, but it
>>> doesn't
>>> seem to work for pointing to shapefiles.
>>>
>>> And looking at mapshape.c at line 1901 it checks:
>>>
>>> tlp = (GET_LAYER(layer->map, tSHP->tilelayerindex));
>>>
>>> if(tlp->connectiontype != MS_SHAPEFILE) {
>>> msSetError(MS_SDEERR, "Tileindex layer must be a shapefile.",
>>> "msTiledSHPOpenFile()");
>>> return(MS_FAILURE);
>>> }
>>>
>>>
>>> mapraster.c has some logic around line 410 that seems more generic.
>>>
>>> I wonder if it would be possible to fix this for 6.0, or is it too late
>>> now that rc1 is out?
>>>
>>
>>
>
> _______________________________________________
> mapserver-dev mailing list
> mapserver-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-dev
>
More information about the mapserver-dev
mailing list