Opened 19 years ago
Closed 15 years ago
#1321 closed defect (fixed)
PostGIS cannot be used as a TILEINDEX source
Reported by: | 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)
Change History (3)
by , 19 years ago
Attachment: | mappostgis.c.patch added |
---|
comment:1 by , 15 years ago
Owner: | changed from | to
---|
comment:2 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
I believe recent versions of Mapserver now support this.
Note:
See TracTickets
for help on using tickets.
Patch for mappostgis.c in CVS