RE: [mapserver-users] Image with different colors for different polygons

2008-09-29 Thread Venkat Rao Tammineni
Hi, Try this... # World Sub Regions Layer starts here LAYER NAME "Sub Regions" CONNECTIONTYPE POSTGIS CONNECTION "host=192.168.1.158 dbname=GIS password=administrator user=postgres port=5432" DATA "the_geom from rgp_gis_subregions" TYPE POLYGON STATUS ON LabelItem "ungs_csr" ClassItem "ungs_

[mapserver-users] rendering false color rater data in mapserver

2008-09-29 Thread zhao peisheng
I am doing as following. PROCESSING "SCALE=-1,599" PROCESSING "SCALE_BUCKETS=6" CLASS EXPRESSION ([pixel] <=-0.5) STYLE COLOR 0 0 0 END END CLASS EXPRESSION ([pixel] >-0.5 AND [pixel] <= 0.005) STYLE COLOR 255 255

[mapserver-users] How to get my Browser to open a Mapserver map with outputformat=pdf?

2008-09-29 Thread Robert Sanson
I have a Map file with and Outputformat = PDF defined: OUTPUTFORMAT NAME pdf MIMETYPE "application/x-pdf" IMAGEMODE RGBA DRIVER pdf EXTENSION "pdf" FORMATOPTION "TRANSPARENT=ON" TRANSPARENT ON #FORMATOPTION "OUTPUT_TYPE=RASTER" ##not mandatory END I call the map by sending a UR

Re: [mapserver-users] java mapscript + postgis = query use pixel map's limits (SOLVED)

2008-09-29 Thread Ludovico Bianchini
The error was the directive TRANSFORM false in LAYER "segnaletica". (http://mapserver.gis.umn.edu/docs/reference/mapscript/index_html#layerobj) I changed it with TRANSFORM true and now A-L-L work fine!! Ludovico Ludovico Bianchini ha scritto: This is the code LAYER NAME "segnalet

RE: [mapserver-users] Including a variable title on a map?

2008-09-29 Thread Robert Sanson
Including the entire FEATURE+POINTS+TEXT code as below works, thanks David and Thomas. I don't seem to be able to modify just the TEXT as David discovered. I am using MS4W 2.2.9 http://10.65.192.1/cgi-bin/gsstmpdf.exe?farmid=AS1&mode=map&layers=nz50ktm+linz_orthos+farm+crs_parcels+crs_road

Re: [mapserver-users] java mapscript + postgis = query use pixel map's limits

2008-09-29 Thread Ludovico Bianchini
This is the code LAYER NAME "segnaletica" STATUS on TYPE POINT TRANSFORM false POSTLABELCACHE true CONNECTION "user=user password=password dbname=dbname host=localhost port=5432" CONNECTIONTYPE postgis DATA "posizionegeoref from rilievi.im

Re: [mapserver-users] Variable substitution in FILTER request with a LIKE

2008-09-29 Thread Robert Sanson
Thanks Steve - Works perfectly! Robert >>> "Steve Lime" <[EMAIL PROTECTED]> 30/09/2008 6:02 a.m. >>> FILTER "WHERE NAME LIKE '%%road%%'" won't work? MapServer should just replace the inner %road% and leave the outer %'s alone. Steve >>> On 9/28/2008 at 10:03 PM, in message <[EMAIL PROTECTED]

RE: [mapserver-users] Including a variable title on a map?

2008-09-29 Thread Fawcett, David
That approach still gives me an error: http://localhost/cgi-bin/mapserv.exe?mode=map&map=\ms4w\apps\workshop08\ testPoint.map&map.layer[howdy].feature[0]=text%20Goodbye loadLayer(): Unknown identifier. Parsing error near (text):(line 1) This is with a recent ms4w distro. David. -Original

Re: [mapserver-users] Variable substitution in FILTER request with aLIKE

2008-09-29 Thread Steve Lime
FILTER "WHERE NAME LIKE '%%road%%'" won't work? MapServer should just replace the inner %road% and leave the outer %'s alone. Steve >>> On 9/28/2008 at 10:03 PM, in message <[EMAIL PROTECTED]>, "Robert Sanson" <[EMAIL PROTECTED]> wrote: > I would like to have a FILTER section in my layer defini

Re: [mapserver-users] Including a variable title on a map?

2008-09-29 Thread thomas bonfort
try with &map.layer[fid].feature[0]=TEXT+AS1 -- thomas On Sun, Sep 28, 2008 at 23:08, Robert Sanson <[EMAIL PROTECTED]> wrote: > OK - thanks for the hints. I can now get a static string on my map as > annotation, but I am still struggling to modify this via the URL. My map > file snippet is:

[mapserver-users] Image with different colors for different polygons

2008-09-29 Thread Subha Ramakrishnan
Hi, I want to know if it is possible to color a polygon with different colors? For eg. If i've states of a country, i want to show each state with a different color. Please let me know if it possible to do this. And if so what are the settings to be done for the same? Thanks & regards, Subha

RE: [mapserver-users] Including a variable title on a map?

2008-09-29 Thread Fawcett, David
Robert, I tried to play with an example to get the substitution to work by just setting the feature text or layer text, but I got parse errors. Those params may not be available for substitution. My quick solution would be to create both the feature and it's text on the fly. If you were s