Re: [mapserver-users] WMS service problem with mapserver mapfile layer classes
Hi Jorg, thanks for your explanations that are very useful for me. Goran -- View this message in context: http://osgeo-org.1560.x6.nabble.com/WMS-service-problem-with-mapserver-mapfile-layer-classes-tp5208743p5209177.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WMS service problem with mapserver mapfile layer classes
Am 04.06.2015 um 13:00 schrieb gorank: > I have changed it, actually deleted validation statement on CLASS level and > add in LAYER METADATA > > *"default_godina" "2010"* > > and now the map for 2010 is shown. > > My question is, what should have the user to get map for year 2011 or 2013, > because, I suppose, that always when I call the mapfile I will receive map > for year 2010 (as default value) . The user has to add the &GODINA Paramater to the url, it will overwrite the default. That's why it is called default ;) If you want to tell the user what to, you could use a default which is not in your data (e.g. 1000) and create an annotation (label) within this class where you decribe that he needs the &GODINA parameter for proper work of the wms. the OGC-Way would be to include the paramater in the Capabilities XML (s. http://cite.opengeospatial.org/OGCTestData/wms/1.1.1/spec/wms1.1.1.html#basic_elements.params.vsps). But I don't know how to do that. Jörg > > Any suggestions? > > Goran > > > > -- > View this message in context: > http://osgeo-org.1560.x6.nabble.com/WMS-service-problem-with-mapserver-mapfile-layer-classes-tp5208743p5209115.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WMS service problem with mapserver mapfile layer classes
I have changed it, actually deleted validation statement on CLASS level and add in LAYER METADATA *"default_godina" "2010"* and now the map for 2010 is shown. My question is, what should have the user to get map for year 2011 or 2013, because, I suppose, that always when I call the mapfile I will receive map for year 2010 (as default value) . Any suggestions? Goran -- View this message in context: http://osgeo-org.1560.x6.nabble.com/WMS-service-problem-with-mapserver-mapfile-layer-classes-tp5208743p5209115.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WMS service problem with mapserver mapfile layer classes
Hi Jorg, I have put default value for 2010 on LAYER and CLASS level validation part VALIDATION "default_godina" "2010" END #VALIDATION but i'm not sure is it enough for others to use wms service without problems. Goran -- View this message in context: http://osgeo-org.1560.x6.nabble.com/WMS-service-problem-with-mapserver-mapfile-layer-classes-tp5208743p5209110.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WMS service problem with mapserver mapfile layer classes
Hi Goran, > I would like from you confirmation url that you gave > http://mapserver.stat.gov.mk/cgi-bin/GDZS/wms?map=/ms4w/apps/GDZS/NAS001_op.map&GODINA=2013&; yes that's what I meant yesterday for testing it in qgis, but if you want provide your url to others you should have a look at http://mapserver.org/cgi/runsub.html#default-values-if-not-provided-in-the-url Jörg Am 03.06.2015 um 17:59 schrieb gorank: > Hi Jorg, > It works with you help. Thanks. Actually I had problem to show > municipalities in qgis but your suggestion to add YEAR in service url, > solves the problem. I use shapefile with Year as attribute name (time series > from 2009 to 2013) so in openlayers I select year from dropdown list and in > the map show values from the shossen column. > > I would like from you confirmation url that you gave > http://mapserver.stat.gov.mk/cgi-bin/GDZS/wms?map=/ms4w/apps/GDZS/NAS001_op.map&GODINA=2013&; > > is final WMS url that users should have from our side, to access our WMS > service? > Goran > > > > -- > View this message in context: > http://osgeo-org.1560.x6.nabble.com/WMS-service-problem-with-mapserver-mapfile-layer-classes-tp5208743p5208979.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users