[mapserver-users] retrieve map coordinates with different EPSG

2012-09-07 Thread Andrea Peri
Hi, Usign the templating capabilities of mapserver. I need the parameters [mapx] and [mapy] will return the coordinate of a clicked point. I possible in the templates set semothing to have this coordinates [mapx], [mapy] in a different SRS ? I see there is the [maplon] and [maplat] parameter. But

Re: [mapserver-users] Show build options for php_mapserver.so

2012-09-07 Thread Jeff McKenna
On 12-09-07 1:21 AM, Ian Walberg wrote: Is there a way of doing the equivalent of ./mapserv –v with php or php_mapsript.so? A very easy way to see PHP build information (including mapscript details) is to go to the commandline and simply call 'php -i' Have a good Friday everyone. -jeff

Re: [mapserver-users] MapServer 6.2.0 beta3 release

2012-09-07 Thread Alan Boudreault
Ubuntu package is available for precise in testing PPA: https://launchpad.net/~ubuntugis/+archive/ubuntugis-testing/+packages?field.name_filter=field.status_filter=publishedfield.series_filter=precise Alan On 12-09-06 02:07 PM, thomas bonfort wrote: The MapServer Team is pleased to announce

Re: [mapserver-users] WMS layer example

2012-09-07 Thread Ian Walberg
Just in case anyone else needs this here is the working map file. MAP NAME 'Simple' STATUS ON SIZE 640 480 EXTENT -121 32 -100 45 UNITS MILES SHAPEPATH shp IMAGECOLOR 40 40 40 IMAGETYPE PNG CONFIG MS_ERRORFILE c:/ms4w/Apache/htdocs/mapserver.log

Re: [mapserver-users] retrieve map coordinates with different EPSG

2012-09-07 Thread Fawcett, David (MPCA)
I looked at the documentation because I haven't used in a while. The docs aren't clear, but seem to imply that MAPXY should return coordinates in the same spatial reference system as the layer that you are querying. I kind of think that they should be in the spatial reference system of the

[mapserver-users] [Python+MapScript] Convert imageObj to PIL Image

2012-09-07 Thread Jelmer Baas
Hi All, I've been testing today in Python, trying to get a MapScript imageObj into an python Image object. This works via the following code: map.transparent = MS_ON map.selectOutputFormat('png8') map.outputformat.imagemode = MS_IMAGEMODE_RGBA

Re: [mapserver-users] [Python+MapScript] Convert imageObj to PIL Image

2012-09-07 Thread thomas bonfort
IIRC, PIL does not support 8bit pngs with transparency, so writing it to a file won't help. If you need alpha, you'll have to stick with 32bit pngs. -- thomas On Fri, Sep 7, 2012 at 3:35 PM, Jelmer Baas b...@speerit.nl wrote: Hi All, I've been testing today in Python, trying to get a

Re: [mapserver-users] [Python+MapScript] Convert imageObj to PIL Image

2012-09-07 Thread Jelmer Baas
Oh, wow, that was so simple. I changed map.selectOutputFormat('png8') to map.selectOutputFormat('png24') And done. Strangely, though, saving it to a file and re-opening *does* work! Thanks for the quick reply! -- Jelmer -Original Message- From: thomas bonfort

Re: [mapserver-users] retrieve map coordinates with different EPSG

2012-09-07 Thread Lime, Steve D (DNR)
Assuming you're sending the request in pixels, along with a map extent, MapServer will convert the point based on the SRS of the extent you passed. I'm thinking that won't get you what you want and I'm not sure of a way to do so. The various extent tags have projection capabilities built in but

Re: [mapserver-users] [TINYOWS] 'Looser' XSD?

2012-09-07 Thread Stephen Woodbridge
Eric, Thanks for reporting this because I have to dive into doing the same shortly. I would suggest that OpenLayers is where the problem is because it is generating the XML that is going to TinyOWS. I have not looked into this specific issue but in general OL is pretty flexible and you

Re: [mapserver-users] MapServer 6.2.0 beta3 release

2012-09-07 Thread Jeff McKenna
A beta3 Windows package is also available now for testing: http://www.maptools.org/ms4w/index.phtml?page=RELEASE_mapserver_ms4w3.x_dev-6.2.0.html -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/

[mapserver-users] MODE=legendicon GROUP Layers

2012-09-07 Thread Andrew Cowie
Hello list Wondering if anyone can help… We have been utilising the legendicon mode to create a custom legend in our application, however some recent work to try and speed up our WMS has reworked our mapfiles slightly, making use of GROUP LAYERs to group almost identical LAYERs together, the

Re: [mapserver-users] MODE=legendicon GROUP Layers

2012-09-07 Thread Basques, Bob (CI-StPaul)
All, I've gotten around this in the past by using dummy layers specifically for Legend Creation. You have complete control over the legend this way and can mix and match data sources however is required without needing to actually map the data out. It is more work overall, but if your

Re: [mapserver-users] MODE=legendicon GROUP Layers

2012-09-07 Thread Lime, Steve D (DNR)
Legend icon only works with layers. Groups are just too ambiguous to uniquely identify the class to be rendered. Groups don't have to be organized by scale ranges. Often they link related layers, for example a bunch of road feature types. I think It would be possible to add support to see if a

Re: [mapserver-users] Fw: mapserver binary for CentOS?

2012-09-07 Thread Saka Royban
Thanks a lot Peter for your kind help Extracting mapserv6.rpm, i got a 1.3 MB file. Now, i'm gonna test it on the server. Thanks again From: Peter Hopfgartner peter.hopfgart...@r3-gis.com To: mapserver-users@lists.osgeo.org Sent: Thursday, September 6,

Re: [mapserver-users] [TINYOWS] 'Looser' XSD?

2012-09-07 Thread Eric
Indeed, it appears it should be straightforward to resolve this from the OL end. I have just summoned the help of the OpenLayers-User mailing list gurus about this. Refer to the thread over there for further information. Thanks, Eric On 09/07/2012 11:57 AM, Stephen Woodbridge wrote: Eric,