FW: [mapserver-users] Symbology

2010-09-21 Thread Fawcett, David (MPCA)
Apologies for the dup, my original response got embargoed due to the large 
image included…

From: Fawcett, David (MPCA)
Sent: Tuesday, September 21, 2010 9:13 AM
To: 'Jay Kapalczynski'; 'Bob Basques'; mapserver-users@lists.osgeo.org; 'adams'
Subject: RE: [mapserver-users] Symbology

I think that someone else pointed out that the path to your symbol image is 
relative to the location of your map file.

A quick test would be to drop bike.png in the same folder as your map file.

Looking at your dir tree, I would move your symbol stuff out of the htdocs 
branch and into the area where your map files are.

David.

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jay Kapalczynski
Sent: Tuesday, September 21, 2010 8:53 AM
To: 'Bob Basques'; mapserver-users@lists.osgeo.org; 'adams'
Subject: RE: [mapserver-users] Symbology

I added a few things to my sym file and got a few  to work

I can now call circle and get a circle….BUT for some reason the image will not 
work, maybe an issue with the image?  You have any test images that are known 
to work?
I have the image like this IMAGE 'bike.png' because the images are in the same 
folder as the .sym file

Any other thoughts….greatly appreciated….thanks

THIS WORKS
 CLASS
   NAME 'Last Week'
   STYLE
  SYMBOL circle
  COLOR 0 0 0
  OUTLINECOLOR 0 0 0
  #SIZE 12
 END  # STYLE
 END # CLASS
THIS DOES NOT WORK
 CLASS
   NAME 'Last Week'
   STYLE
  SYMBOL bike
  COLOR 0 0 0
  OUTLINECOLOR 0 0 0
  #SIZE 12
 END  # STYLE
 END # CLASS
.SYM FILE

Symbol
Name 'circle'
Type ELLIPSE
FILLED TRUE
Points
1 1
END
END

SYMBOL
NAME 'circle-dashed'
TYPE ELLIPSE
FILLED TRUE
POINTS 1 1 END
STYLE 5 5 END
  END

SYMBOL
   NAME 'bike'
   TYPE pixmap
   IMAGE 'bike.png'
END



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


RE: [mapserver-users] Symbology

2010-09-21 Thread Jay Kapalczynski
Thank you all for your help here….and I am quite embarrassed as to my 
solution…and more importantly sorry to take up your time, although I did learn 
a few things.
I moved everything into the map section and created a Symbol folder to hold the 
images and .sym files.
I placed the png in the map folder (as requested by David)
And it still didn’t work…looking closer I realized that the symbol name was 
“bike” although the image name was “bikes” one stupid ‘s’ and this results.

Although your help allowed me to move the files into the correct location, 
understand the connection between map file and sym file and images etc.

I thank you for all your help..much appreciated

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Fawcett, David 
(MPCA)
Sent: Tuesday, September 21, 2010 9:20 AM
To: mapserver-users@lists.osgeo.org
Subject: FW: [mapserver-users] Symbology

Apologies for the dup, my original response got embargoed due to the large 
image included…

From: Fawcett, David (MPCA)
Sent: Tuesday, September 21, 2010 9:13 AM
To: 'Jay Kapalczynski'; 'Bob Basques'; mapserver-users@lists.osgeo.org; 'adams'
Subject: RE: [mapserver-users] Symbology

I think that someone else pointed out that the path to your symbol image is 
relative to the location of your map file.

A quick test would be to drop bike.png in the same folder as your map file.

Looking at your dir tree, I would move your symbol stuff out of the htdocs 
branch and into the area where your map files are.

David.

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jay Kapalczynski
Sent: Tuesday, September 21, 2010 8:53 AM
To: 'Bob Basques'; mapserver-users@lists.osgeo.org; 'adams'
Subject: RE: [mapserver-users] Symbology

I added a few things to my sym file and got a few  to work

I can now call circle and get a circle….BUT for some reason the image will not 
work, maybe an issue with the image?  You have any test images that are known 
to work?
I have the image like this IMAGE 'bike.png' because the images are in the same 
folder as the .sym file

Any other thoughts….greatly appreciated….thanks

THIS WORKS
 CLASS
   NAME 'Last Week'
   STYLE
  SYMBOL circle
  COLOR 0 0 0
  OUTLINECOLOR 0 0 0
  #SIZE 12
 END  # STYLE
 END # CLASS
THIS DOES NOT WORK
 CLASS
   NAME 'Last Week'
   STYLE
  SYMBOL bike
  COLOR 0 0 0
  OUTLINECOLOR 0 0 0
  #SIZE 12
 END  # STYLE
 END # CLASS
.SYM FILE

Symbol
Name 'circle'
Type ELLIPSE
FILLED TRUE
Points
1 1
END
END

SYMBOL
NAME 'circle-dashed'
TYPE ELLIPSE
FILLED TRUE
POINTS 1 1 END
STYLE 5 5 END
  END

SYMBOL
   NAME 'bike'
   TYPE pixmap
   IMAGE 'bike.png'
END



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


RE: [mapserver-users] Symbology

2010-09-18 Thread Jay Kapalczynski
This is what I am trying...when I turn on the layer it all goes pink...so 
something is not correct
I have to move back 3 folders and go into the one housing the sym file
The images are in the sym file folder in their own file

[cid:image001.jpg@01CB558F.F564F670]

MAP FILE

   PROJECTION
  'init=epsg:26915'
   END

   LEGEND
 STATUS ON
 LABEL
  TYPE TRUETYPE
  FONT vera_sans
  SIZE 8
  COLOR 0 0 0
 END
   END

   SYMBOLSET ../../../htdocs/symbolsets/symbolset.sym

   LAYER
 NAME Burglaries
 DATA './Burglaries.shp'
 STATUS ON
 TYPE POINT

 CLASS
   NAME 'Last Weeks'
   STYLE
  SYMBOL bike
  COLOR 0 0 0
  OUTLINECOLOR 0 0 0
 END
 END


SYMBOL FILE

SYMBOLSET

SYMBOL
  NAME 'bike'
  TYPE pixmap
  IMAGE '/symbol_images/bike.png'
  TRANSPARENT 2
END

SYMBOL
  NAME 'church'
  TYPE pixmap
  IMAGE '/symbol_images/church.png'
  TRANSPARENT 5
END



Folder structure:
Ms4w
Apps
maplegrove
Htdocs
Symbolset folder
.sym file
maps
maple_grove
police
.map files
...
...
...

From: Smith, Michael D ERDC-CRREL-NH [mailto:michael.sm...@usace.army.mil]
Sent: Thursday, September 16, 2010 10:26 AM
To: Jay Kapalczynski; 'Fawcett, David (MPCA)'; 'Michael Schulz'
Cc: mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Symbology

Jay,

A couple of additional steps.

1). Add SYMBOLSET as the first line in your symbol file

2). In the mapfile, in the MAP section add a line

SYMBOLSET /path/to/symbolset_file

Mike


--
Michael Smith
Remote Sensing/GIS Center
US Army Corps of Engineers
Hanover, NH



On 9/16/10  11:20 AM, Jay Kapalczynski jkapalczyn...@ci.maple-grove.mn.us 
wrote:
Thanks guys for your thoughts...still green to this and trying to learn
I would make real sense to me to create the .sym file where I would not have to 
redefine the particular symbol sets

DO I HAVE THIS RIGHT?

1.  BUT how do I define the symbol set or point to the .sym file from the map 
file ?

SYMBOL FILE: So in the Symbol file I would have this (example of two of them)

SYMBOL
  NAME 'bike'
  TYPE pixmap
  IMAGE '/home/mapserv/proj/pmap/bike.png'
  TRANSPARENT 2
END
SYMBOL
  NAME 'church'
  TYPE pixmap
  IMAGE '/home/mapserv/proj/pmap/church.png'
  TRANSPARENT 5
END


MAP FILE: I would simply call them?

CLASS
  STYLE
SYMBOL bike
COLOR 0 0 0
OUTLINECOLOR 0 0 0
  END
END


-Original Message-
From: Fawcett, David (MPCA) [mailto:david.fawc...@state.mn.us]
Sent: Thursday, September 16, 2010 9:50 AM
To: Jay Kapalczynski; 'Michael Schulz'
Cc: mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] Symbology

You can put the symbol definition in your map file, or in a symbols file (e.g. 
symbols.sym) and then set SYMBOLSET at the MAP level to point to your 
symbols.sym file.

David.

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jay Kapalczynski
Sent: Thursday, September 16, 2010 9:45 AM
To: 'Michael Schulz'
Cc: mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] Symbology

Ok that seems to make sense...but where do I place the image SYMBOL (your 
example below)?  DO I place that in the map file as well?
Little confused there

Thanks Michael and Adam for your return replys.


-Original Message-
From: mandsch...@googlemail.com [mailto:mandsch...@googlemail.com] On Behalf Of 
Michael Schulz
Sent: Thursday, September 16, 2010 9:27 AM
To: Jay Kapalczynski
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Symbology

Hi,

yes, you have to define an image symbol in your symbolset and use that:

SYMBOL
  NAME 'church'
  TYPE pixmap
  IMAGE 'church.gif'
  TRANSPARENT 5
END

then use
SYMBOL 'church' in your style.

Cheers, Michael

2010/9/16 Jay Kapalczynski jkapalczyn...@ci.maple-grove.mn.us:
 In a map file...Is there a way to use an image (jpg, bmp, png) instead of a
 marker symbol (star, circle etc) when symbolizing points



LAYER

  DUMP TRUE

  NAME 'Firestations'

  DATA 'firestations'

  TYPE POINT

  STATUS ON

  CLASS

NAME 'Fire Stations'

COLOR 254 0 0

 INSTEAD OF STAR PLACE AN IMAGE

SYMBOL star

SIZE 8

  END



 ___
 mapserver-users

[mapserver-users] Symbology

