[mapserver-users] SVG symbols in mapserver

2008-09-10 Thread Carlo Pelliconi

Hi all.
I'm trying SVG symbols within mapserver: is there any documentation?

Another question, this about the way in which mapserver creates the svg 
output:
is it possible to create the svg output with the same reference system 
used by vector input data?
I ask this because output svg, in pixel coordinates (as I've obtained 
it), is not directly linked to real geographic coordinates.

Thank you very much.

Regards, Carlo

--
ing. Carlo Pelliconi
[EMAIL PROTECTED]



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] generating sld from a mapfile

2008-09-10 Thread James Crone

Hi,

I`ve got a mapfile that I want to generate an SLD from. When I use 
python mapscript and generateSLD as so:


import mapscript

myLayerNames = ["Land_Area",
"Foreshore",
"Glaciers"]

myMapFile = mapscript.mapObj('D:/Globalmap.map')

for myLayerName in myLayerNames:
   myLayer = myMapFile.getLayerByName(myLayerName)   
 
   mySLD = myLayer.generateSLD()


   print mySLD

the generateSLD call just seems to return empty xml fragments in the 
form of:


xmlns="http://www.opengis.net/sld"; 
xmlns:gml="http://www.opengis.net/gml"; 
xmlns:ogc="http://www.opengis.net/ogc"; 
xmlns:xlink="http://www.w3.org/1999/xlink"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://www.opengis.net/sld 
http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd";>


how (assuming it is possible) do I get the style properties from the 
mapfile to be written to the sld?


James

--
James Crone

Geo Data and Research Services
EDINA
Causewayside House,
160 Causewayside,
Edinburgh,
Scotland,
United Kingdom
EH9 1PR

tel: +44 (0)131 651 1859
http://edina.ac.uk

~~
Are you looking for help or information about "geo" related resources?
Try Go-Geo! http://www.gogeo.ac.uk
~~


The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[MAPSERVER-USERS] FastCGI and trouble writing to the MS_ERRORFILE

2008-09-10 Thread Pål Kristensen

Hi!

I have done some MapServer (5.2) performance tests with and without FastCGI.
When requesting av map with the fcgi-bin url the mapserv.exe process is not
closed (and this is correct). In this case MapServer does not write anything
to the logfile, but when a map is requested with the regular cgi-bin url the
logfile is written correctly when the process is terminated. I have tried to
set the MS_ERRORFILE both in the map file and in the appache config file,
but neither do any difference.

The strange thing is that if I stop the apache service, then suddenly the
fastCGI mapserv.exe writes a lot to the logfile before it close down.

Is there a way to get mapserv.exe to write to the log file when initiated in
fastCGI mode?

Regards,
Pål Kristensen
-- 
View this message in context: 
http://www.nabble.com/FastCGI-and-trouble-writing-to-the-MS_ERRORFILE-tp19413175p19413175.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] Oracle Spatial + MS 5.2.0: No drawing of certain objects

2008-09-10 Thread Schönhammer , Herbert
Hi list,

( I had a similar discussion using Mapserver 4.10.x and Oracle Spatial 9i in 
May 2007. But the problems changed using Mapserver 5.2.0 .).


The new environmet:
===
Server SLES10
Mapserver 5.2.0
Oracle OCI - Interface used with Oracle 11-Client-Software

DB-Server Windows 2xxx
Oracle Spatial 10g


The new problem :
==
Line strings made up of a connected sequence of circular arcs ARE NOT DRAWN. No 
error message is generated by mapserver, but the objects are not shown in the 
map.

Example:
INSERT INTO AX_BES_GEBLINIE (FID,GEOM) VALUES 
(14196363,mdsys.sdo_geometry(2002,82032,null,mdsys.sdo_elem_info_array(1,2,2),mdsys.sdo_ordinate_array(4512474.1948,5426555.0979,4512473.3318,5426554.2349,4512474.1948,5426553.3719,4512475.0578,5426554.2349,4512474.1948,5426555.0979)));

(Background:
In my mailing from May 2007 I reported that these Objects are drawn correctly 
by mapserver. This statement is indeed reproducable correct using mapserver 
4.10.x. This is independent from the used oracle version ( 9i or 10g ).
Now, using mapserver 5.2.0 these objects are not drawn anymore. No error 
message is produced. This is also independent from the used oracle version ( 9i 
or 10g ). )

The old problem:

Polygons  made up of a connected sequence of circular arcs ARE NOT DRAWN. No 
error message is generated by mapserver, but the objects are not shown in the 
map.

(This problem was already reported in May 2007. The behaviour did not change 
from mapserver 4.10.x to 5.2.0)

Example:
INSERT INTO AX_GEBAEUDE (FID,GEOM) VALUES 
(14079065,mdsys.sdo_geometry(2003,82032,null,mdsys.sdo_elem_info_array(1,1003,2),mdsys.sdo_ordinate_array(4505553.2585,5430757.2937,4505551.1659,5430755.2011,4505553.2585,5430753.1085,450.3511,5430755.2011,4505553.2585,5430757.2937)));


Oracle Documentation:
=
Reading the Oracle Docs, I think all the objects are correct defined. The 
geometries are validating by oracle 9i and oracle 10g (Using the st_valid - 
method, e.g. SELECT a.GEOM.ST_IsValid()
FROM ax_bes_geblinie a WHERE a.fid = 14196363;).



Does anybody know a solution how to draw these objects with mapserver ?

greetings
Herbert

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [MAPSERVER-USERS] FastCGI and trouble writing to the MS_ERRORFILE

2008-09-10 Thread Daniel Morissette

Pål Kristensen wrote:


The strange thing is that if I stop the apache service, then suddenly the
fastCGI mapserv.exe writes a lot to the logfile before it close down.

Is there a way to get mapserv.exe to write to the log file when initiated in
fastCGI mode?




Maybe a fflush() on the msDebug() output at the end of each FastCGI 
request would help? For a test, please try adding one in the msDebug() 
function in mapdebug.c and see if that helps:


--- mapdebug.c  (revision 7902)
+++ mapdebug.c  (working copy)
@@ -361,6 +361,7 @@
 va_start(args, pszFormat);
 msIO_vfprintf(debuginfo->fp, pszFormat, args);
 va_end(args);
+fflush(debuginfo->fp);
 }
 #ifdef _WIN32
 else if (debuginfo->debug_mode == MS_DEBUGMODE_WINDOWSDEBUG)


If that helps then please file a ticket and assign to me (Trac id 
dmorissette). The final solution will NOT be to call fflush() all the 
time as in the above gtest, but to create a new msDebugFlush() function 
that is called once at the end of each FastCGI request


Daniel
--
Daniel Morissette
http://www.mapgears.com/
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [MAPSERVER-USERS] FastCGI and trouble writing to the MS_ERRORFILE

2008-09-10 Thread Frank Warmerdam

Daniel Morissette wrote:

Pål Kristensen wrote:


The strange thing is that if I stop the apache service, then suddenly the
fastCGI mapserv.exe writes a lot to the logfile before it close down.

Is there a way to get mapserv.exe to write to the log file when 
initiated in

fastCGI mode?




Maybe a fflush() on the msDebug() output at the end of each FastCGI 
request would help? For a test, please try adding one in the msDebug() 
function in mapdebug.c and see if that helps:


--- mapdebug.c  (revision 7902)
+++ mapdebug.c  (working copy)
@@ -361,6 +361,7 @@
 va_start(args, pszFormat);
 msIO_vfprintf(debuginfo->fp, pszFormat, args);
 va_end(args);
+fflush(debuginfo->fp);
 }
 #ifdef _WIN32
 else if (debuginfo->debug_mode == MS_DEBUGMODE_WINDOWSDEBUG)


If that helps then please file a ticket and assign to me (Trac id 
dmorissette). The final solution will NOT be to call fflush() all the 
time as in the above gtest, but to create a new msDebugFlush() function 
that is called once at the end of each FastCGI request


Daniel / Pål,

It might also be necessary to modify the debug output code to always
try and seek to the end of file before writing.  If several long running
fastcgi processes have the same log file open and are writing to it, we
could have an issues of overwriting each others output.

Best regards,
--
---+--
I set the clouds in motion - turn up   | Frank Warmerdam, [EMAIL PROTECTED]
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush| Geospatial Programmer for Rent

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Re: FastCGI and trouble writing to the MS_ERRORFILE

2008-09-10 Thread Daniel Morissette

Frank Warmerdam wrote:


It might also be necessary to modify the debug output code to always
try and seek to the end of file before writing.  If several long running
fastcgi processes have the same log file open and are writing to it, we
could have an issues of overwriting each others output.



At first I thought this was a serious issue, but then after a bit of 
research I found out that the most common platforms we work with seem to 
handle that for us already.


The Linux man page for fopen says:
--
Opening a file in append mode (a as the first character of mode) causes
all subsequent write operations to this stream to occur at end-of-file,
as if preceded by an
fseek(stream,0,SEEK_END);
call.


The following is from the man page of fopen ( on Solaris 9 )
(found here: http://bytes.com/forum/thread215699.html)
--
Opening a file with append mode (a as the first character in
the mode argument) causes all subsequent writes to the file
to be forced to the then current end-of-file, regardless of
intervening calls to fseek(3C). If two separate processes
open the same file for append, each process may write freely
to the file without fear of destroying output being written
by the other. The output from the two processes will be
intermixed in the file in the order in which it is written.

And here I found a ref to what looks like a Digital Unix man page giving 
a similar guarantee:

http://www.uwm.edu/cgi-bin/IMT/wwwman?topic=fopen(3)&msection=
--
[DIGITAL]  If two separate processes open the same file for append, each
process can write freely to the file without destroying the output being
written by the other. The output from the two processes is intermixed in
the order in which it is written to the file. Note that if the data is
buffered, it is not actually written until it is flushed.


Unfortunately I could not find anything about Windows, but there were 
never reports of such issues in the past on Windows that may not be a 
problem there either. In conclusion, while there might still be systems 
where the issue is present, I think we can safely ignore the issue and 
cross the bridge if/when someone encounters it.


Daniel
--
Daniel Morissette
http://www.mapgears.com/
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Trouble creating WMS

2008-09-10 Thread Bistrais, Bob
I am trying to create a WMS service with MapServer.  I believe I
successfully created the service, because I am able to connect to it and
view it in ArcGIS.  But I tried to create a Map file to view it in
Ka-Map, and also in CGI mode.  Ka-Map appears to be reading the file,
which takes a while, but in the end the Ka-Map screen has no map.
However, the Map Info window does show an accurate extent.  I've gone
through the MapServer documentation, but can't figure out what's wrong.
Below are map map files:

Map file to create the WMS service:

MAP

CONFIG "MS_ERRORFILE" "/ms4w/tmp/wmserror.txt"

DEBUG 3

  EXTENT 336615.770850 4759552.833350 662100.770850 5256295.833350
  IMAGECOLOR 200 200 200
  IMAGETYPE PNG24
  SIZE 800 600
  NAME "WMS Base Map"
  SHAPEPATH "C:\BaseMapData"
  FONTSET "C:\Program Files\Microsoft
Office\Office10CD\FILES\WINDOWS\FONTS\ARIALUNI.TTF"
  UNITS meters
  WEB

MINSCALEDENOM 100
MAXSCALEDENOM 500
IMAGEPATH "C:/ms4w/apache/htdocs"
IMAGEURL "http://localhost/";
METADATA
  "wms_server_version" "1.1.1"
  "wms_title" "WMS Base Data"
  "wms_onlineresource"
"http://localhost/cgi-bin/mapserv.exe?map=../../apps/ka-map-1.0/htdocs/B
aseMap-MapServer/BaseWMS.map&"
  "wms_srs""EPSG:2960"
  "wms_abstract""GIS data WMS test"
END
  END
  PROJECTION
"init=epsg:2960"
  END 

QUERYMAP
STATUS ON
STYLE HILITE
END

  INCLUDE "northeast.map"
  INCLUDE "towns250.map"

END
#END OF MAP FILE


Map file for WMS client:

MAP

  EXTENT 336615.770850 4759552.833350 662100.770850 5256295.833350
  IMAGECOLOR 200 200 200
  IMAGETYPE PNG
  SIZE 800 600
  NAME "WMS Test Map"
  SHAPEPATH "C:\BaseMapData"
  FONTSET "C:\Program Files\Microsoft
Office\Office10CD\FILES\WINDOWS\FONTS\ARIALUNI.TTF"
  UNITS meters
  WEB
#MINSCALEDENOM 100
#MAXSCALEDENOM 500
IMAGEPATH "C:/ms4w/apache/htdocs"
IMAGEURL "http://localhost/";
  END

  PROJECTION
"init=epsg:2960"
  END 

LAYER
  TYPE raster
  DEBUG ON
  NAME "WMSTest"
  STATUS ON
  CONNECTIONTYPE WMS
  CONNECTION "http://localhost/cgi-bin/mapserv.exe?"; 
  METADATA
"wms_server_version" "1.1.1"
"wms_format" "image/png"
  "wms_title" "WMSBaseData"
  "wms_onlineresource"   "MapServWMSTest"
  "wms_srs" "EPSG:2960"
  "wms_abstract""GIS data test"
  "wms_name" "towns250,Northeast"
  END
   
END

END
#END OF MAP FILE
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Precaching and opacity

2008-09-10 Thread ritesh ambastha
Let us know the imagetype and outputformat defined in your map file.
Have you set transparency and antialias correctly?

Regards,
Ambastha

On Wed, Sep 10, 2008 at 2:04 AM, Bistrais, Bob <[EMAIL PROTECTED]> wrote:
> Please excuse my ignorance, I'm only starting to figure out the finer points
> of precaching...
>
> I built a map document for MS4W.  Each layer file has an Opacity setting.
> Without precaching, the map displays well in Ka-Map and in CGI view.  But
> after running the Precache.php, my opacity settings appear to be ignored.
> Each layer (including line and point data) completely obscures the previous
> layer.
>
> Is there some setting in Precache, or elsewhere, that I missed?  Any other
> suggestions?
>
> ___
> 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] Can a CLASS be transparent?

2008-09-10 Thread Roger André
Hi Everyone,

I'm new to the list and am not sure if this has been properly answered
already.  The old posts that I have found all seem slightly different
regarding this topic, so I thought it would be safest to ask again.

Is it possible to set a CLASS to be transparent?  The use-case being that I
would like to put a raster layer underneath a layer of US states, and
selectively expose the rasters by making specific states transparent.  I
suppose that I could write a CLASS expression for each state, and simply
omit an entry for each state that I want exposed, but I wonder if there is a
better way?

Thanks in advance for any suggestions you can give.

Roger
--
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] Trouble creating WMS

2008-09-10 Thread Bistrais, Bob
I think I have the problem solved now.  My connection string on the
client Map file was not complete.  I think I have fixed it now.




From: Bistrais, Bob 
Sent: Wednesday, September 10, 2008 3:34 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Trouble creating WMS



I am trying to create a WMS service with MapServer.  I believe I
successfully created the service, because I am able to connect to it and
view it in ArcGIS.  But I tried to create a Map file to view it in
Ka-Map, and also in CGI mode.  Ka-Map appears to be reading the file,
which takes a while, but in the end the Ka-Map screen has no map.
However, the Map Info window does show an accurate extent.  I've gone
through the MapServer documentation, but can't figure out what's wrong.
Below are map map files:

Map file to create the WMS service: 

MAP 

CONFIG "MS_ERRORFILE" "/ms4w/tmp/wmserror.txt" 

DEBUG 3 

  EXTENT 336615.770850 4759552.833350 662100.770850 5256295.833350 
  IMAGECOLOR 200 200 200 
  IMAGETYPE PNG24 
  SIZE 800 600 
  NAME "WMS Base Map" 
  SHAPEPATH "C:\BaseMapData" 
  FONTSET "C:\Program Files\Microsoft
Office\Office10CD\FILES\WINDOWS\FONTS\ARIALUNI.TTF" 
  UNITS meters 
  WEB 

MINSCALEDENOM 100 
MAXSCALEDENOM 500 
IMAGEPATH "C:/ms4w/apache/htdocs" 
IMAGEURL "http://localhost/  " 
METADATA 
  "wms_server_version" "1.1.1" 
  "wms_title" "WMS Base Data" 
  "wms_onlineresource"
"http://localhost/cgi-bin/mapserv.exe?map=../../apps/ka-map-1.0/htdocs/B
aseMap-MapServer/BaseWMS.map&
 "

  "wms_srs""EPSG:2960" 
  "wms_abstract""GIS data WMS test" 
END 
  END 
  PROJECTION 
"init=epsg:2960" 
  END 

QUERYMAP 
STATUS ON 
STYLE HILITE 
END 

  INCLUDE "northeast.map" 
  INCLUDE "towns250.map" 

END 
#END OF MAP FILE 


Map file for WMS client: 

MAP 

  EXTENT 336615.770850 4759552.833350 662100.770850 5256295.833350 
  IMAGECOLOR 200 200 200 
  IMAGETYPE PNG 
  SIZE 800 600 
  NAME "WMS Test Map" 
  SHAPEPATH "C:\BaseMapData" 
  FONTSET "C:\Program Files\Microsoft
Office\Office10CD\FILES\WINDOWS\FONTS\ARIALUNI.TTF" 
  UNITS meters 
  WEB 
#MINSCALEDENOM 100 
#MAXSCALEDENOM 500 
IMAGEPATH "C:/ms4w/apache/htdocs" 
IMAGEURL "http://localhost/  " 
  END 

  PROJECTION 
"init=epsg:2960" 
  END 

LAYER 
  TYPE raster 
  DEBUG ON 
  NAME "WMSTest" 
  STATUS ON 
  CONNECTIONTYPE WMS 
  CONNECTION "http://localhost/cgi-bin/mapserv.exe?
 " 
  METADATA 
"wms_server_version" "1.1.1" 
"wms_format" "image/png" 
  "wms_title" "WMSBaseData" 
  "wms_onlineresource"   "MapServWMSTest" 
  "wms_srs" "EPSG:2960" 
  "wms_abstract""GIS data test" 
  "wms_name" "towns250,Northeast" 
  END 
   
END 

END 
#END OF MAP FILE 

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] Precaching and opacity

2008-09-10 Thread Bistrais, Bob
Image type is PNG24.  I've experimented with the Transparency and
Opacity settings.  If drawn without a precache, the map looks good.
Precache seems to ignore the opacity.  I haven't done anything with the
antialiasing.

 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of ritesh ambastha
Sent: Wednesday, September 10, 2008 3:40 PM
To: Bistrais, Bob
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Precaching and opacity

Let us know the imagetype and outputformat defined in your map file.
Have you set transparency and antialias correctly?

Regards,
Ambastha

On Wed, Sep 10, 2008 at 2:04 AM, Bistrais, Bob <[EMAIL PROTECTED]>
wrote:
> Please excuse my ignorance, I'm only starting to figure out the finer 
> points of precaching...
>
> I built a map document for MS4W.  Each layer file has an Opacity
setting.
> Without precaching, the map displays well in Ka-Map and in CGI view.  
> But after running the Precache.php, my opacity settings appear to be
ignored.
> Each layer (including line and point data) completely obscures the 
> previous layer.
>
> Is there some setting in Precache, or elsewhere, that I missed?  Any 
> other suggestions?
>
> ___
> 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


Re: [mapserver-users] Precaching and opacity

2008-09-10 Thread ritesh ambastha
If you are using PNG24, then do keep Transparency as Alpha and
Antialiasing as True.

I hope you are using the current version of mapserver and ka-map.

Any reasons for not using AGG ?

Regards,
Ambastha

On Thu, Sep 11, 2008 at 1:37 AM, Bistrais, Bob <[EMAIL PROTECTED]> wrote:
> Image type is PNG24.  I've experimented with the Transparency and
> Opacity settings.  If drawn without a precache, the map looks good.
> Precache seems to ignore the opacity.  I haven't done anything with the
> antialiasing.
>
>
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of ritesh ambastha
> Sent: Wednesday, September 10, 2008 3:40 PM
> To: Bistrais, Bob
> Cc: mapserver-users@lists.osgeo.org
> Subject: Re: [mapserver-users] Precaching and opacity
>
> Let us know the imagetype and outputformat defined in your map file.
> Have you set transparency and antialias correctly?
>
> Regards,
> Ambastha
>
> On Wed, Sep 10, 2008 at 2:04 AM, Bistrais, Bob <[EMAIL PROTECTED]>
> wrote:
>> Please excuse my ignorance, I'm only starting to figure out the finer
>> points of precaching...
>>
>> I built a map document for MS4W.  Each layer file has an Opacity
> setting.
>> Without precaching, the map displays well in Ka-Map and in CGI view.
>> But after running the Precache.php, my opacity settings appear to be
> ignored.
>> Each layer (including line and point data) completely obscures the
>> previous layer.
>>
>> Is there some setting in Precache, or elsewhere, that I missed?  Any
>> other suggestions?
>>
>> ___
>> 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 mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] Can a CLASS be transparent?

2008-09-10 Thread Fawcett, David
Roger, 
 
At least at version 5.2, there is CLASS level OPACITY when you use the AGG 
image format.  For example, if I want to turn some of my polygons 50% opaque 
(transparent), I can set an expression in one of the classes and set an OPACITY 
for that class.  I have pasted an example with Minnesota counties at the end of 
this message.
 
I am not sure if this is what you really want.  I am guessing that you just 
want to have an expression in one or more classes that tells MapServer which 
states you want to not be colored.  For that class, set an OUTLINECOLOR and not 
a COLOR.  For the other classes, set both an OUTLINECOLR and COLOR.  
 
David.
 
 
LAYER
  NAME "counties"
  STATUS DEFAULT
  DATA "bdry_counpy2"
  TYPE POLYGON
  CLASSITEM "CTY_NAME"
  CLASS
NAME 'County Boundary'
EXPRESSION /^A/
#EXPRESSION "Aitkin"
STYLE
  COLOR 255 0 0
  OUTLINECOLOR 0 0 0
  OPACITY 50
END
  END
  CLASS
NAME 'County Boundary'
STYLE
  COLOR 255 0 0
  OUTLINECOLOR 0 0 0
END
  END
END

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Roger 
André
Sent: Wednesday, September 10, 2008 2:57 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Can a CLASS be transparent?


Hi Everyone,

I'm new to the list and am not sure if this has been properly answered 
already.  The old posts that I have found all seem slightly different regarding 
this topic, so I thought it would be safest to ask again.

Is it possible to set a CLASS to be transparent?  The use-case being 
that I would like to put a raster layer underneath a layer of US states, and 
selectively expose the rasters by making specific states transparent.  I 
suppose that I could write a CLASS expression for each state, and simply omit 
an entry for each state that I want exposed, but I wonder if there is a better 
way?

Thanks in advance for any suggestions you can give.

Roger
--


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] WCS 1.1.0 support in MapServer 5.2?

2008-09-10 Thread Glenn Waldron
Hi,

I've built MS 5.2.0 on Ubuntu with the --with-wcs option, but I cannot get
WCS 1.1.0 support to work. In response to a query like:

http://localhost/cgi-bin/mapserv?map=/maps/srtm.map&SERVICE=WCS&VERSION=1.1.0&REQUEST=GetCapabilities

I get the response:

msWCSDispatch(): WCS server error. WCS Server does not support VERSION
1.1.0.

What is the proper way to enable WCS 1.1.0 support in MS 5.2.0?

Thanks,
Glenn
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] WCS 1.1.0 support in MapServer 5.2?

2008-09-10 Thread Frank Warmerdam

Glenn Waldron wrote:

Hi,

I've built MS 5.2.0 on Ubuntu with the --with-wcs option, but I cannot 
get WCS 1.1.0 support to work. In response to a query like:


http://localhost/cgi-bin/mapserv?map=/maps/srtm.map&SERVICE=WCS&VERSION=1.1.0&REQUEST=GetCapabilities 



I get the response:

msWCSDispatch(): WCS server error. WCS Server does not support VERSION 
1.1.0. 


What is the proper way to enable WCS 1.1.0 support in MS 5.2.0?


Glenn,

WCS 1.1.0 (and SOS) support also requires libxml.  You will need to add
something like this to your configure (assuming you have libxml2 available.

--with-xml2-config=/usr/bin/xml2-config

Best regards,
--
---+--
I set the clouds in motion - turn up   | Frank Warmerdam, [EMAIL PROTECTED]
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush| Geospatial Programmer for Rent

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [MAPSERVER-USERS] FastCGI and trouble writing to the MS_ERRORFILE

2008-09-10 Thread Pål Kristensen

Hi!

Thanks for helping out. Your suggested solution looks reasonable, but I uses
the ms4w binary distribution to perform the tests and I haven't set up any
compiling environment at the moment. A colleague of mine is doing the
compiling on our Linux systems, but he is on vacation for another week. I'll
have to wait for him to return to work before doing any compiling.

Regards,
Pål Kristensen


Daniel Morissette-2 wrote:
> 
> Maybe a fflush() on the msDebug() output at the end of each FastCGI 
> request would help? For a test, please try adding one in the msDebug() 
> function in mapdebug.c and see if that helps:
> 
> --- mapdebug.c  (revision 7902)
> +++ mapdebug.c  (working copy)
> @@ -361,6 +361,7 @@
>   va_start(args, pszFormat);
>   msIO_vfprintf(debuginfo->fp, pszFormat, args);
>   va_end(args);
> +fflush(debuginfo->fp);
>   }
>   #ifdef _WIN32
>   else if (debuginfo->debug_mode == MS_DEBUGMODE_WINDOWSDEBUG)
> 
> 
> If that helps then please file a ticket and assign to me (Trac id 
> dmorissette). The final solution will NOT be to call fflush() all the 
> time as in the above gtest, but to create a new msDebugFlush() function 
> that is called once at the end of each FastCGI request
> 
> Daniel
> -- 
> Daniel Morissette
> http://www.mapgears.com/
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 
> 

-- 
View this message in context: 
http://www.nabble.com/FastCGI-and-trouble-writing-to-the-MS_ERRORFILE-tp19413175p19428577.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