Layer order

Ruiter E. de (Erik) E.Ruiter at ARCADIS.NL
Tue Jan 24 01:28:30 PST 2006


Thanks,

An END to many, stupid me....

The error is gone now but I still don't get 'verblijfsobjecten' layer on
top.

What determines which layer is on top. (Note that I use Oracle data and
shapes mixed!).

Greetings,

Erik.


-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
Behalf Of Eijnden, B. van den (Bart)
Sent: dinsdag 24 januari 2006 10:13
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: Re: [UMN_MAPSERVER-USERS] Layer order

Hi Erik,

in the section I pasted below you have an END too much (this LAYER
should end with two ENDs and not with 3, in other layers you use the
STYLE object but in this one you did not so you need 1 END less):

LAYER 
	NAME		Panden
	TYPE		POLYGON
	STATUS		OFF
	CONNECTIONTYPE	oraclespatial
	CONNECTION	"bag/bag at maatwerk"
	DATA		"A5520 FROM PAND USING SRID 90112"
	PROCESSING 	"CLOSE_CONNECTION=DEFER"
	CLASS
		NAME 	"pand"
		SIZE		1

			COLOR 		255 100 100
			OUTLINECOLOR 	32 32 32
		END
	END
END 

Bart

-----Oorspronkelijk bericht-----
Van: UMN MapServer Users List
[mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Ruiter E. de (Erik)
Verzonden: dinsdag 24 januari 2006 10:13
Aan: MAPSERVER-USERS at LISTS.UMN.EDU
Onderwerp: Re: [UMN_MAPSERVER-USERS] Layer order


Hi Bart,

Thanks for your reply but this is not the problem, see current mapfile
below...

I suspect it has something to do with the STATUS parameter (ON, OFF or
DEFAULT)..

Greets,
Erik.

#-----------------------------------------------------------------------
----------
# MAPFILE Spinoffice
#-----------------------------------------------------------------------
----------

#============ MAIN MAP
===========================================================

MAP 
	NAME		"Spinoffice"
	SIZE		400 200
	EXTENT	123161.184000 425974.862000 130445.273000 430555.785000
	IMAGECOLOR	255 255 255
	IMAGETYPE	png
	SHAPEPATH	"shapes"
	SYMBOLSET   "symbols35.sym"
	DEBUG 		ON
WEB 
	TEMPLATE	"../html/mapserver.html"
	IMAGEPATH 	'/ms4w/tmp/ms_tmp/'
	IMAGEURL  	'/ms_tmp/'
END

PROJECTION
	"init=epsg:28992"
END


#============ LAYERS
=======================================================

LAYER 
	NAME		Gebouwen
	TYPE		POLYGON
	STATUS		ON
	CONNECTIONTYPE	oraclespatial
	CONNECTION	"bag/bag at maatwerk"
	DATA		"N0320 FROM GEBOUW USING SRID 90112"
	PROCESSING 	"CLOSE_CONNECTION=DEFER"
	PROJECTION
		"init=epsg:28992"
	END
	CLASS
		NAME 	"gebouw"
		SIZE		1
		STYLE
			COLOR 		255 0 0
			OUTLINECOLOR 	32 32 32
		END
	END
END
LAYER
	NAME	GBKG
	TYPE	LINE
	STATUS	OFF
	DATA	gbkg_l
	PROJECTION
		"init=epsg:28992"
	END
	CLASS
		NAME	"gbkg"
		STYLE
			COLOR 		190 190 190
			OUTLINECOLOR 	190 190 190
		END
 	END
END

LAYER
	NAME	Buurten
	TYPE	LINE
	STATUS	OFF
	DATA	buurten
	PROJECTION
		"init=epsg:28992"
	END
	CLASS
		NAME	"buurten"
		STYLE
			COLOR 		0 0 0
			OUTLINECOLOR 	100 100 100
		END
 	END
END

LAYER
	NAME	Wegvakken
	TYPE	LINE
	STATUS	OFF
	DATA	wegvakken
	PROJECTION
		"init=epsg:28992"
	END
	CLASS
		NAME	"wegvakken"
		STYLE
			COLOR 		190 190 190
			OUTLINECOLOR 	100 100 100
		END
 	END
END


LAYER 
	NAME		Ligplaatsen
	TYPE		POINT
	STATUS		OFF
	CONNECTIONTYPE	oraclespatial
	CONNECTION	"bag/bag at maatwerk"
	DATA		"A5820 FROM LIGPLAATS"
PROJECTION
		"init=epsg:28992"
	END		
CLASS
		NAME 	"ligplaats"
		SIZE		1
		STYLE
			COLOR 		0 0 255
			OUTLINECOLOR 	32 32 32
		END
	END
END 

LAYER 
	NAME		Panden
	TYPE		POLYGON
	STATUS		OFF
	CONNECTIONTYPE	oraclespatial
	CONNECTION	"bag/bag at maatwerk"
	DATA		"A5520 FROM PAND USING SRID 90112"
	PROCESSING 	"CLOSE_CONNECTION=DEFER"
	CLASS
		NAME 	"pand"
		SIZE		1

			COLOR 		255 100 100
			OUTLINECOLOR 	32 32 32
		END
	END
END 

LAYER 
	NAME		Verblijfsobjecten
	TYPE		POINT
	STATUS		ON
	DEBUG 		ON
	CONNECTIONTYPE	oraclespatial
	CONNECTION	"bag/bag at maatwerk"
	DATA		"A5620 FROM VERBLIJFSOBJECT USING SRID 90112"
	PROCESSING 	"CLOSE_CONNECTION=DEFER"
	PROJECTION
		"init=epsg:28992"
	END
	SYMBOLSCALE 10000	
CLASS
		NAME 	"verblijfsobject"
		STYLE
			SYMBOL	"circle"
			COLOR 		0 0 0
			OUTLINECOLOR 	32 32 32
			# SIZE 	7
			MAXSIZE		20
			MINSIZE		1
		END
	END
END 

END  

-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
Behalf Of Eijnden, B. van den (Bart)
Sent: dinsdag 24 januari 2006 10:00
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: Re: [UMN_MAPSERVER-USERS] Layer order

When you put it at the end, make sure you put it before the last END
(which marks the END of the root MAP object). I am guessing you placed
it too deep (after the last END), so then the LAYER is not interpreted
anymore by Mapserver since the MAP file has ended already.

Bart

-----Oorspronkelijk bericht-----
Van: UMN MapServer Users List
[mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Ruiter E. de (Erik)
Verzonden: dinsdag 24 januari 2006 10:00
Aan: MAPSERVER-USERS at LISTS.UMN.EDU
Onderwerp: [UMN_MAPSERVER-USERS] Layer order


Hi list,

I've a small problem with my mapfile..

I want to have the layer 'verblijfsobjecten' always on top. When I place
the layer at the end of my mapfile I get this error:
msWMSLoadGetMapParams(): Invalid layer(s) given in the LAYERS parameter.

When I have the layer like in my mapfile below it does work but the
layer is not on top....

Anyone can help me with this?

Greets,

Erik.


#-----------------------------------------------------------------------
----------
# MAPFILE Spinoffice
#-----------------------------------------------------------------------
----------

#============ MAIN MAP
===========================================================

MAP 
	NAME		"Spinoffice"
	SIZE		400 200
	EXTENT	123161.184000 425974.862000 130445.273000 430555.785000
	IMAGECOLOR	255 255 255
	IMAGETYPE	png
	SHAPEPATH	"shapes"
	SYMBOLSET   "symbols35.sym"
WEB 
	TEMPLATE	"../html/mapserver.html"
	IMAGEPATH 	'/ms4w/tmp/ms_tmp/'
	IMAGEURL  	'/ms_tmp/'
END

PROJECTION
	"init=epsg:28992"
END


#============ LAYERS
=======================================================

LAYER 
	NAME		Gebouwen
	TYPE		POLYGON
	STATUS		ON
	CONNECTIONTYPE	oraclespatial
	CONNECTION	"bag/bag at maatwerk"
	DATA		"N0320 FROM GEBOUW USING SRID 90112"
	PROCESSING 	"CLOSE_CONNECTION=DEFER"
	PROJECTION
		"init=epsg:28992"
	END
	CLASS
		NAME 	"gebouw"
		SIZE		1
		STYLE
			COLOR 		255 0 0
			OUTLINECOLOR 	32 32 32
		END
	END
END
LAYER
	NAME	GBKG
	TYPE	LINE
	STATUS	OFF
	DATA	gbkg_l
	PROJECTION
		"init=epsg:28992"
	END
	CLASS
		NAME	"gbkg"
		STYLE
			COLOR 		190 190 190
			OUTLINECOLOR 	190 190 190
		END
 	END
END

LAYER
	NAME	Buurten
	TYPE	LINE
	STATUS	OFF
	DATA	buurten
	PROJECTION
		"init=epsg:28992"
	END
	CLASS
		NAME	"buurten"
		STYLE
			COLOR 		0 0 0
			OUTLINECOLOR 	100 100 100
		END
 	END
END

LAYER
	NAME	Wegvakken
	TYPE	LINE
	STATUS	OFF
	DATA	wegvakken
	PROJECTION
		"init=epsg:28992"
	END
	CLASS
		NAME	"wegvakken"
		STYLE
			COLOR 		190 190 190
			OUTLINECOLOR 	100 100 100
		END
 	END
END

LAYER 
	NAME		Verblijfsobjecten
	TYPE		POINT
	STATUS		ON
	CONNECTIONTYPE	oraclespatial
	CONNECTION	"bag/bag at maatwerk"
	DATA		"A5620 FROM VERBLIJFSOBJECT USING SRID 90112"
	PROCESSING 	"CLOSE_CONNECTION=DEFER"
	PROJECTION
		"init=epsg:28992"
	END
	SYMBOLSCALE 10000	
CLASS
		NAME 	"verblijfsobject"
		STYLE
			SYMBOL	"circle"
			COLOR 		0 0 0
			OUTLINECOLOR 	32 32 32
			# SIZE 	7
			MAXSIZE		20
			MINSIZE		1
		END
	END
END 

LAYER 
	NAME		Ligplaatsen
	TYPE		POINT
	STATUS		OFF
	CONNECTIONTYPE	oraclespatial
	CONNECTION	"bag/bag at maatwerk"
	DATA		"A5820 FROM LIGPLAATS"
PROJECTION
		"init=epsg:28992"
	END		
CLASS
		NAME 	"ligplaats"
		SIZE		1
		STYLE
			COLOR 		0 0 255
			OUTLINECOLOR 	32 32 32
		END
	END
END 

LAYER 
	NAME		Panden
	TYPE		POLYGON
	STATUS		OFF
	CONNECTIONTYPE	oraclespatial
	CONNECTION	"bag/bag at maatwerk"
	DATA		"A5520 FROM PAND USING SRID 90112"
	PROCESSING 	"CLOSE_CONNECTION=DEFER"
	CLASS
		NAME 	"pand"
		SIZE		1

			COLOR 		255 100 100
			OUTLINECOLOR 	32 32 32
		END
	END
END 

END


[DISCLAIMER]

Dit e-mail bericht is vertrouwelijk. Het is uitsluitend bestemd voor de
geadresseerde. 
Indien u niet de geadresseerde bent, verzoeken we u dringend ons direct
te informeren en om dit bericht en eventuele bijlage(n) te verwijderen,
zonder het te kopieren, door te zenden of op enige andere wijze te
openbaren of te gebruiken. ARCADIS is niet aansprakelijk voor welke
schade dan ook als gevolg van communicatie per e-mail en verzending van
documenten en gegevens.

This e-mail is confidential and may also be privileged. It is intended
for use by the addressee only. 
If you are not the intended addressee, we request that you notify us
immediately and delete this e-mail, and any attachment(s), without
copying, forwarding, disclosing or using it in any other way. ARCADIS
will not be liable for damage relating to the communication by e-mail of
data or documents.


Disclaimer
************************************************************************
Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is
uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis
hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te
informeren. Wij adviseren u om bij twijfel over de juistheid of de
volledigheid van de mail contact met afzender op te nemen.

This message shall not constitute any rights or obligations.
This message is intended solely for the addressee.
If you have received this message in error, please delete it and notify
the sender immediately. When in doubt whether this message is correct or
complete, please contact the sender.
************************************************************************


Disclaimer
************************************************************************
Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is
uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis
hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te
informeren. Wij adviseren u om bij twijfel over de juistheid of de
volledigheid van de mail contact met afzender op te nemen.

This message shall not constitute any rights or obligations.
This message is intended solely for the addressee.
If you have received this message in error, please delete it and notify
the sender immediately. When in doubt whether this message is correct or
complete, please contact the sender.
************************************************************************



More information about the MapServer-users mailing list