2010-09-16 Thread Jay Kapalczynski
In a map file.Is there a way to use an image (jpg, bmp, png) instead of a 
marker symbol (star, circle etc) when symbolizing points

   LAYER
  DUMP TRUE
  NAME 'Firestations'
  DATA 'firestations'
  TYPE POINT
  STATUS ON
  CLASS
NAME 'Fire Stations'
COLOR 254 0 0
 INSTEAD OF STAR PLACE AN IMAGE
SYMBOL star
SIZE 8
  END

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


Re: [mapserver-users] Symbology

2010-09-16 Thread adams

Jay,

of course there are lots of possibilities... see here:


http://mapserver.org/mapfile/symbology/construction.html

Regards, Till




   LAYER

  DUMP TRUE

  NAME 'Firestations'

  DATA 'firestations'

  TYPE POINT

  STATUS ON

  CLASS

NAME 'Fire Stations'

COLOR 254 0 0

*INSTEAD OF STAR PLACE AN IMAGE*

SYMBOL star

SIZE 8

  END


___
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] Symbology

2010-09-16 Thread Michael Schulz
Hi,

yes, you have to define an image symbol in your symbolset and use that:

SYMBOL
  NAME 'church'
  TYPE pixmap
  IMAGE 'church.gif'
  TRANSPARENT 5
END

then use
SYMBOL 'church' in your style.

Cheers, Michael

2010/9/16 Jay Kapalczynski jkapalczyn...@ci.maple-grove.mn.us:
 In a map file…..Is there a way to use an image (jpg, bmp, png) instead of a
 marker symbol (star, circle etc) when symbolizing points



    LAYER

   DUMP TRUE

   NAME 'Firestations'

   DATA 'firestations'

   TYPE POINT

   STATUS ON

   CLASS

     NAME 'Fire Stations'

     COLOR 254 0 0

  INSTEAD OF STAR PLACE AN IMAGE

     SYMBOL star

     SIZE 8

   END



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





-- 
~
Aufwind durch Wissen!

Qualifizierte Open Source Schulungen bei der
http://www.foss-academy.eu/
~

---
Michael Schulz
msch...@webgis.de

in medias res
Gesellschaft für Informationstechnologie mbH

Schwimmbadstraße 2
D-79100  Freiburg i. Br.

Tel:  +49 (0)761 705798-102
Tel:  +49 (0)761 705798-0
Fax: +49 (0)761 705798-09

http://www.webgis.de / http://www.zopecms.de
--
Geschäftsführer: Stefan Giese, Dr. Christof Lindenbeck
Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] Symbology

2010-09-16 Thread Jay Kapalczynski
Ok that seems to make sense...but where do I place the image SYMBOL (your 
example below)?  DO I place that in the map file as well?
Little confused there

Thanks Michael and Adam for your return replys.


-Original Message-
From: mandsch...@googlemail.com [mailto:mandsch...@googlemail.com] On Behalf Of 
Michael Schulz
Sent: Thursday, September 16, 2010 9:27 AM
To: Jay Kapalczynski
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Symbology

Hi,

yes, you have to define an image symbol in your symbolset and use that:

SYMBOL
  NAME 'church'
  TYPE pixmap
  IMAGE 'church.gif'
  TRANSPARENT 5
END

then use
SYMBOL 'church' in your style.

Cheers, Michael

2010/9/16 Jay Kapalczynski jkapalczyn...@ci.maple-grove.mn.us:
 In a map file...Is there a way to use an image (jpg, bmp, png) instead of a
 marker symbol (star, circle etc) when symbolizing points



    LAYER

   DUMP TRUE

   NAME 'Firestations'

   DATA 'firestations'

   TYPE POINT

   STATUS ON

   CLASS

     NAME 'Fire Stations'

     COLOR 254 0 0

  INSTEAD OF STAR PLACE AN IMAGE

     SYMBOL star

     SIZE 8

   END



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





-- 
~
Aufwind durch Wissen!

Qualifizierte Open Source Schulungen bei der
http://www.foss-academy.eu/
~

---
Michael Schulz
msch...@webgis.de

in medias res
Gesellschaft für Informationstechnologie mbH

Schwimmbadstraße 2
D-79100  Freiburg i. Br.

Tel:  +49 (0)761 705798-102
Tel:  +49 (0)761 705798-0
Fax: +49 (0)761 705798-09

http://www.webgis.de / http://www.zopecms.de
--
Geschäftsführer: Stefan Giese, Dr. Christof Lindenbeck
Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] Symbology

2010-09-16 Thread Fawcett, David (MPCA)
You can put the symbol definition in your map file, or in a symbols file (e.g. 
symbols.sym) and then set SYMBOLSET at the MAP level to point to your 
symbols.sym file.

David.

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jay Kapalczynski
Sent: Thursday, September 16, 2010 9:45 AM
To: 'Michael Schulz'
Cc: mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] Symbology

Ok that seems to make sense...but where do I place the image SYMBOL (your 
example below)?  DO I place that in the map file as well?
Little confused there

Thanks Michael and Adam for your return replys.


-Original Message-
From: mandsch...@googlemail.com [mailto:mandsch...@googlemail.com] On Behalf Of 
Michael Schulz
Sent: Thursday, September 16, 2010 9:27 AM
To: Jay Kapalczynski
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Symbology

Hi,

yes, you have to define an image symbol in your symbolset and use that:

SYMBOL
  NAME 'church'
  TYPE pixmap
  IMAGE 'church.gif'
  TRANSPARENT 5
END

then use
SYMBOL 'church' in your style.

Cheers, Michael

2010/9/16 Jay Kapalczynski jkapalczyn...@ci.maple-grove.mn.us:
 In a map file...Is there a way to use an image (jpg, bmp, png) instead of a
 marker symbol (star, circle etc) when symbolizing points



    LAYER

   DUMP TRUE

   NAME 'Firestations'

   DATA 'firestations'

   TYPE POINT

   STATUS ON

   CLASS

     NAME 'Fire Stations'

     COLOR 254 0 0

  INSTEAD OF STAR PLACE AN IMAGE

     SYMBOL star

     SIZE 8

   END



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





-- 
~
Aufwind durch Wissen!

Qualifizierte Open Source Schulungen bei der
http://www.foss-academy.eu/
~

---
Michael Schulz
msch...@webgis.de

in medias res
Gesellschaft für Informationstechnologie mbH

Schwimmbadstraße 2
D-79100  Freiburg i. Br.

Tel:  +49 (0)761 705798-102
Tel:  +49 (0)761 705798-0
Fax: +49 (0)761 705798-09

http://www.webgis.de / http://www.zopecms.de
--
Geschäftsführer: Stefan Giese, Dr. Christof Lindenbeck
Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg
___
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] Symbology

2010-09-16 Thread Jay Kapalczynski
Thanks guys for your thoughts...still green to this and trying to learn

I would make real sense to me to create the .sym file where I would not have to 
redefine the particular symbol sets



DO I HAVE THIS RIGHT?



1.  BUT how do I define the symbol set or point to the .sym file from the map 
file ?



SYMBOL FILE: So in the Symbol file I would have this (example of two of them)



SYMBOL

  NAME 'bike'

  TYPE pixmap

  IMAGE '/home/mapserv/proj/pmap/bike.png'

  TRANSPARENT 2

END

SYMBOL

  NAME 'church'

  TYPE pixmap

  IMAGE '/home/mapserv/proj/pmap/church.png'

  TRANSPARENT 5

END





MAP FILE: I would simply call them?



CLASS

  STYLE

SYMBOL bike

COLOR 0 0 0

OUTLINECOLOR 0 0 0

  END

END





-Original Message-
From: Fawcett, David (MPCA) [mailto:david.fawc...@state.mn.us]
Sent: Thursday, September 16, 2010 9:50 AM
To: Jay Kapalczynski; 'Michael Schulz'
Cc: mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] Symbology



You can put the symbol definition in your map file, or in a symbols file (e.g. 
symbols.sym) and then set SYMBOLSET at the MAP level to point to your 
symbols.sym file.



David.



-Original Message-

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jay Kapalczynski

Sent: Thursday, September 16, 2010 9:45 AM

To: 'Michael Schulz'

Cc: mapserver-users@lists.osgeo.org

Subject: RE: [mapserver-users] Symbology



Ok that seems to make sense...but where do I place the image SYMBOL (your 
example below)?  DO I place that in the map file as well?

Little confused there



Thanks Michael and Adam for your return replys.





-Original Message-

From: mandsch...@googlemail.com [mailto:mandsch...@googlemail.com] On Behalf Of 
Michael Schulz

Sent: Thursday, September 16, 2010 9:27 AM

To: Jay Kapalczynski

Cc: mapserver-users@lists.osgeo.org

Subject: Re: [mapserver-users] Symbology



Hi,



yes, you have to define an image symbol in your symbolset and use that:



SYMBOL

  NAME 'church'

  TYPE pixmap

  IMAGE 'church.gif'

  TRANSPARENT 5

END



then use

SYMBOL 'church' in your style.



Cheers, Michael



2010/9/16 Jay Kapalczynski jkapalczyn...@ci.maple-grove.mn.us:

 In a map file...Is there a way to use an image (jpg, bmp, png) instead of a

 marker symbol (star, circle etc) when symbolizing points







LAYER



   DUMP TRUE



   NAME 'Firestations'



   DATA 'firestations'



   TYPE POINT



   STATUS ON



   CLASS



 NAME 'Fire Stations'



 COLOR 254 0 0



  INSTEAD OF STAR PLACE AN IMAGE



 SYMBOL star



 SIZE 8



   END







 ___

 mapserver-users mailing list

 mapserver-users@lists.osgeo.org

 http://lists.osgeo.org/mailman/listinfo/mapserver-users











--

~

Aufwind durch Wissen!



Qualifizierte Open Source Schulungen bei der

http://www.foss-academy.eu/

~



---

Michael Schulz

msch...@webgis.de



in medias res

Gesellschaft für Informationstechnologie mbH



Schwimmbadstraße 2

D-79100  Freiburg i. Br.



Tel:  +49 (0)761 705798-102

Tel:  +49 (0)761 705798-0

