Opened 19 years ago

Closed 15 years ago

#1321 closed defect (fixed)

PostGIS cannot be used as a TILEINDEX source

Reported by: hrz@… Owned by: pramsey
Priority: normal Milestone:
Component: PostGIS Interface Version: 4.5
Severity: major Keywords:
Cc:

Description

I believe PostGIS should be able to be used as a datasource for tileindices
using the following mapfile syntax:

    # layer specifying the tileindex
    LAYER
        NAME "my_layer_idx"
        TYPE TILEINDEX
        CONNECTIONTYPE postgis
        CONNECTION "dbname=db user=me password=go host=localhost"
        DATA "the_geom from tiletest"
    END

    # layer using the tileindex
    LAYER
        NAME "my_layer"
        STATUS ON
        TYPE RASTER
        TILEINDEX "my_layer_idx"
    END

As described at
<http://mapserver.gis.umn.edu/wilma/mapserver-dev/0409/msg00005.html>, however,
this does not work due to the fact that the code in mappostgis.c isn't checking
the layer's TYPE attribute for the TILEINDEX value in the
msPOSTGISLayerGetShapeRandom() function.

The attached patch fixes this, as well as making msPOSTGISLayerGetShape() aware
of tileindices.

Attachments (1)

mappostgis.c.patch (829 bytes ) - added by hrz@… 19 years ago.
Patch for mappostgis.c in CVS

Download all attachments as: .zip

Change History (3)

by hrz@…, 19 years ago

Attachment: mappostgis.c.patch added

Patch for mappostgis.c in CVS

comment:1 by pramsey, 15 years ago

Owner: changed from refractions to pramsey

comment:2 by pramsey, 15 years ago

Resolution: fixed
Status: newclosed

I believe recent versions of Mapserver now support this.

Note: See TracTickets for help on using tickets.