[mapserver-users] Mapfile verification tool
Hello all, Is there a tool available to check the mapfile syntax? I am working with a file that is getting quite large and it is easy to, for example, miss or add an "END". Thanks Alberto Najera ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Class group and getfeatureinfo request
On 12-05-14 2:22 PM, Marc-André Trottier wrote: Is there a way to consider the "CLASS GROUP" into a WMS getfeatureinfo request ? CLASS GROUPs are mapped to named WMS STYLES by MapServer: http://mapserver.org/ogc/sld.html#named-styles-support I didn't test this, but since GetFeatureInfo is really a complete GetMap plus a few extra parameters specific to GetFeatureInfo, it should be possible to set the GetMap STYLES=... parameter in the GetFeatureInfo URL and have it select only the right group of classes for the layer(s) for which a style is specified. (MapServer also has a STYLE block inside CLASSes, but don't let that confuse you. The WMS STYLEs are really mapped to CLASS GROUPs.) -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Class group and getfeatureinfo request
Is there a way to consider the "CLASS GROUP" into a WMS getfeatureinfo request ? ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] wms base layers
For a simple example of OSM data, running on OpenSuse rather than Ubuntu, with the Oceania OSM data, try http://121.73.69.119/osm_nz.html Might help you decide if this is worth following up for your purposes. Cheers Brent Wood --- On Tue, 5/15/12, Daniel Morissette wrote: From: Daniel Morissette Subject: Re: [mapserver-users] wms base layers To: mapserver-users@lists.osgeo.org Date: Tuesday, May 15, 2012, 2:25 AM On 12-05-14 9:42 AM, Stephen Woodbridge wrote: > On 5/14/2012 5:31 AM, Rita Abreu wrote: >> Hi, >> >> I´m a new user of mapserver. >> Can anyone recomend me base layers for my project? >> Can somenoe tell me how to add google layers or osm layers? > [...] > > If you really are asking how to pull OSM or Google into mapserver, > instead of OpenLayers, then you will need to extract the OSM data into > data layers and create a mapfile to render it in mapserver OR find an > existing WMS service that you can pull OSM images into mapserver. You > can not do this with Google it violates their TOS. > For a step by step recipe to load and render OSM with MapServer, see: https://github.com/mapserver/mapserver/wiki/RenderingOsmDataUbuntu -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ 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
[mapserver-users] Re: mapserver-users Digest, Vol 52, Issue 35
Sorry I missed you, but I am on parental leave until May 14th. Urgent YLUPC business can be sent to the YLUPC director at r...@planyukon.ca. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] how to embed images in a map
It the logo/graphs exist as images then you can just use symbols as annotation. How you'd do that depends on version. In 5.6 and earlier you'd use an annotation layer: LAYER ... TYPE ANNOTATION CLASS TEXT ' ' # blank text STYLE SYMBOL 'some image file' END END In 6.0+ the annotation layer above should still work but you can use LABEL styles to do the same thing when you do the polygon fills which requires one pass through the data and is more efficient: LAYER ... TYPE POLYGON CLASS TEXT ' ' # blank text STYLE ... # fill the polygon END LABEL ... STYLE SYMBOL 'some image file' END END Steve From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of pcr...@pcreso.com Sent: Friday, May 11, 2012 8:55 PM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] how to embed images in a map Hi, I'm trying to embed graphics in a map. A map with polygons, & each polygon has a logo or small graph to include at a specified location (point) in the output map. Can anyone suggest the best way to do this? The map is a WMS output layer, & ideally it should be generated as a layer in a mapfile? I guess a CGI could use image magic to do this on top of the map image, but I'm looking for a way Mapserver could do this directly. Thanks, Brent Wood ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Re: Mapserver + mapcache + Google Map
>From the requests you first posted, your client is requesting tiles with a negative y, which is invalid. I'd investigate into that as there's no way you're going to get any coherent result while these kind of requests are coming in ( http://cdiac5.ornl.gov/cgi-bin/mapcache/gmaps/test@g/2/-1/2.png ) -- thomas On Mon, May 14, 2012 at 4:57 PM, mkrassovski wrote: > Thomas, > yes, that was an SE Linux issue. I fixed that, thank you! > The last problem that I have now is misalignment. I have no idea why it does > it and how to fix. > Please, take a look: http://cdiac3.ornl.gov/waves/img/wms_4326_1.png > > Misha > > -- > View this message in context: > http://osgeo-org.1560.n6.nabble.com/Mapserver-mapcache-Google-Map-tp4958439p4974470.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
[mapserver-users] Re: Mapserver + mapcache + Google Map
Thomas, yes, that was an SE Linux issue. I fixed that, thank you! The last problem that I have now is misalignment. I have no idea why it does it and how to fix. Please, take a look: http://cdiac3.ornl.gov/waves/img/wms_4326_1.png Misha -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Mapserver-mapcache-Google-Map-tp4958439p4974470.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 base layers
On 12-05-14 9:42 AM, Stephen Woodbridge wrote: On 5/14/2012 5:31 AM, Rita Abreu wrote: Hi, I´m a new user of mapserver. Can anyone recomend me base layers for my project? Can somenoe tell me how to add google layers or osm layers? [...] If you really are asking how to pull OSM or Google into mapserver, instead of OpenLayers, then you will need to extract the OSM data into data layers and create a mapfile to render it in mapserver OR find an existing WMS service that you can pull OSM images into mapserver. You can not do this with Google it violates their TOS. For a step by step recipe to load and render OSM with MapServer, see: https://github.com/mapserver/mapserver/wiki/RenderingOsmDataUbuntu -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] wms base layers
On 5/14/2012 5:31 AM, Rita Abreu wrote: Hi, I´m a new user of mapserver. Can anyone recomend me base layers for my project? Can somenoe tell me how to add google layers or osm layers? If you are looking for free gis data start with google "free gis data" I think you may want to look at OpenLayers where you can create an application that uses Google maps or OSM services as a base map and then all you to overlay other data layers on top of that. Look at http://openlayers.com/ If you really are asking how to pull OSM or Google into mapserver, instead of OpenLayers, then you will need to extract the OSM data into data layers and create a mapfile to render it in mapserver OR find an existing WMS service that you can pull OSM images into mapserver. You can not do this with Google it violates their TOS. -Steve W ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] setFilter with containing couple of ORs
hello I was wondering how we could build setFilter expression containing couple of ORs jeoLayer.setFilter( item1 OR item2 OR item3); regards -- Ahmet Temiz Jeoloji Müh. Afet ve Acil Durum Yönetimi Başkanlığı Planlama ve Zarar Azaltma Dairesi Başkanlığı Bilgi ve CBS grubu Eskişehir Yolu 10. km. Lodumlu / Ankara Tel : 0 312 2872680 / 1535 Ahmet Temiz Geological Eng. Information Systems - GIS Group Disaster and Emergency Management of Presidency ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] wms base layers
Hi, I´m a new user of mapserver. Can anyone recomend me base layers for my project? Can somenoe tell me how to add google layers or osm layers? Thanks ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] mapcache - problems on install
Hi , thanks, now it works, it was a access problem to the disk where the folder with the mapcache.xml file was, I've changed the access to another disk and it works perfectly. Now I can make some tests to understand how it works. Thanks Steve for the explanation, Helen El 11/05/12 15:11, Stephen Woodbridge escribió: On 5/11/2012 8:22 AM, Helen San Segundo Navazo wrote: Sorry for insisting but I don't understeand how mapcache works. When I invoke in the url http://localhost/mapcache/ apache reads the MapCacheAlias so it goes to the path /home/curs/Desarrollo/Aplicaciones/mapserver-mapcache-18a50e2/ and read mapcache.xml file? If I invoke http://localhost/mapcache/demo what's doing? reads/create a demo folder inside the path /home/curs/Desarrollo/Aplicaciones/mapserver-mapcache-18a50e2/ or goes inside the mapcache.xml to a tag with "demo" value? I send a jpg with my structure of folders, is missing something? Maybe if I understand how mapcache works I would find what's the problem. Thanks In the apache config you want to specify a MapCacheAlias, this should be to a non-existent directory as apache will use this path to handoff the request to the mapcache service handler. For example: MapCacheAlias /mapcache /usr/var/mapcache/mapcache.xml When mapcache gets the handoff it reads the mapcache.xml config file which defines the various services, grids, etc that you have configured. If you have enabled the demo service for example: http://localhost/mapcache/demo Then mapcache will generate an html page the list the configured services. And if you click on one of the servers like wms if you configured that, it will generate a sample OpenLayers application preconfigured to access that service. You can view the page source to see how to setup OpenLayers to access that service. HTH, -Steve W ___ 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