Fax: +49 (0)761 705798-09



http://www.webgis.de / http://www.zopecms.de

--

Geschäftsführer: Stefan Giese, Dr. Christof Lindenbeck

Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg

___

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] Symbology

2010-09-16 Thread Smith, Michael D ERDC-CRREL-NH
Jay,

A couple of additional steps.

1). Add SYMBOLSET as the first line in your symbol file

2). In the mapfile, in the MAP section add a line

SYMBOLSET /path/to/symbolset_file

Mike


-- 
Michael Smith
Remote Sensing/GIS Center
US Army Corps of Engineers
Hanover, NH



On 9/16/10  11:20 AM, Jay Kapalczynski
jkapalczyn...@ci.maple-grove.mn.us wrote:

 Thanks guys for your thoughts...still green to this and trying to learn
 I would make real sense to me to create the .sym file where I would not have
 to redefine the particular symbol sets
  
 DO I HAVE THIS RIGHT? 
  
 1.  BUT how do I define the symbol set or point to the .sym file from the map
 file ?
  
 SYMBOL FILE: So in the Symbol file I would have this (example of two of them)
  
 SYMBOL
   NAME 'bike'
   TYPE pixmap
   IMAGE '/home/mapserv/proj/pmap/bike.png' 
   TRANSPARENT 2
 END
 SYMBOL
   NAME 'church'
   TYPE pixmap
   IMAGE '/home/mapserv/proj/pmap/church.png' 
   TRANSPARENT 5
 END
  
  
 MAP FILE: I would simply call them?
  
 CLASS
   STYLE
     SYMBOL bike
     COLOR 0 0 0
     OUTLINECOLOR 0 0 0
   END
 END
  
  
 -Original Message-
 From: Fawcett, David (MPCA) [mailto:david.fawc...@state.mn.us]
 Sent: Thursday, September 16, 2010 9:50 AM
 To: Jay Kapalczynski; 'Michael Schulz'
 Cc: mapserver-users@lists.osgeo.org
 Subject: RE: [mapserver-users] Symbology
  
 You can put the symbol definition in your map file, or in a symbols file (e.g.
 symbols.sym) and then set SYMBOLSET at the MAP level to point to your
 symbols.sym file.
  
 David.
  
 -Original Message-
 From: mapserver-users-boun...@lists.osgeo.org
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jay Kapalczynski
 Sent: Thursday, September 16, 2010 9:45 AM
 To: 'Michael Schulz'
 Cc: mapserver-users@lists.osgeo.org
 Subject: RE: [mapserver-users] Symbology
  
 Ok that seems to make sense...but where do I place the image SYMBOL (your
 example below)?  DO I place that in the map file as well?
 Little confused there
  
 Thanks Michael and Adam for your return replys.
  
  
 -Original Message-
 From: mandsch...@googlemail.com [mailto:mandsch...@googlemail.com] On Behalf
 Of Michael Schulz
 Sent: Thursday, September 16, 2010 9:27 AM
 To: Jay Kapalczynski
 Cc: mapserver-users@lists.osgeo.org
 Subject: Re: [mapserver-users] Symbology
  
 Hi,
  
 yes, you have to define an image symbol in your symbolset and use that:
  
 SYMBOL
   NAME 'church'
   TYPE pixmap
   IMAGE 'church.gif'
   TRANSPARENT 5
 END
  
 then use
 SYMBOL 'church' in your style.
  
 Cheers, Michael
  
 2010/9/16 Jay Kapalczynski jkapalczyn...@ci.maple-grove.mn.us:
  In a map file...Is there a way to use an image (jpg, bmp, png) instead of a
  marker symbol (star, circle etc) when symbolizing points
  
  
  
 LAYER
  
   DUMP TRUE
  
   NAME 'Firestations'
  
   DATA 'firestations'
  
   TYPE POINT
  
   STATUS ON
  
   CLASS
  
 NAME 'Fire Stations'
  
 COLOR 254 0 0
  
  INSTEAD OF STAR PLACE AN IMAGE
  
 SYMBOL star
  
 SIZE 8
  
   END
  
  
  
  ___
  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] Symbology

2010-09-16 Thread Michael Schulz
Jay,

you need to reference the symbolset file in the map section of you mapfile
SYMYBOLSET '/path/to/your/symbolset.sym'

then you can simply use the names of the defined symbols.

Cheers, Michael


2010/9/16 Jay Kapalczynski jkapalczyn...@ci.maple-grove.mn.us:
 Thanks guys for your thoughts...still green to this and trying to learn

 I would make real sense to me to create the .sym file where I would not have
 to redefine the particular symbol sets



 DO I HAVE THIS RIGHT?



 1.  BUT how do I define the symbol set or point to the .sym file from the
 map file ?



 SYMBOL FILE: So in the Symbol file I would have this (example of two of
 them)



 SYMBOL

   NAME 'bike'

   TYPE pixmap

   IMAGE '/home/mapserv/proj/pmap/bike.png'

   TRANSPARENT 2

 END

 SYMBOL

   NAME 'church'

   TYPE pixmap

   IMAGE '/home/mapserv/proj/pmap/church.png'

   TRANSPARENT 5

 END





 MAP FILE: I would simply call them?



 CLASS

   STYLE

     SYMBOL bike

     COLOR 0 0 0

     OUTLINECOLOR 0 0 0

   END

 END





 -Original Message-
 From: Fawcett, David (MPCA) [mailto:david.fawc...@state.mn.us]
 Sent: Thursday, September 16, 2010 9:50 AM
 To: Jay Kapalczynski; 'Michael Schulz'
 Cc: mapserver-users@lists.osgeo.org
 Subject: RE: [mapserver-users] Symbology



 You can put the symbol definition in your map file, or in a symbols file
 (e.g. symbols.sym) and then set SYMBOLSET at the MAP level to point to your
 symbols.sym file.



 David.



 -Original Message-

 From: mapserver-users-boun...@lists.osgeo.org
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jay
 Kapalczynski

 Sent: Thursday, September 16, 2010 9:45 AM

 To: 'Michael Schulz'

 Cc: mapserver-users@lists.osgeo.org

 Subject: RE: [mapserver-users] Symbology



 Ok that seems to make sense...but where do I place the image SYMBOL (your
 example below)?  DO I place that in the map file as well?

 Little confused there



 Thanks Michael and Adam for your return replys.





 -Original Message-

 From: mandsch...@googlemail.com [mailto:mandsch...@googlemail.com] On Behalf
 Of Michael Schulz

 Sent: Thursday, September 16, 2010 9:27 AM

 To: Jay Kapalczynski

 Cc: mapserver-users@lists.osgeo.org

 Subject: Re: [mapserver-users] Symbology



 Hi,



 yes, you have to define an image symbol in your symbolset and use that:



 SYMBOL

   NAME 'church'

   TYPE pixmap

   IMAGE 'church.gif'

   TRANSPARENT 5

 END



 then use

 SYMBOL 'church' in your style.



 Cheers, Michael



 2010/9/16 Jay Kapalczynski jkapalczyn...@ci.maple-grove.mn.us:

 In a map file...Is there a way to use an image (jpg, bmp, png) instead of
 a

 marker symbol (star, circle etc) when symbolizing points







    LAYER



   DUMP TRUE



   NAME 'Firestations'



   DATA 'firestations'



   TYPE POINT



   STATUS ON



   CLASS



     NAME 'Fire Stations'



     COLOR 254 0 0



  INSTEAD OF STAR PLACE AN IMAGE



     SYMBOL star



     SIZE 8



   END







 ___

 mapserver-users mailing list

 mapserver-users@lists.osgeo.org

 http://lists.osgeo.org/mailman/listinfo/mapserver-users











 --

 ~

 Aufwind durch Wissen!



 Qualifizierte Open Source Schulungen bei der

 http://www.foss-academy.eu/

 ~



 ---

 Michael Schulz

 msch...@webgis.de



 in medias res

 Gesellschaft für Informationstechnologie mbH



 Schwimmbadstraße 2

 D-79100  Freiburg i. Br.



 Tel:  +49 (0)761 705798-102

 Tel:  +49 (0)761 705798-0

 Fax: +49 (0)761 705798-09



 http://www.webgis.de / http://www.zopecms.de

 --

 Geschäftsführer: Stefan Giese, Dr. Christof Lindenbeck

 Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg

 ___

 mapserver-users mailing list

 mapserver-users@lists.osgeo.org

 http://lists.osgeo.org/mailman/listinfo/mapserver-users







-- 
~
Aufwind durch Wissen!

Qualifizierte Open Source Schulungen bei der
http://www.foss-academy.eu/
~

---
Michael Schulz
msch...@webgis.de

in medias res
Gesellschaft für Informationstechnologie mbH

Schwimmbadstraße 2
D-79100  Freiburg i. Br.

Tel:  +49 (0)761 705798-102
Tel:  +49 (0)761 705798-0
Fax: +49 (0)761 705798-09

http://www.webgis.de / http://www.zopecms.de
--
Geschäftsführer: Stefan Giese, Dr. Christof Lindenbeck
Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg
___
mapserver-users mailing list
mapserver

RE: [mapserver-users] Symbology

2010-09-16 Thread Jay Kapalczynski
Once again guysthanks...VERY Appreciated

I am having one last problem...the path...if the map file is in the police 
folder  (as seen below) how do I write the path to get to the .sym file.  I am 
having a hard tiem trying to figure out were is the root to start my URL 
path

Hope this does not seem to stupid a question...when I am trying to create a 
path...do I think of it from the location of the .map file to the .sym file and 
then create the path between them.  OR do I always start from one location?

SYMBOLSET /path/to/symbolset_file

Folder structure:

Ms4w
Apps
maplegrove
Htdocs
Symbolset folder
.sym file
maps
maple_grove
police
.map files
...
...
...

From: Smith, Michael D ERDC-CRREL-NH [mailto:michael.sm...@usace.army.mil]
Sent: Thursday, September 16, 2010 10:26 AM
To: Jay Kapalczynski; 'Fawcett, David (MPCA)'; 'Michael Schulz'
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Symbology

