[OpenLayers-Users] Blank PostGIS Layer with Openlayers

Marc Jansen jansen at terrestris.de
Sun Aug 9 09:52:35 EDT 2009


Hi Suresh,
Have you tested the UMN Layer?  (e.g. with shp2img) If it is not 
working, the mapserver userlist might help.
If the layer works, provide an URL sent to Mapserver by OpenLayers. 
Firebug  might help.

Regards, Marc



Suresh Nimbalkar schrieb:
> I am trying to display a simple postgis road layer with Mapserver 5 
> and Openlayers. I am not getting the PINK screen, suggesting success 
> in layer drawing. However, the map is blank. I know that the postgis 
> is installed properly since I do a bit of GIS computations with the 
> data stored in it with PHP.
>
> The important parts of map files are provided belowLAYER
>     NAME                "Roads"
>     CONNECTIONTYPE    POSTGIS
>     CONNECTION        "user=suresh password=suresh dbname=sitedatabase 
> host=localhost port=5432"
>     DATA                "stretch_geom from stretch"
>     STATUS            ON
>     TYPE                LINE
>     CLASS
>         color         255 0 255
>     END
> END # Layer
>
> The HTML template is a standard one with the following line in init() 
> function
>
>            map = new OpenLayers.Map( 'map' );
>            var layer1 = new OpenLayers.Layer.MapServer( "Circle", 
> "http://localhost/cgi-bin/mapserv", {map: 
> '/var/www/vedsur/MumbaiPG.map'}, {gutter: 15});
>            map.addLayer(layer1);
>
> Have been struggline with this problem for a while. Please help.
>
> Thanks and regards,
> Suresh
>
>
> ------------------------------------------------------------------------
> Love Cricket? Check out live scores, photos, video highlights and 
> more. Click here 
> <http://in.rd.yahoo.com/tagline_cricket_2/*http://cricket.yahoo.com>.
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>   




More information about the Users mailing list