Re: [mapserver-users] Color palette for road-like layers

2009-01-06 Thread Adrian Popa
Yes Bob, I like the roads. :) Can you show me how you are able to draw contours around your roads? Thanks Bob Basques wrote: Adrian, Would the lines used for this map work for you? https://gis.ci.stpaul.mn.us/gis/gismo_public/html/ Looks like the original Mapfile link is broken though,

Re: [mapserver-users] Color palette for road-like layers

2009-01-06 Thread Paul Spencer
Adrian, that is a fairly simple trick, you need to draw roads twice to do it. You can do that with two separate layers or two STYLE objects within a class depending on what effect you want to achieve. In both cases, you just draw the road 2 pixels wider in your 'outline' color (called a

Re: [mapserver-users] Showing pop up for a line

2009-01-06 Thread Dan Little
In my experience it's easier to do a buffer on the line features first (something nominal) which turns it into a polygon. In this way, the operators you want to use work consistently. - Original Message From: Subha Ramakrishnan su...@gslab.com To: Steve Lime

Re: [mapserver-users] Showing pop up for a line

2009-01-06 Thread Subha Ramakrishnan
Hi, Thanks a lot for the reply. If i use ST_Contains(topology,st_expand(geomFromText('POINT(77.87117958068927 13.491965860913544)',-1), 10), can it be the case that more than one record will match the condition? And this will not work for me, as I need to have exactly one record to show

Re: [mapserver-users] Color palette for road-like layers

2009-01-06 Thread Jeff McKenna
I have an additional question: can elements such as roads be drawn in such a way that they look like google maps (see second attachment) - meaning not just a single color, but apparently color + boundries? This is documented in the Intro to MapServer doc:

[mapserver-users] FORMATOPTION PALETTE_FORCE=TRUE problem

2009-01-06 Thread paalkr
Hi! I have tried to use the FORMATOPTION PALETTE_FORCE=TRUE with no luck. I've goth this error message all the time: [Tue Jan 6 15:26:05 2009].409786 msDrawMap(): Layer 3 (N500Hoydelag), 0.161s [Tue Jan 6 15:26:05 2009].409998 msDrawMap(): Drawing Label Cache, 0.000s [Tue Jan 6 15:26:05

Re: [mapserver-users] FORMATOPTION PALETTE_FORCE=TRUE problem

2009-01-06 Thread thomas bonfort
are you calling this with a transparent=true ?? in that cas, your palette file should be a list of quadruplets (r,g,b,a) (and it would be better to have an outputformat with imagemode rgba, and use that one instead of passing transparent=true) thomas On Tue, Jan 6, 2009 at 15:56, paalkr

Re: [mapserver-users] Showing pop up for a line

2009-01-06 Thread Steve Lime
Why not use straight MapServer queries? Set a reasonable tolerance and that should work ok too. Steve On 1/6/2009 at 12:04 AM, in message 4962f45d.3010...@gslab.com, Subha Ramakrishnan su...@gslab.com wrote: Hi, I am using Mapserver 5.0.2 with Openlayers. I've a line layer (from

Re: [mapserver-users] Showing pop up for a line

2009-01-06 Thread Dan Little
You may also want to use mapserver to render the lines as a raster layer instead of vector. - Original Message From: Steve Lime steve.l...@dnr.state.mn.us To: Subha Ramakrishnan su...@gslab.com Cc: mapserver-users@lists.osgeo.org Sent: Tuesday, January 6, 2009 9:31:18 AM Subject:

[mapserver-users] error with GRID

2009-01-06 Thread simone.frigerio
Hi! I have a problem with Esri GRID raster in my mapfile. If I have a DEM, for example, in the object layer what is the correct path that I have to use? GRID esri has a folder DEM and a folder INFO. The error is referred to the path of this layer, but I don't understand the real solution.

Re: [mapserver-users] Confirmation of status of UTF8 support, and where transcoding to Latin-1 may be happening.

2009-01-06 Thread Russell McOrmond
I hope people don't mind me posting as I learn things, hoping that it will spark some ideas from other people. On Sun, 4 Jan 2009, Russell McOrmond wrote: Howard Butler wrote on November 24, 2008 @ 05:17 PM: pictures looked right. The problem might be as simple as the function

Re: [mapserver-users] error with GRID

2009-01-06 Thread Jeff McKenna
simone.frigerio wrote: Hi! I have a problem with Esri GRID raster in my mapfile. If I have a DEM, for example, in the object layer what is the correct path that I have to use? GRID esri has a folder DEM and a folder INFO. The error is referred to the path of this layer, but I don't understand

[mapserver-users] queryByRect throws an error

2009-01-06 Thread Murty Maganti
mapObj.queryByRect(...) (using C# map script) is throwing following exception when there is an embedded scale bar on map. Exception message: msShapefileOpen(): Unable to access file. No (NULL) filename provided.;msBuildPath: Unable to access file Removing the scale bar from map file works

Re: [mapserver-users] FORMATOPTION PALETTE_FORCE=TRUE problem

2009-01-06 Thread paalkr
Hi Thomas, thanks for the quick answer! Applying ,255 at the end of every record in the palette.txt file worked, but when I made the WMS GetMap request I got an image in return where all the areas that should have been transparent where black (transparent=true). When using transparent=false I

Re: [mapserver-users] queryByRect throws an error

2009-01-06 Thread Tamas Szekeres
Hi, Could you provide a code/mapfile sample to reconstruct the issue? I've never experienced such a problem, I've used this function many times though. Best regards, Tamas 2009/1/6 Murty Maganti mmaga...@oriongis.com mapObj.queryByRect(…) (using C# map script) is throwing following

RE: [mapserver-users] queryByRect throws an error

2009-01-06 Thread Murty Maganti
Hi Tamas Thanks for reply. These are extracts from my code to replicate the issue //Create map object mapObj map = new mapObj(MyMap.map); //draw map map.draw() ; //Make sure some template name is defined. Otherwise, query will not be successful. for (int i = 0;

Re: [mapserver-users] Color palette for road-like layers

2009-01-06 Thread Adrian Popa
Thank you all for your help, I had the feeling this is how it's done, but I was hoping for a simpler approach. Anyway, now I must only find some decent colors for my layers :) Cheers, Adrian Paul Spencer wrote: Adrian, that is a fairly simple trick, you need to draw roads twice to do it.