Jay,

A couple of additional steps.

1). Add SYMBOLSET as the first line in your symbol file

2). In the mapfile, in the MAP section add a line

SYMBOLSET /path/to/symbolset_file

Mike


--
Michael Smith
Remote Sensing/GIS Center
US Army Corps of Engineers
Hanover, NH



On 9/16/10  11:20 AM, Jay Kapalczynski jkapalczyn...@ci.maple-grove.mn.us 
wrote:
Thanks guys for your thoughts...still green to this and trying to learn
I would make real sense to me to create the .sym file where I would not have to 
redefine the particular symbol sets

DO I HAVE THIS RIGHT?

1.  BUT how do I define the symbol set or point to the .sym file from the map 
file ?

SYMBOL FILE: So in the Symbol file I would have this (example of two of them)

SYMBOL
  NAME 'bike'
  TYPE pixmap
  IMAGE '/home/mapserv/proj/pmap/bike.png'
  TRANSPARENT 2
END
SYMBOL
  NAME 'church'
  TYPE pixmap
  IMAGE '/home/mapserv/proj/pmap/church.png'
  TRANSPARENT 5
END


MAP FILE: I would simply call them?

CLASS
  STYLE
SYMBOL bike
COLOR 0 0 0
OUTLINECOLOR 0 0 0
  END
END


-Original Message-
From: Fawcett, David (MPCA) [mailto:david.fawc...@state.mn.us]
Sent: Thursday, September 16, 2010 9:50 AM
To: Jay Kapalczynski; 'Michael Schulz'
Cc: mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] Symbology

You can put the symbol definition in your map file, or in a symbols file (e.g. 
symbols.sym) and then set SYMBOLSET at the MAP level to point to your 
symbols.sym file.

David.

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jay Kapalczynski
Sent: Thursday, September 16, 2010 9:45 AM
To: 'Michael Schulz'
Cc: mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] Symbology

Ok that seems to make sense...but where do I place the image SYMBOL (your 
example below)?  DO I place that in the map file as well?
Little confused there

Thanks Michael and Adam for your return replys.


-Original Message-
From: mandsch...@googlemail.com [mailto:mandsch...@googlemail.com] On Behalf Of 
Michael Schulz
Sent: Thursday, September 16, 2010 9:27 AM
To: Jay Kapalczynski
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Symbology

Hi,

yes, you have to define an image symbol in your symbolset and use that:

SYMBOL
  NAME 'church'
  TYPE pixmap
  IMAGE 'church.gif'
  TRANSPARENT 5
END

then use
SYMBOL 'church' in your style.

Cheers, Michael

2010/9/16 Jay Kapalczynski jkapalczyn...@ci.maple-grove.mn.us:
 In a map file...Is there a way to use an image (jpg, bmp, png) instead of a
 marker symbol (star, circle etc) when symbolizing points



LAYER

  DUMP TRUE

  NAME 'Firestations'

  DATA 'firestations'

  TYPE POINT

  STATUS ON

  CLASS

NAME 'Fire Stations'

COLOR 254 0 0

 INSTEAD OF STAR PLACE AN IMAGE

SYMBOL star

SIZE 8

  END



 ___
 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] Symbology

2010-09-16 Thread adams

Jay,

all pathes in the mapfile are relative to the mapfile.

e.g.

mapfile.map
subfolder-symbols/symbset.sym

leads to the reference

subfolder-symbols/symbset.sym

This is true to all references in the mapfile AND included files such as 
symbset.sym!


Regards

Once again guysthanks...VERY Appreciated


I am having one last problem...the path...if the map file is in the 
police folder  (as seen below) how do I write the path to get to the 
.sym file.  I am having a hard tiem trying to figure out were is the 
root to start my URL path


Hope this does not seem to stupid a question...when I am trying to 
create a path...do I think of it from the location of the .map file to 
the .sym file and then create the path between them.  OR do I always 
start from one location?


SYMBOLSET /path/to/symbolset_file

Folder structure:

Ms4w

Apps

maplegrove

Htdocs

Symbolset folder

*.sym file*

maps

maple_grove

police

*.map files*

...

...

...

*From:* Smith, Michael D ERDC-CRREL-NH 
[mailto:michael.sm...@usace.army.mil]

*Sent:* Thursday, September 16, 2010 10:26 AM
*To:* Jay Kapalczynski; 'Fawcett, David (MPCA)'; 'Michael Schulz'
*Cc:* mapserver-users@lists.osgeo.org
*Subject:* Re: [mapserver-users] Symbology

Jay,

A couple of additional steps.

1). Add SYMBOLSET as the first line in your symbol file

2). In the mapfile, in the MAP section add a line

SYMBOLSET /path/to/symbolset_file

Mike


--
Michael Smith
Remote Sensing/GIS Center
US Army Corps of Engineers
Hanover, NH



On 9/16/10  11:20 AM, Jay Kapalczynski 
jkapalczyn...@ci.maple-grove.mn.us wrote:


Thanks guys for your thoughts...still green to this and trying to learn
I would make real sense to me to create the .sym file where I would 
not have to redefine the particular symbol sets


DO I HAVE THIS RIGHT?

1.  BUT how do I define the symbol set or point to the .sym file from 
the map file ?


*SYMBOL FILE: So in the Symbol file I would have this (example of two 
of them)

*
SYMBOL
  NAME 'bike'
  TYPE pixmap
  IMAGE '/home/mapserv/proj/pmap/bike.png'
  TRANSPARENT 2
END
SYMBOL
  NAME 'church'
  TYPE pixmap
  IMAGE '/home/mapserv/proj/pmap/church.png'
  TRANSPARENT 5
END

*
MAP FILE: I would simply call them?
*
CLASS
  STYLE
SYMBOL bike
COLOR 0 0 0
OUTLINECOLOR 0 0 0
  END
END


-Original Message-
From: Fawcett, David (MPCA) [mailto:david.fawc...@state.mn.us]
Sent: Thursday, September 16, 2010 9:50 AM
To: Jay Kapalczynski; 'Michael Schulz'
Cc: mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] Symbology

You can put the symbol definition in your map file, or in a symbols 
file (e.g. symbols.sym) and then set SYMBOLSET at the MAP level to 
point to your symbols.sym file.


David.

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jay 
Kapalczynski

Sent: Thursday, September 16, 2010 9:45 AM
To: 'Michael Schulz'
Cc: mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] Symbology

Ok that seems to make sense...but where do I place the image SYMBOL 
(your example below)?  DO I place that in the map file as well?

Little confused there

Thanks Michael and Adam for your return replys.


-Original Message-
From: mandsch...@googlemail.com [mailto:mandsch...@googlemail.com] On 
Behalf Of Michael Schulz

Sent: Thursday, September 16, 2010 9:27 AM
To: Jay Kapalczynski
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Symbology

Hi,

yes, you have to define an image symbol in your symbolset and use that:

SYMBOL
  NAME 'church'
  TYPE pixmap
  IMAGE 'church.gif'
  TRANSPARENT 5
END

then use
SYMBOL 'church' in your style.

Cheers, Michael

2010/9/16 Jay Kapalczynski jkapalczyn...@ci.maple-grove.mn.us:
 In a map file...Is there a way to use an image (jpg, bmp, png) 
instead of a

 marker symbol (star, circle etc) when symbolizing points



LAYER

  DUMP TRUE

  NAME 'Firestations'

  DATA 'firestations'

  TYPE POINT

  STATUS ON

  CLASS

NAME 'Fire Stations'

COLOR 254 0 0

 INSTEAD OF STAR PLACE AN IMAGE

SYMBOL star

SIZE 8

  END



 ___
 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] Symbology

2010-09-16 Thread Jay Kapalczynski
Last entry on thisI can get this to work ALTHOUGH ONLY in the map file
In the map file I am pointing to the folder that contains the .sym file but 
cant get the sym file to work

I cannot get the SYMBOLSET to load the sym file. As Seen below it only works 
when I have the symbol set declared in the map file...
What can I be doing wrong?

MAP

# THIS DOES NOT WORK
   # DECLARE LOCATION OF THE SYMBOL SET
   #SYMBOLSET '../../../htdocs/symbolsets/symbolset.sym'

# THIS WORKS
   SYMBOL
 NAME 'bike'
 TYPE pixmap
 IMAGE '../../../htdocs/symbolsets/symbol_images/bike.png'
 TRANSPARENT 50
   END

LAYER
 NAME Burglaries
 DATA './Burglaries.shp'
 STATUS ON
 TYPE POINT

  CLASS
 NAME 'Last Weeks'
 STYLE
 SYMBOL bike
 COLOR 0 0 0
 OUTLINECOLOR 0 0 0
  END
   END

#.snip


SYM FILE

SYMBOLSET

   SYMBOL
 NAME 'bike'
 TYPE pixmap
 IMAGE 'symbol_images/bike.png'
 TRANSPARENT 2
   END
END


From: Smith, Michael D ERDC-CRREL-NH [mailto:michael.sm...@usace.army.mil]
Sent: Thursday, September 16, 2010 10:26 AM
To: Jay Kapalczynski; 'Fawcett, David (MPCA)'; 'Michael Schulz'
Cc: mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Symbology

Jay,

A couple of additional steps.

1). Add SYMBOLSET as the first line in your symbol file

2). In the mapfile, in the MAP section add a line

SYMBOLSET /path/to/symbolset_file

Mike


--
Michael Smith
Remote Sensing/GIS Center
US Army Corps of Engineers
Hanover, NH



On 9/16/10  11:20 AM, Jay Kapalczynski jkapalczyn...@ci.maple-grove.mn.us 
wrote:
Thanks guys for your thoughts...still green to this and trying to learn
I would make real sense to me to create the .sym file where I would not have to 
redefine the particular symbol sets

DO I HAVE THIS RIGHT?

1.  BUT how do I define the symbol set or point to the .sym file from the map 
file ?

SYMBOL FILE: So in the Symbol file I would have this (example of two of them)

