Re: [mapserver-users] mapserver with kml

2017-12-14 Thread Ivan Ogasawara
Hi Stephen, 2017-12-14 15:44 GMT-04:00 Stephen Woodbridge : > The "+" char in the URL is interpreted as a space you have to ecapce this > as %2B > You're right, thanks .. but there is the same issue ... > But you should be able to give the OUTPUTFORMAT block an NAME "kml" and > give that the a

Re: [mapserver-users] mapserver with kml

2017-12-14 Thread Stephen Woodbridge
Ivan, The "+" char in the URL is interpreted as a space you have to ecapce this as %2B But you should be able to give the OUTPUTFORMAT block an NAME "kml" and give that the appropriate parameters like: EXTENSION "kml" MIMETYPE "application/vnd.google-earth.kml+xml" and what

Re: [mapserver-users] mapserver with kml

2017-12-14 Thread Rahkonen Jukka (MML)
If it is WMS standard compliant it must accept the advertized mime type. That said our KML implementation is not necessarily compliant. There may also be some trouble with parsing the request because + is changed into space. But perhaps it is OK to do so for the query string. -Jukka Rahkonen- _

Re: [mapserver-users] mapserver with kml

2017-12-14 Thread Ivan Ogasawara
> > The name of the format in the GetCapabilities is > > application/vnd.google-earth.kml+xml > > Use that. > yes .. this format is in my GetMap/Format application/vnd.google-earth.kml+xml using this format name in url result this error: msWMSLoadGetMapParams(): Image handling error. Unsupp

Re: [mapserver-users] mapserver with kml

2017-12-14 Thread Rahkonen Jukka (MML)
Hi, The name of the format in the GetCapabilities is application/vnd.google-earth.kml+xml Use that. I have never used CRS:84 as CRS and I don't know if it really works. You can stay in WMS version 1.1.1 and SRS=EPSG:4326. Verify first with image/png that GetMap returns a map. Read http:/

Re: [mapserver-users] mapserver with kml

2017-12-14 Thread Ivan Ogasawara
Dear all, thanks :) Carlo Ruiz, > http://mapserver.org/input/vector/kml.html Actually, in my case, the input should be shapefile and the outputs gtiff,png and kml. http://mapserver.org/output/kml_output.html Jukka Rahkonen, > I used version 1.3.0 so that the response will open into the brow

[mapserver-users] Legend graphic output: Nested.

2017-12-14 Thread Basques, Bob (CI-StPaul)
Anbyone have any ideas on how to output a nested, or indented legend graphic (as a raster image?)? Looking for something like this: Storm — Fitting (blue) — Catchbasin (blue) — Manhole (blue) — Forcemain (blue) — Storm Pipe (blue) Storm, Private — Fitting (lightblue) — Catchbasin (lightblue) —

Re: [mapserver-users] Retrieve the getfeatureinfo by point coords

2017-12-14 Thread Andrea Peri
Hi Jukka. It work ! I need to set a size widthxheight of 2x2 (mapserver seem don't work using 1x1) and a X=Y=1 and a BBOX of 1 meters. But the result is what I need. Really thx ! A. 2017-12-14 14:32 GMT+01:00 Rahkonen Jukka (MML) < jukka.rahko...@maanmittauslaitos.fi>: > Hi, > > > > -

Re: [mapserver-users] mapserver with kml

2017-12-14 Thread Rahkonen Jukka (MML)
Hi, Geoservers have KML output enabled by default so you can have a try with clients. Test-URL http://demo.geo-solutions.it/geoserver/wms?REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&WIDTH=1373&HEIGHT=840&LAYERS=topp%3Astates&TRANSPARENT=TRUE&FORMAT=application/vnd.google-earth.kml+xml&BBOX=-124.73

Re: [mapserver-users] Retrieve the getfeatureinfo by point coords

2017-12-14 Thread Rahkonen Jukka (MML)
Hi, - use fixed i=1&j=1 - use fixed &width=2&height=2 - push the clicked coordinates as first parameters of &BBOX= - calculate x+1, y+1 for completing the BBOX I do not remember exactly if width and height can be 1 and BBOX just a point with MapServer, but

Re: [mapserver-users] Retrieve the getfeatureinfo by point coords

2017-12-14 Thread Ian Turton
You could make a WFS getFeatures request using a WITHIN filter Ian On 14 December 2017 at 11:59, Andrea Peri wrote: > Hi, > I know the GetFeatureInfo is retrieving the information of all the > features available in a clicked point using the map extend (bbox) and the > pixels references I,J > >

Re: [mapserver-users] mapserver with kml

2017-12-14 Thread Seth G
Interesting! >From the WMS spec: "Graphic element formats include Scalable Vector Graphics (SVG; MIME type “image/svg+xml”) or Web Computer Graphics Metafile (WebCGM; MIME type “image/cgm;Version=4;ProfileId=WebCGM”) formats" I wonder how many WMS clients would handle KML as a WMS. As it is XML th

[mapserver-users] Retrieve the getfeatureinfo by point coords

2017-12-14 Thread Andrea Peri
Hi, I know the GetFeatureInfo is retrieving the information of all the features available in a clicked point using the map extend (bbox) and the pixels references I,J I'm searching some workaround in mapserver to retrieve the same information of a GetFeatureInfo using the x,y coords. My need is t

Re: [mapserver-users] mapserver with kml

2017-12-14 Thread Rahkonen Jukka (MML)
Hi Seth, KML is considered as an image format and it should work with WMS and with mode=map http://mapserver.gis.umn.edu/fr/development/rfc/ms-rfc-58.html It seems that KML output has not been developed much since the initial implementation. -Jukka Rahkonen- Lähettäjä: mapserver-users [mailto

Re: [mapserver-users] mapserver with kml

2017-12-14 Thread Rahkonen Jukka (MML)
Hi, When you work with WMS the first thing to do is to read the GetCapabilities. In your case http://172.17.0.2/?map=/maps/dengue-Rio-de-Janeiro.map&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities I used version 1.3.0 so that the response will open into the browser automatically. For KML supp

Re: [mapserver-users] mapserver with kml

2017-12-14 Thread Seth G
Hi, Your output image looks like a projection issue. Google Maps use the espg:3857 projection, but your request is asking for SRS=epsg:4326, maybe try changing this?Also are you trying to return KML or display an image using KML as a data source? If you are trying to return KML you'd need to use