Hi,
- This may be a typo:
NAME "places1"
DATA "geometry from osm_new_mainroads using unique osm_id using srid 3785"
TYPE POINT
Or do you really have your places are in osm_new_mainroads table.
- Then it is a good habit to have PROJECTION block in both the MAP block and
for each LAYER.
- It is
I assume the getcapabilities request is working OK?
What happens when you open this in your browser:
http://127.0.0.1/cgi-bin/mapserv?&map=/var/www/osm-google.map?service=WMS&version=1.3.0&request=getcapabilities
& what happens if you initialise the CRS in the mapfile with just the epsg code
i
It seems your url is set wrong as mode is given twice. You have to pass
layer=layer_name
2012/8/26 李杨
> I try to load a postgis data layer on my mapfile, have problem when
> configure the mapfile done, then visit it using "
> http://127.0.0.1/cgi-bin/mapserv?&map=/var/www/osm-google.map&mode=map
In later versions of Mapserver, you seem to need to use a symbol.
For example:
SYMBOL
NAME "circle"
TYPE ellipse
POINTS
1 1
END
END
LAYER
...
CLASS
NAME "places1_color"
STYLE
SYMBOL 'circle'
COLOR 255 215 0
SIZE 1
END # s
About the points not being displayed, I tried loading them with a mapfile
reading from the shapefiles directly and it didn't work too. But I have a
GIS application where after importing the shapefile I can see all the
points. Maybe the TYPE option in mapfile could be another. When I load the
shapef
-- Forwarded message --
From: Henrique Rennó
Date: 2012/8/26
Subject: Re: [mapserver-users] No transparency for layer
To: pcr...@pcreso.com
Thanks for your advice, but it didn't work because I'm loading data from a
postgis geometry field and that OFFSITE option seems to be relate