SYMBOL
  NAME 'bike'
  TYPE pixmap
  IMAGE '/home/mapserv/proj/pmap/bike.png'
  TRANSPARENT 2
END
SYMBOL
  NAME 'church'
  TYPE pixmap
  IMAGE '/home/mapserv/proj/pmap/church.png'
  TRANSPARENT 5
END


MAP FILE: I would simply call them?

CLASS
  STYLE
SYMBOL bike
COLOR 0 0 0
OUTLINECOLOR 0 0 0
  END
END


-Original Message-
From: Fawcett, David (MPCA) [mailto:david.fawc...@state.mn.us]
Sent: Thursday, September 16, 2010 9:50 AM
To: Jay Kapalczynski; 'Michael Schulz'
Cc: mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] Symbology

You can put the symbol definition in your map file, or in a symbols file (e.g. 
symbols.sym) and then set SYMBOLSET at the MAP level to point to your 
symbols.sym file.

David.

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jay Kapalczynski
Sent: Thursday, September 16, 2010 9:45 AM
To: 'Michael Schulz'
Cc: mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] Symbology

Ok that seems to make sense...but where do I place the image SYMBOL (your 
example below)?  DO I place that in the map file as well?
Little confused there

Thanks Michael and Adam for your return replys.


-Original Message-
From: mandsch...@googlemail.com [mailto:mandsch...@googlemail.com] On Behalf Of 
Michael Schulz
Sent: Thursday, September 16, 2010 9:27 AM
To: Jay Kapalczynski
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Symbology

Hi,

yes, you have to define an image symbol in your symbolset and use that:

SYMBOL
  NAME 'church'
  TYPE pixmap
  IMAGE 'church.gif'
  TRANSPARENT 5
END

then use
SYMBOL 'church' in your style.

Cheers, Michael

2010/9/16 Jay Kapalczynski jkapalczyn...@ci.maple-grove.mn.us:
 In a map file...Is there a way to use an image (jpg, bmp, png) instead of a
 marker symbol (star, circle etc) when symbolizing points



LAYER

  DUMP TRUE

  NAME 'Firestations'

  DATA 'firestations'

  TYPE POINT

  STATUS ON

  CLASS

NAME 'Fire Stations'

COLOR 254 0 0

 INSTEAD OF STAR PLACE AN IMAGE

SYMBOL star

SIZE 8

  END



 ___
 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.orgmailto:mapserver-users@lists.osgeo.org

http://lists.osgeo.org/mailman/listinfo/mapserver-users



___
mapserver-users mailing list
mapserver-users

[mapserver-users] Symbology rotation (again)

2008-04-04 Thread KMR - Kåre Mølgård Rasmussen
Hi list

 

I´ve recently posted a question regarding symbology rotation. I´ve got two 
great replies suggesting 

1)  Upgrade mapserver (I was running 4.10)

2)  Implement angleitem in a STYLE definition

 

I´ve done both, and when I run mapserv.exe with -v as argument, version 5.0.2 
is returned. But when I try to display the map, mapserver fails with the 
following error:

Error: loadStyle(): Unknown identifier. Parsing error near (ANGLEITEM):(line 
3328)

java.lang.UnknownError: loadStyle(): Unknown identifier. Parsing error near 
(ANGLEITEM):(line 3328)

 

The CLASS/STYLE looks like this

  CLASSITEM  TYPE

  CLASS   

 EXPRESSION LOCK 

 STYLE

   COLOR 192 192 192 

   SYMBOL WATER_L 

   SIZE 10

   ANGLEITEM LCK_ANGLE #column contains float values

 END

  END

 

Any suggestions to this error?

 

TIA

/Kaare

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


[mapserver-users] symbology rotation

2008-04-01 Thread KMR - Kåre Mølgård Rasmussen
Hi list (sorry if it is reposted - I´m not sure, if the first mail got around)

 

Currently I´m using mapserver 4.10 to display tab-files. Due to the fact, that 
I´m unable to get mapserver to display the right symbol (I use my own true type 
font) 

I´ve mapped the neseccary symbols like this

 

SYMBOL

  NAME mysymbL 

  TYPE TRUETYPE

  FONT mytruetype

  FILLED true

  ANTIALIAS true

  CHARACTER L

END

 

Then  in the different layer definitions I do like this:

LAYER

  NAME Water 

  

  TYPE POINT

  STATUS OFF

  CONNECTIONTYPE OGR   

  CONNECTION /.../water.tab

  METADATA

 themename Water

  END



  TOLERANCEUNITS meters

  TOLERANCE 4

  TEMPLATE dummy.html  

 

CLASSITEM W_TYPE

CLASS   

   EXPRESSION waterL 

   COLOR 0 0 255 

   SYMBOL mysymbL 

   SIZE 1

END

END

 

My problem is that MapServer ignores the symbology angle used in the tab file. 
Does anyone have any suggestion to this problem

 

TIA

Kaare

 

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


RE: [mapserver-users] symbology rotation

2008-04-01 Thread David . Fawcett


You are using a very old version of MapSever.  Are you sure that 4.1 supports 
symbology rotation?  I can't remember when that feature was added.  
 
I suggest upgrading to a more recent version of MapServer.
 
David.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of KMR - Kåre 
Mølgård Rasmussen
Sent: Tuesday, April 01, 2008 5:52 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] symbology rotation 



Hi list (sorry if it is reposted - I´m not sure, if the first mail got around)

 

Currently I´m using mapserver 4.10 to display tab-files. Due to the fact, that 
I´m unable to get mapserver to display the right symbol (I use my own true type 
font) 

I´ve mapped the neseccary symbols like this

 

SYMBOL

  NAME mysymbL 

  TYPE TRUETYPE

  FONT mytruetype

  FILLED true

  ANTIALIAS true

  CHARACTER L

END

 

Then  in the different layer definitions I do like this:

LAYER

  NAME Water 

  

  TYPE POINT

  STATUS OFF

  CONNECTIONTYPE OGR   

  CONNECTION /.../water.tab

  METADATA

 themename Water

  END



  TOLERANCEUNITS meters

  TOLERANCE 4

  TEMPLATE dummy.html  

 

CLASSITEM W_TYPE

CLASS   

   EXPRESSION waterL 

   COLOR 0 0 255 

   SYMBOL mysymbL 

   SIZE 1

END

END

 

My problem is that MapServer ignores the symbology angle used in the tab file. 
Does anyone have any suggestion to this problem

 

TIA

Kaare

 

Title: Message



You 
are using a very old version of MapSever. Are you sure that 4.1 supports 
symbology rotation? I can't remember when that feature was added. 


I 
suggest upgrading to a more recent version of MapServer.

David.

  
  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] On Behalf Of KMR - 
  Kåre Mølgård RasmussenSent: Tuesday, April 01, 2008 5:52 
  AMTo: mapserver-users@lists.osgeo.orgSubject: 
  [mapserver-users] symbology rotation 
  
  Hi list (sorry if it is reposted – I´m not 
  sure, if the first mail got around)
  
  Currently I´m using mapserver 4.10 to 
  display tab-files. Due to the fact, that I´m unable to get mapserver to 
  display the right symbol (I use my own true type font) 
  I´ve mapped the neseccary symbols like 
  this
  
  SYMBOL
   NAME "mysymbL" 
  
   TYPE TRUETYPE
   FONT 
  mytruetype
   FILLED true
   ANTIALIAS 
true
   CHARACTER "L"
  END
  
  Then in the different layer 
  definitions I do like this:
  LAYER
   NAME Water 
   
   TYPE POINT
   STATUS OFF
   CONNECTIONTYPE 
  OGR 
  
   CONNECTION 
  "/…/water.tab"
   METADATA
   "themename" 
  "Water"
   END
   
   TOLERANCEUNITS 
  meters
   TOLERANCE 4
   TEMPLATE "dummy.html" 
  
  
   CLASSITEM 
  "W_TYPE"
   CLASS 
  
   
  _expression_ "waterL" 
   COLOR 
  0 0 255 
   
  SYMBOL "mysymbL" 
   SIZE 
  1
   
  END
  END
  
  My problem is that MapServer ignores the 
  symbology angle used in the tab file. Does anyone have any suggestion to this 
  problem
  
  TIA
  Kaare
  


3#Part.002
Description: Binary data
AdmID:661D8CD17A019D57326A9D121EA55BA9
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] symbology rotation

2008-04-01 Thread David . Fawcett


You are using a very old version of MapSever.  Are you sure that 4.1 supports 
symbology rotation?  I can't remember when that feature was added.  
 
I suggest upgrading to a more recent version of MapServer.
 
David.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of KMR - Kåre 
Mølgård Rasmussen
Sent: Tuesday, April 01, 2008 5:52 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] symbology rotation 



Hi list (sorry if it is reposted - I´m not sure, if the first mail got around)

 

Currently I´m using mapserver 4.10 to display tab-files. Due to the fact, that 
I´m unable to get mapserver to display the right symbol (I use my own true type 
font) 

I´ve mapped the neseccary symbols like this

 

SYMBOL

  NAME mysymbL 

  TYPE TRUETYPE

  FONT mytruetype

  FILLED true

  ANTIALIAS true

  CHARACTER L

END

 

Then  in the different layer definitions I do like this:

LAYER

  NAME Water 

  

  TYPE POINT

  STATUS OFF

  CONNECTIONTYPE OGR   

  CONNECTION /.../water.tab

  METADATA

 themename Water

  END



  TOLERANCEUNITS meters

  TOLERANCE 4

  TEMPLATE dummy.html  

 

CLASSITEM W_TYPE

CLASS   

   EXPRESSION waterL 

   COLOR 0 0 255 

   SYMBOL mysymbL 

   SIZE 1

END

END

 

My problem is that MapServer ignores the symbology angle used in the tab file. 
Does anyone have any suggestion to this problem

 

TIA

Kaare

 

Title: Message



You 
are using a very old version of MapSever. Are you sure that 4.1 supports 
symbology rotation? I can't remember when that feature was added. 


