[mapserver-users] WMS service problem with mapserver mapfile layer classes

Jörg Thomsen jt at mapmedia.de
Wed Jun 3 00:38:45 PDT 2015


Hi Goran,

problem solved? it seems to work...?

these two requests result in different maps:

http://mapserver.stat.gov.mk/cgi-bin/GDZS/wms?map=/ms4w/apps/GDZS/NAS001_op.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG:7269&FORMAT=image/png&LAYERS=Opstini%2CRegioni%2CDrzGran%2CEzera&&BBOX=436350.358101,4509075,688350.358101,4698075&WIDTH=800&HEIGHT=600&GODINA=2013%20%3E%3E%20mapsermapserver.stat.gov.mk/cgi-bin/GDZS/wms?map=/ms4w/apps/GDZS/NAS001_op.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG:7269&FORMAT=image/png&LAYERS=Opstini,Regioni,DrzGran,Ezera&&BBOX=436350.358101,4509075,688350.358101,4698075&WIDTH=800&HEIGHT=600&GODINA=2013

http://mapserver.stat.gov.mk/cgi-bin/GDZS/wms?map=/ms4w/apps/GDZS/NAS001_op.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG:7269&FORMAT=image/png&LAYERS=Opstini%2CRegioni%2CDrzGran%2CEzera&&BBOX=436350.358101,4509075,688350.358101,4698075&WIDTH=800&HEIGHT=600&GODINA=2013%20%3E%3E%20mapsermapserver.stat.gov.mk/cgi-bin/GDZS/wms?map=/ms4w/apps/GDZS/NAS001_op.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG:7269&FORMAT=image/png&LAYERS=Opstini,Regioni,DrzGran,Ezera&&BBOX=436350.358101,4509075,688350.358101,4698075&WIDTH=800&HEIGHT=600&GODINA=2009

What I don't understand is your classification. The validation only
allows 4-digit values and there's only one class that fits ( EXPRESSION
([%godina%] >= 20 and [%godina%] < 10000)).

Or do you only wnat to know why your WMS does not work with qgis?
There you have to add your vendor parameter to the base url:
http://mapserver.stat.gov.mk/cgi-bin/GDZS/wms?map=/ms4w/apps/GDZS/NAS001_op.map&GODINA=2013&

*AND* you have to check the option 'ingnore getMap-URI from
Capabilities' (or sth like that, don't know the english expression).

Jörg


Am 02.06.2015 um 23:30 schrieb gorank:
> Here is image of all layers defined in mapfile and called with URL
> 
> http://mapserver.stat.gov.mk/cgi-bin/GDZS/wms?map=/ms4w/apps/GDZS/NAS001_op.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG:7269&FORMAT=image/png&LAYERS=Opstini%2CRegioni%2CDrzGran%2CEzera&GODINA=2009&BBOX=436350.358101,4509075,688350.358101,4698075&WIDTH=800&HEIGHT=600  
> 
> <http://osgeo-org.1560.x6.nabble.com/file/n5208769/WMS_Browser.png> 
> 
> Here is image of QGIS with all layers called plus Google Maps. All defined
> layers in mapfile are shown except of layer Opstini (means municipalities). 
> 
> <http://osgeo-org.1560.x6.nabble.com/file/n5208769/WMS_QGis.png>  
> 
> Why I cannot see the layer with municipalities and few classes?
> 
> Goran
> 
> 
> 
> --
> View this message in context: http://osgeo-org.1560.x6.nabble.com/WMS-service-problem-with-mapserver-mapfile-layer-classes-tp5208743p5208769.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 




More information about the MapServer-users mailing list