[mapserver-users] Postgis tile index not working

Nelson Correia nelsonwc7 at hotmail.com
Thu Sep 3 06:46:36 PDT 2009


 

Thanks Jeff!

 

Just to share with those that have the same problem, I was having issues rendering PNG (changing to GIF worked the way I want) and the world file was missing too (I thought Mapserver would get the bounding box from the postgis database).

 

Nelson
 
> Date: Mon, 31 Aug 2009 10:01:00 -0300
> From: jmckenna at gatewaygeomatics.com
> To: mapserver-users at lists.osgeo.org
> Subject: Re: [mapserver-users] Postgis tile index not working
> 
> Nelson Correia wrote:
> > Hi,
> > 
> > I'm trying to use a postgis layer as tile index of a raster layer and 
> > can't get it working.
> > Here are the layers I'm using:
> > 
> > 
> > LAYER
> > NAME "layer_tindex"
> > TYPE POLYGON
> > CONNECTIONTYPE POSTGIS
> > CONNECTION "host=localhost port=5432 dbname=mydb 
> > user=myuser password=mypwd"
> > DATA "bbox from shapes"
> > CLASS
> > STYLE
> > OUTLINECOLOR 0 0 0
> > END
> > END
> > END
> > LAYER
> > NAME "layer_raster"
> > TYPE RASTER
> > STATUS DEFAULT
> > DUMP TRUE
> > TILEINDEX "layer_tindex"
> > TILEITEM "image_path"
> > PROJECTION
> > "init=epsg:4326"
> > END
> > END
> > 
> > When I make a request to Mapserver, everything gets into the image, 
> > except the images from the "layer_raster" layer. I can even see the 
> > bboxes if I turn on the layer "layer_tindex".
> > 
> > I can't find much documentation about this integration between Mapserver 
> > and Postgis, so tell me if I'm making some mistake.
> > 
> > By the way, I'm doing this with a Mapserver 5.2.1.
> > 
> > Thanks in advance,
> > 
> 
> I would start by using the commandline utility shp2img with the 
> '-all_debug 3' switch to see all errors (example#3 on 
> http://www.mapserver.org/utilities/shp2img.html).
> 
> -jeff
> 
> 
> 
> -- 
> Jeff McKenna
> FOSS4G Consulting and Training Services
> http://www.gatewaygeomatics.com/
> 
> 
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users

_________________________________________________________________
Share your memories online with anyone you want.
http://www.microsoft.com/middleeast/windows/windowslive/products/photos-share.aspx?tab=1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090903/34f367a5/attachment.htm>


More information about the MapServer-users mailing list