I 
suggest upgrading to a more recent version of MapServer.

David.

  
  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] On Behalf Of KMR - 
  Kåre Mølgård RasmussenSent: Tuesday, April 01, 2008 5:52 
  AMTo: mapserver-users@lists.osgeo.orgSubject: 
  [mapserver-users] symbology rotation 
  
  Hi list (sorry if it is reposted – I´m not 
  sure, if the first mail got around)
  
  Currently I´m using mapserver 4.10 to 
  display tab-files. Due to the fact, that I´m unable to get mapserver to 
  display the right symbol (I use my own true type font) 
  I´ve mapped the neseccary symbols like 
  this
  
  SYMBOL
   NAME "mysymbL" 
  
   TYPE TRUETYPE
   FONT 
  mytruetype
   FILLED true
   ANTIALIAS 
true
   CHARACTER "L"
  END
  
  Then in the different layer 
  definitions I do like this:
  LAYER
   NAME Water 
   
   TYPE POINT
   STATUS OFF
   CONNECTIONTYPE 
  OGR 
  
   CONNECTION 
  "/…/water.tab"
   METADATA
   "themename" 
  "Water"
   END
   
   TOLERANCEUNITS 
  meters
   TOLERANCE 4
   TEMPLATE "dummy.html" 
  
  
   CLASSITEM 
  "W_TYPE"
   CLASS 
  
   
  _expression_ "waterL" 
   COLOR 
  0 0 255 
   
  SYMBOL "mysymbL" 
   SIZE 
  1
   
  END
  END
  
  My problem is that MapServer ignores the 
  symbology angle used in the tab file. Does anyone have any suggestion to this 
  problem
  
  TIA
  Kaare
  


3#Part.002
Description: Binary data
AdmID:661D8CD17A019D57326A9D121EA55BA9
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] symbology showing line direction

2008-02-29 Thread Adam Feidt
  I'm working in a GeoMoose application and trying to display
utility lines with the correct line direction via some arrow character
or symbol.  I've had no luck so far.  I've successfully labeled my lines
with a truetype font character by defining the TEXT  parameter in the
CLASS object.  I've also tried a pixelmap symbol definition using a .gif
file.  Both appear to work at first, but when you compare it to the
actual line direction it isn't true in all cases.  Has anybody found a
way to accomplish this?  I would appreciate if you could send me any
examples.

 

 

Adam M. Feidt

GIS Coordinator

City of Eden Prairie

8080 Mitchell Rd

Eden Prairie, MN 55344

phone# 952-949-8443

fax# 952-949-8334

 

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


Re: [mapserver-users] symbology showing line direction

2008-02-29 Thread G. Allegri
I mean, shapefile is not topological...

2008/2/29, G. Allegri [EMAIL PROTECTED]:
 A question: how can you derive a line direction by a shp without
  having an appropriate attribute?

  Giovanni

  2008/2/29, Adam Feidt [EMAIL PROTECTED]:

 
  
  
  
   David,
  
Below is my Layer definition.  I've tried a truetype symbol and label
   with the ANGLE parameter set to AUTO or FOLLOW.  Neither case pointed out
   actual shapefile line direction.  I'm reading an ESRI shapefile so there is
   no specific column for line direction.
  
  
  
   LAYER
  
   NAME 'Utilities Sanitary Lines'
  
   DATA './UtilitiesSanitaryLines.shp'
  
   TYPE LINE
  
   STATUS DEFAULT
  
   CLASSITEM Function
  
   CLASS
  
 NAME 'Main'
  
 EXPRESSION 
  
 STYLE
  
   COLOR 85 255 0
  
   SYMBOL plainline
  
   SIZE 2
  
 END
  
   END # end class
  
   CLASS
  
 NAME 'Low Pressure'
  
 EXPRESSION Low Pressure
  
 STYLE
  
   COLOR 255 85 0
  
   SYMBOL plainline
  
   SIZE 2
  
 END
  
   END # end class
  
   CLASS
  
 NAME 'Sub Trunk'
  
 EXPRESSION Sub Trunk
  
 STYLE
  
   COLOR 85 255 0
  
   SYMBOL plainline
  
   SIZE 2
  
 END
  
   END # end class
  
   CLASS
  
 NAME 'Trunk'
  
 EXPRESSION Trunk
  
 STYLE
  
   COLOR 112 168 0
  
   SYMBOL plainline
  
   SIZE 2
  
 END
  
   END # end class
  
   CLASS
  
 NAME 'Force Main'
  
 EXPRESSION forcemain
  
 STYLE
  
   COLOR 255 170 0
  
   SYMBOL 'dashed1'
  
   SIZE 2
  
 END
  
   END # end class
  
   CLASS
  
 NAME 'Private'
  
 EXPRESSION private
  
 STYLE
  
   COLOR 161 33 240
  
   SYMBOL 'plainline'
  
   SIZE 2
  
 END
  
   END # end class
  
 END #end layer
  
  
  
  
  
  
   Adam M. Feidt
  
   GIS Coordinator
  
   City of Eden Prairie
  
   8080 Mitchell Rd
  
   Eden Prairie, MN 55344
  
   phone# 952-949-8443
  
   fax# 952-949-8334
  
  
  
  
  
   From: Fawcett, David [mailto:[EMAIL PROTECTED]
Sent: Friday, February 29, 2008 8:19 AM
To: Adam Feidt; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] symbology showing line direction
  
  
  
  
  
   Adam,
  
  
  
  
  
   What does your layer definition, with the classes look like?
  
  
  
  
  
   Does your data have the direction column properly populated for all 
 records?
  
  
  
  
  
  
   David.
  
  
   -Original Message-
From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED] On Behalf
   Of Adam Feidt
Sent: Friday, February 29, 2008 8:14 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] symbology showing line direction
  
 I'm working in a GeoMoose application and trying to display utility
   lines with the correct line direction via some arrow character or symbol.
   I've had no luck so far.  I've successfully labeled my lines with a 
 truetype
   font character by defining the TEXT  parameter in the CLASS object.  
 I've
   also tried a pixelmap symbol definition using a .gif file.  Both appear to
   work at first, but when you compare it to the actual line direction it 
 isn't
   true in all cases.  Has anybody found a way to accomplish this?  I would
   appreciate if you could send me any examples.
  
  
  
  
  
   Adam M. Feidt
  
   GIS Coordinator
  
   City of Eden Prairie
  
   8080 Mitchell Rd
  
   Eden Prairie, MN 55344
  
   phone# 952-949-8443
  
   fax# 952-949-8334
  
  

  ___
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] symbology showing line direction

2008-02-29 Thread Adam Feidt
I was hoping it could read ESRI's From and To node structure much like
ArcMap, but by the sounds of it that isn't possible. Shapefile geometry
is saved in the Shape column, which I'm guessing is useless in
Mapserver.  What you're saying is I need to create an attribute and
populate it with the angle of the line and use that to define my label
direction?  

Adam M. Feidt
GIS Coordinator
City of Eden Prairie
8080 Mitchell Rd
Eden Prairie, MN 55344
phone# 952-949-8443
fax# 952-949-8334


-Original Message-
From: G. Allegri [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 29, 2008 8:57 AM
To: Adam Feidt
Cc: Fawcett, David; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] symbology showing line direction

A question: how can you derive a line direction by a shp without
having an appropriate attribute?

Giovanni

2008/2/29, Adam Feidt [EMAIL PROTECTED]:




 David,

  Below is my Layer definition.  I've tried a truetype symbol and
label
 with the ANGLE parameter set to AUTO or FOLLOW.  Neither case pointed
out
 actual shapefile line direction.  I'm reading an ESRI shapefile so
there is
 no specific column for line direction.



 LAYER

 NAME 'Utilities Sanitary Lines'

 DATA './UtilitiesSanitaryLines.shp'

 TYPE LINE

 STATUS DEFAULT

 CLASSITEM Function

 CLASS

   NAME 'Main'

   EXPRESSION 

   STYLE

 COLOR 85 255 0

 SYMBOL plainline

 SIZE 2

   END

 END # end class

 CLASS

   NAME 'Low Pressure'

   EXPRESSION Low Pressure

   STYLE

 COLOR 255 85 0

 SYMBOL plainline

 SIZE 2

   END

 END # end class

 CLASS

   NAME 'Sub Trunk'

   EXPRESSION Sub Trunk

   STYLE

 COLOR 85 255 0

 SYMBOL plainline

 SIZE 2

   END

 END # end class

 CLASS

   NAME 'Trunk'

   EXPRESSION Trunk

   STYLE

 COLOR 112 168 0

 SYMBOL plainline

 SIZE 2

   END

 END # end class

 CLASS

   NAME 'Force Main'

   EXPRESSION forcemain

   STYLE

 COLOR 255 170 0

 SYMBOL 'dashed1'

 SIZE 2

   END

 END # end class

 CLASS

   NAME 'Private'

   EXPRESSION private

   STYLE

 COLOR 161 33 240

 SYMBOL 'plainline'

 SIZE 2

   END

 END # end class

   END #end layer






 Adam M. Feidt

 GIS Coordinator

 City of Eden Prairie

 8080 Mitchell Rd

 Eden Prairie, MN 55344

 phone# 952-949-8443

 fax# 952-949-8334





 From: Fawcett, David [mailto:[EMAIL PROTECTED]
  Sent: Friday, February 29, 2008 8:19 AM
  To: Adam Feidt; mapserver-users@lists.osgeo.org
  Subject: RE: [mapserver-users] symbology showing line direction





 Adam,





 What does your layer definition, with the classes look like?





 Does your data have the direction column properly populated for all
records?






 David.


 -Original Message-
  From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf
 Of Adam Feidt
  Sent: Friday, February 29, 2008 8:14 AM
  To: mapserver-users@lists.osgeo.org
  Subject: [mapserver-users] symbology showing line direction

   I'm working in a GeoMoose application and trying to display
utility
 lines with the correct line direction via some arrow character or
symbol.
 I've had no luck so far.  I've successfully labeled my lines with a
truetype
 font character by defining the TEXT  parameter in the CLASS object.
I've
 also tried a pixelmap symbol definition using a .gif file.  Both
appear to
 work at first, but when you compare it to the actual line direction it
isn't
 true in all cases.  Has anybody found a way to accomplish this?  I
would
 appreciate if you could send me any examples.





 Adam M. Feidt

 GIS Coordinator

 City of Eden Prairie

 8080 Mitchell Rd

 Eden Prairie, MN 55344

 phone# 952-949-8443

 fax# 952-949-8334


 ___
  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] symbology showing line direction

2008-02-29 Thread G. Allegri
A question: how can you derive a line direction by a shp without
having an appropriate attribute?

Giovanni

2008/2/29, Adam Feidt [EMAIL PROTECTED]:




 David,

  Below is my Layer definition.  I've tried a truetype symbol and label
 with the ANGLE parameter set to AUTO or FOLLOW.  Neither case pointed out
 actual shapefile line direction.  I'm reading an ESRI shapefile so there is
 no specific column for line direction.



 LAYER

 NAME 'Utilities Sanitary Lines'

 DATA './UtilitiesSanitaryLines.shp'

 TYPE LINE

 STATUS DEFAULT

 CLASSITEM Function

 CLASS

   NAME 'Main'

   EXPRESSION 

   STYLE

 COLOR 85 255 0

 SYMBOL plainline

 SIZE 2

   END

 END # end class

 CLASS

   NAME 'Low Pressure'

   EXPRESSION Low Pressure

   STYLE

 COLOR 255 85 0

 SYMBOL plainline

 SIZE 2

   END

 END # end class

 CLASS

   NAME 'Sub Trunk'

   EXPRESSION Sub Trunk

   STYLE

 COLOR 85 255 0

 SYMBOL plainline

 SIZE 2

   END

 END # end class

 CLASS

   NAME 'Trunk'

   EXPRESSION Trunk

   STYLE

 COLOR 112 168 0

 SYMBOL plainline

 SIZE 2

   END

 END # end class

 CLASS

   NAME 'Force Main'

   EXPRESSION forcemain

   STYLE

 COLOR 255 170 0

 SYMBOL 'dashed1'

 SIZE 2

   END

 END # end class

 CLASS

   NAME 'Private'

   EXPRESSION private

   STYLE

 COLOR 161 33 240

 SYMBOL 'plainline'

 SIZE 2

   END

 END # end class

   END #end layer






 Adam M. Feidt

 GIS Coordinator

 City of Eden Prairie

 8080 Mitchell Rd

 Eden Prairie, MN 55344

 phone# 952-949-8443

 fax# 952-949-8334





 From: Fawcett, David [mailto:[EMAIL PROTECTED]
  Sent: Friday, February 29, 2008 8:19 AM
  To: Adam Feidt; mapserver-users@lists.osgeo.org
  Subject: RE: [mapserver-users] symbology showing line direction





 Adam,





 What does your layer definition, with the classes look like?





 Does your data have the direction column properly populated for all records?






 David.


 -Original Message-
  From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf
 Of Adam Feidt
  Sent: Friday, February 29, 2008 8:14 AM
  To: mapserver-users@lists.osgeo.org
  Subject: [mapserver-users] symbology showing line direction

   I'm working in a GeoMoose application and trying to display utility
 lines with the correct line direction via some arrow character or symbol.
 I've had no luck so far.  I've successfully labeled my lines with a truetype
 font character by defining the TEXT  parameter in the CLASS object.  I've
 also tried a pixelmap symbol definition using a .gif file.  Both appear to
 work at first, but when you compare it to the actual line direction it isn't
 true in all cases.  Has anybody found a way to accomplish this?  I would
 appreciate if you could send me any examples.





 Adam M. Feidt

 GIS Coordinator

 City of Eden Prairie

 8080 Mitchell Rd

 Eden Prairie, MN 55344

 phone# 952-949-8443

 fax# 952-949-8334


 ___
  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] symbology showing line direction

2008-02-29 Thread G. Allegri
Adam, you gave me a little doubt abotu shp line directions and Mapserver...

Could you try to use a simble like this?

SYMBOL

NAME arrow
TYPE TRUETYPE
FONT verdana
CHARACTER '\#62;' # don't use the backslash! (the verdana greater
than tag)
FILLED true
ANTIALIAS true
GAP -10 # the negatation tells MapServer to honor the vector
direction when computing the angle

END

and use it in the STYLE of the layer CLASS

Put attention on the GAP parameter

2008/2/29, Adam Feidt [EMAIL PROTECTED]:
 I was hoping it could read ESRI's From and To node structure much like
  ArcMap, but by the sounds of it that isn't possible. Shapefile geometry
  is saved in the Shape column, which I'm guessing is useless in
  Mapserver.  What you're saying is I need to create an attribute and
  populate it with the angle of the line and use that to define my label
  direction?


  Adam M. Feidt
  GIS Coordinator
  City of Eden Prairie
  8080 Mitchell Rd
  Eden Prairie, MN 55344
  phone# 952-949-8443
  fax# 952-949-8334



 -Original Message-
  From: G. Allegri [mailto:[EMAIL PROTECTED]
  Sent: Friday, February 29, 2008 8:57 AM
  To: Adam Feidt
  Cc: Fawcett, David; mapserver-users@lists.osgeo.org
  Subject: Re: [mapserver-users] symbology showing line direction

  A question: how can you derive a line direction by a shp without
  having an appropriate attribute?

  Giovanni

  2008/2/29, Adam Feidt [EMAIL PROTECTED]:
  
  
  
  
   David,
  
Below is my Layer definition.  I've tried a truetype symbol and
  label
   with the ANGLE parameter set to AUTO or FOLLOW.  Neither case pointed
  out
   actual shapefile line direction.  I'm reading an ESRI shapefile so
  there is
   no specific column for line direction.
  
  
  
   LAYER
  
   NAME 'Utilities Sanitary Lines'
  
   DATA './UtilitiesSanitaryLines.shp'
  
   TYPE LINE
  
   STATUS DEFAULT
  
   CLASSITEM Function
  
   CLASS
  
 NAME 'Main'
  
 EXPRESSION 
  
 STYLE
  
   COLOR 85 255 0
  
   SYMBOL plainline
  
   SIZE 2
  
 END
  
   END # end class
  
   CLASS
  
 NAME 'Low Pressure'
  
 EXPRESSION Low Pressure
  
 STYLE
  
   COLOR 255 85 0
  
   SYMBOL plainline
  
   SIZE 2
  
 END
  
   END # end class
  
   CLASS
  
 NAME 'Sub Trunk'
  
 EXPRESSION Sub Trunk
  
 STYLE
  
   COLOR 85 255 0
  
   SYMBOL plainline
  
   SIZE 2
  
 END
  
   END # end class
  
   CLASS
  
 NAME 'Trunk'
  
 EXPRESSION Trunk
  
 STYLE
  
   COLOR 112 168 0
  
   SYMBOL plainline
  
   SIZE 2
  
 END
  
   END # end class
  
   CLASS
  
 NAME 'Force Main'
  
 EXPRESSION forcemain
  
 STYLE
  
   COLOR 255 170 0
  
   SYMBOL 'dashed1'
  
   SIZE 2
  
 END
  
   END # end class
  
   CLASS
  
 NAME 'Private'
  
 EXPRESSION private
  
 STYLE
  
   COLOR 161 33 240
  
   SYMBOL 'plainline'
  
   SIZE 2
  
 END
  
   END # end class
  
 END #end layer
  
  
  
  
  
  
   Adam M. Feidt
  
   GIS Coordinator
  
   City of Eden Prairie
  
   8080 Mitchell Rd
  
   Eden Prairie, MN 55344
  
   phone# 952-949-8443
  
   fax# 952-949-8334
  
  
  
  
  
   From: Fawcett, David [mailto:[EMAIL PROTECTED]
Sent: Friday, February 29, 2008 8:19 AM
To: Adam Feidt; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] symbology showing line direction
  
  
  
  
  
   Adam,
  
  
  
  
  
   What does your layer definition, with the classes look like?
  
  
  
  
  
   Does your data have the direction column properly populated for all
  records?
  
  
  
  
  
  
   David.
  
  
   -Original Message-
From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED] On Behalf
   Of Adam Feidt
Sent: Friday, February 29, 2008 8:14 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] symbology showing line direction
  
 I'm working in a GeoMoose application and trying to display
  utility
   lines with the correct line direction via some arrow character or
  symbol.
   I've had no luck so far

Re: [mapserver-users] symbology showing line direction

2008-02-29 Thread G. Allegri
About GAP: 
http://mapserver.gis.umn.edu/docs/reference/symbology/referencemanual-all-pages

2008/2/29, G. Allegri [EMAIL PROTECTED]:
 Adam, you gave me a little doubt abotu shp line directions and Mapserver...

  Could you try to use a simble like this?

  SYMBOL

 NAME arrow
 TYPE TRUETYPE
 FONT verdana
 CHARACTER '\#62;' # don't use the backslash! (the verdana greater
  than tag)
 FILLED true
 ANTIALIAS true
 GAP -10 # the negatation tells MapServer to honor the vector
  direction when computing the angle

  END

  and use it in the STYLE of the layer CLASS

  Put attention on the GAP parameter


  2008/2/29, Adam Feidt [EMAIL PROTECTED]:
   I was hoping it could read ESRI's From and To node structure much like
ArcMap, but by the sounds of it that isn't possible. Shapefile geometry
is saved in the Shape column, which I'm guessing is useless in
Mapserver.  What you're saying is I need to create an attribute and
populate it with the angle of the line and use that to define my label
direction?
  
  
Adam M. Feidt
GIS Coordinator
City of Eden Prairie
8080 Mitchell Rd
Eden Prairie, MN 55344
phone# 952-949-8443
fax# 952-949-8334
  
  
  
   -Original Message-
From: G. Allegri [mailto:[EMAIL PROTECTED]
Sent: Friday, February 29, 2008 8:57 AM
To: Adam Feidt
Cc: Fawcett, David; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] symbology showing line direction
  
A question: how can you derive a line direction by a shp without
having an appropriate attribute?
  
Giovanni
  
2008/2/29, Adam Feidt [EMAIL PROTECTED]:




 David,

  Below is my Layer definition.  I've tried a truetype symbol and
label
 with the ANGLE parameter set to AUTO or FOLLOW.  Neither case pointed
out
 actual shapefile line direction.  I'm reading an ESRI shapefile so
there is
 no specific column for line direction.



 LAYER

 NAME 'Utilities Sanitary Lines'

 DATA './UtilitiesSanitaryLines.shp'

 TYPE LINE

 STATUS DEFAULT

 CLASSITEM Function

 CLASS

   NAME 'Main'

   EXPRESSION 

   STYLE

 COLOR 85 255 0

 SYMBOL plainline

 SIZE 2

   END

 END # end class

 CLASS

   NAME 'Low Pressure'

   EXPRESSION Low Pressure

   STYLE

 COLOR 255 85 0

 SYMBOL plainline

 SIZE 2

   END

 END # end class

 CLASS

   NAME 'Sub Trunk'

   EXPRESSION Sub Trunk

   STYLE

 COLOR 85 255 0

 SYMBOL plainline

 SIZE 2

   END

 END # end class

 CLASS

   NAME 'Trunk'

   EXPRESSION Trunk

   STYLE

 COLOR 112 168 0

 SYMBOL plainline

 SIZE 2

   END

 END # end class

 CLASS

   NAME 'Force Main'

   EXPRESSION forcemain

   STYLE

 COLOR 255 170 0

 SYMBOL 'dashed1'

 SIZE 2

   END

 END # end class

 CLASS

   NAME 'Private'

   EXPRESSION private

   STYLE

 COLOR 161 33 240

 SYMBOL 'plainline'

 SIZE 2

   END

 END # end class

   END #end layer






 Adam M. Feidt

 GIS Coordinator

 City of Eden Prairie

 8080 Mitchell Rd

 Eden Prairie, MN 55344

 phone# 952-949-8443

 fax# 952-949-8334





 From: Fawcett, David [mailto:[EMAIL PROTECTED]
  Sent: Friday, February 29, 2008 8:19 AM
  To: Adam Feidt; mapserver-users@lists.osgeo.org
  Subject: RE: [mapserver-users] symbology showing line direction





 Adam,





 What does your layer definition, with the classes look like

RE: [mapserver-users] symbology showing line direction

2008-02-29 Thread Fawcett, David
Adam, 
 
I am quite sure that MapServer is not going to read the line topology.
To display direction, you will need to add an attribute for flow
direction and populate it.  You would then use an expression for each
class that combined both the pipe type and the direction.  (Maybe use -1
and 1 for values?)
 
Something like ('[FUNCTION]' = 'Main' AND [DIRECTION] = -1)   
 
I haven't tested this.  Note the difference in quoting for string fields
vs number fields.  
 
David.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Adam Feidt
Sent: Friday, February 29, 2008 8:43 AM
To: Fawcett, David; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] symbology showing line direction



David,

 Below is my Layer definition.  I've tried a truetype symbol
and label with the ANGLE parameter set to AUTO or FOLLOW.  Neither case
pointed out actual shapefile line direction.  I'm reading an ESRI
shapefile so there is no specific column for line direction.

 

LAYER

NAME 'Utilities Sanitary Lines'

DATA './UtilitiesSanitaryLines.shp'

TYPE LINE

STATUS DEFAULT

CLASSITEM Function

CLASS

  NAME 'Main'

  EXPRESSION 

  STYLE

COLOR 85 255 0

SYMBOL plainline

SIZE 2

  END

END # end class

CLASS

  NAME 'Low Pressure'

  EXPRESSION Low Pressure

  STYLE

COLOR 255 85 0

SYMBOL plainline

SIZE 2

  END

END # end class

CLASS

  NAME 'Sub Trunk'

  EXPRESSION Sub Trunk

  STYLE

COLOR 85 255 0

SYMBOL plainline

SIZE 2

  END

END # end class

CLASS

  NAME 'Trunk'

  EXPRESSION Trunk

  STYLE

COLOR 112 168 0

SYMBOL plainline

SIZE 2

  END

END # end class

CLASS

  NAME 'Force Main'

  EXPRESSION forcemain

  STYLE

COLOR 255 170 0

SYMBOL 'dashed1'

SIZE 2

  END

END # end class

CLASS

  NAME 'Private'

  EXPRESSION private

  STYLE

COLOR 161 33 240

SYMBOL 'plainline'

SIZE 2

  END

END # end class

  END #end layer

 

 

Adam M. Feidt

GIS Coordinator

City of Eden Prairie

8080 Mitchell Rd

Eden Prairie, MN 55344

phone# 952-949-8443

fax# 952-949-8334

 

From: Fawcett, David [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 29, 2008 8:19 AM
To: Adam Feidt; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] symbology showing line direction

 

Adam, 

 

What does your layer definition, with the classes look like?

 

Does your data have the direction column properly populated for
all records?  

 

David.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Adam Feidt
Sent: Friday, February 29, 2008 8:14 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] symbology showing line
direction

  I'm working in a GeoMoose application and trying
to display utility lines with the correct line direction via some arrow
character or symbol.  I've had no luck so far.  I've successfully
labeled my lines with a truetype font character by defining the TEXT 
parameter in the CLASS object.  I've also tried a pixelmap symbol
definition using a .gif file.  Both appear to work at first, but when
you compare it to the actual line direction it isn't true in all cases.
Has anybody found a way to accomplish this?  I would appreciate if you
could send

RE: [mapserver-users] symbology showing line direction

2008-02-29 Thread Adam Feidt
Yes it does work.  The negative GAP value seems to be the solution.  I
did not compare it extensively, but the areas I checked do appear
correct.

Adam M. Feidt
GIS Coordinator
City of Eden Prairie
8080 Mitchell Rd
Eden Prairie, MN 55344
phone# 952-949-8443
fax# 952-949-8334


-Original Message-
From: G. Allegri [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 29, 2008 11:49 AM
To: Fawcett, David
Cc: Adam Feidt; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] symbology showing line direction

David, I had your opinion too, but Adam seems to have solved it. Adam,
do you confirm that you can display correctly directions?

2008/2/29, Fawcett, David [EMAIL PROTECTED]:


 Adam,

 I am quite sure that MapServer is not going to read the line topology.
To
 display direction, you will need to add an attribute for flow
direction and
 populate it.  You would then use an expression for each class that
combined
 both the pipe type and the direction.  (Maybe use -1 and 1 for
values?)

 Something like ('[FUNCTION]' = 'Main' AND [DIRECTION] = -1)

 I haven't tested this.  Note the difference in quoting for string
fields vs
 number fields.

 David.


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf
 Of Adam Feidt
 Sent: Friday, February 29, 2008 8:43 AM
 To: Fawcett, David; mapserver-users@lists.osgeo.org
 Subject: RE: [mapserver-users] symbology showing line direction




 David,

  Below is my Layer definition.  I've tried a truetype symbol and
label
 with the ANGLE parameter set to AUTO or FOLLOW.  Neither case pointed
out
 actual shapefile line direction.  I'm reading an ESRI shapefile so
there is
 no specific column for line direction.



 LAYER

 NAME 'Utilities Sanitary Lines'

 DATA './UtilitiesSanitaryLines.shp'

 TYPE LINE

 STATUS DEFAULT

 CLASSITEM Function

 CLASS

   NAME 'Main'

   EXPRESSION 

   STYLE

 COLOR 85 255 0

 SYMBOL plainline

 SIZE 2

   END

 END # end class

 CLASS

   NAME 'Low Pressure'

   EXPRESSION Low Pressure

   STYLE

 COLOR 255 85 0

 SYMBOL plainline

 SIZE 2

   END

 END # end class

 CLASS

   NAME 'Sub Trunk'

   EXPRESSION Sub Trunk

   STYLE

 COLOR 85 255 0

 SYMBOL plainline

 SIZE 2

   END

 END # end class

 CLASS

   NAME 'Trunk'

   EXPRESSION Trunk

   STYLE

 COLOR 112 168 0

 SYMBOL plainline

 SIZE 2

   END

 END # end class

 CLASS

   NAME 'Force Main'

   EXPRESSION forcemain

   STYLE

 COLOR 255 170 0

 SYMBOL 'dashed1'

 SIZE 2

   END

 END # end class

 CLASS

   NAME 'Private'

   EXPRESSION private

   STYLE

 COLOR 161 33 240

 SYMBOL 'plainline'

 SIZE 2

   END

 END # end class

   END #end layer






 Adam M. Feidt

 GIS Coordinator

 City of Eden Prairie

 8080 Mitchell Rd

 Eden Prairie, MN 55344

 phone# 952-949-8443

 fax# 952-949-8334





 From: Fawcett, David [mailto:[EMAIL PROTECTED]
 Sent: Friday, February 29, 2008 8:19 AM
 To: Adam Feidt; mapserver-users@lists.osgeo.org
 Subject: RE: [mapserver-users] symbology showing line direction




 Adam,





 What does your layer definition, with the classes look like?





 Does your data have the direction column properly populated for all
records?






 David.


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf
 Of Adam Feidt
 Sent: Friday, February 29, 2008 8:14 AM
 To: mapserver-users@lists.osgeo.org
 Subject: [mapserver-users] symbology showing line direction

   I'm working in a GeoMoose application and trying to display
utility
 lines with the correct line direction via some arrow character or
symbol.
 I've had no luck so far.  I've successfully labeled my lines with a
truetype
 font character by defining the TEXT  parameter in the CLASS object.
I've
 also tried a pixelmap symbol definition using a .gif file.  Both
appear to
 work at first, but when you compare it to the actual line direction it
isn't
 true in all cases.  Has anybody found a way to accomplish this?  I
would
 appreciate if you could send me any examples.





 Adam M. Feidt