[mapserver-users] attribute bindings for SYMBOL and FONT?

2009-12-18 Thread Brent Fraser

The short story:

  Is it possible to bind a CLASS's SYMBOL object to an attribute (i.e store the 
symbol name as a attribute of a feature)?  And the LABEL objects FONT name?


The Long Story:
---
I've been working with the yet-to-be-released Feature Editor in Geomoose v2. It 
allows the user to digitize features (points, lines, and polygons) and assign 
attributes, then stores them in PostGIS.


I want to allow simple styling and don't want to have a map file the size of 
War and Peace, so I thought I would use the attribute/item/column binding 
abilities of Mapserver's CLASS and LABEL objects.


To that end, one of the columns the feature table will be style name (or maybe 
feature class), which I'll use to join to a style table (with COLOR, WIDTH, 
etc columns) to get the feature rendered in a simple style.


After a quick review of Mapserver's doc, most of the most important objects can 
be bound to attributes, with two exceptions, SYMBOL 'name' and FONT 'name':


CLASS
  STYLE
ANGLE [angle]
COLOR [color]  #R G B
OUTLINECOLOR [olcolor] #R G B
SIZE [size]
WIDTH [width]  # v5.2

SYMBOL 'name' # in SYMBOLSET

  END #STYLE

  TEXT ([label])
  LABEL
ANGLE  [label_angle]
COLOR [label_color]
OUTLINECOLOR [label_olcolor]
PRIORITY [label_priority]
SIZE [label_size]

FONT 'name' # in FONTSET

  END #LABEL
END # CLASS

How difficult would it be to have attribute binding for SYMBOL and FONT?  I 
suppose I could use mapscript, but I'd rather not.


Thanks!
Brent Fraser

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


Re: [mapserver-users] attribute bindings for SYMBOL and FONT?

2009-12-18 Thread Dan Little
http://research.dmsolutions.ca/?p=118

This would indicate the answer is yes.


- Original Message 
 From: Brent Fraser bfra...@geoanalytic.com
 To: mapserver-users@lists.osgeo.org mapserver-users@lists.osgeo.org
 Sent: Fri, December 18, 2009 11:05:28 AM
 Subject: [mapserver-users] attribute bindings for SYMBOL and FONT?
 
 The short story:
 
   Is it possible to bind a CLASS's SYMBOL object to an attribute (i.e store 
 the 
 symbol name as a attribute of a feature)?  And the LABEL objects FONT name?
 
 The Long Story:
 ---
 I've been working with the yet-to-be-released Feature Editor in Geomoose v2. 
 It 
 allows the user to digitize features (points, lines, and polygons) and assign 
 attributes, then stores them in PostGIS.
 
 I want to allow simple styling and don't want to have a map file the size of 
 War and Peace, so I thought I would use the attribute/item/column binding 
 abilities of Mapserver's CLASS and LABEL objects.
 
 To that end, one of the columns the feature table will be style name (or 
 maybe 
 feature class), which I'll use to join to a style table (with COLOR, WIDTH, 
 etc columns) to get the feature rendered in a simple style.
 
 After a quick review of Mapserver's doc, most of the most important objects 
 can 
 be bound to attributes, with two exceptions, SYMBOL 'name' and FONT 'name':
 
 CLASS
   STYLE
 ANGLE [angle]
 COLOR [color]  #R G B
 OUTLINECOLOR [olcolor] #R G B
 SIZE [size]
 WIDTH [width]  # v5.2
 
 SYMBOL 'name' # in SYMBOLSET
 
   END #STYLE
 
   TEXT ([label])
   LABEL
 ANGLE  [label_angle]
 COLOR [label_color]
 OUTLINECOLOR [label_olcolor]
 PRIORITY [label_priority]
 SIZE [label_size]
 
 FONT 'name' # in FONTSET
 
   END #LABEL
 END # CLASS
 
 How difficult would it be to have attribute binding for SYMBOL and FONT?  I 
 suppose I could use mapscript, but I'd rather not.
 
 Thanks!
 Brent Fraser
 
 ___
 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] attribute bindings for SYMBOL and FONT?

2009-12-18 Thread Yewondwossen Assefa

Brent Fraser wrote:

The short story:

  Is it possible to bind a CLASS's SYMBOL object to an attribute (i.e 
store the symbol name as a attribute of a feature)?  And the LABEL 
objects FONT name?


Binding would be with  style'symbol, instead of class symbol.  Font also 
can be bound.  I will update the docs to reflect that.  The list of 
binding elements is:


For style:
 SIZE, WIDTH, ANGLE, COLOR, OUTLINECOLOR, SYMBOL, OUTLINEWIDTH, OPACITY

for labels: SIZE, ANGLE, COLOR, OUTLINECOLOR, FONT, PRIORITY

regards,


The Long Story:
---
I've been working with the yet-to-be-released Feature Editor in 
Geomoose v2. It allows the user to digitize features (points, lines, 
and polygons) and assign attributes, then stores them in PostGIS.


I want to allow simple styling and don't want to have a map file the 
size of War and Peace, so I thought I would use the 
attribute/item/column binding abilities of Mapserver's CLASS and LABEL 
objects.


To that end, one of the columns the feature table will be style name 
(or maybe feature class), which I'll use to join to a style table 
(with COLOR, WIDTH, etc columns) to get the feature rendered in a 
simple style.


After a quick review of Mapserver's doc, most of the most important 
objects can be bound to attributes, with two exceptions, SYMBOL 'name' 
and FONT 'name':


CLASS
  STYLE
ANGLE [angle]
COLOR [color]  #R G B
OUTLINECOLOR [olcolor] #R G B
SIZE [size]
WIDTH [width]  # v5.2

SYMBOL 'name' # in SYMBOLSET

  END #STYLE

  TEXT ([label])
  LABEL
ANGLE  [label_angle]
COLOR [label_color]
OUTLINECOLOR [label_olcolor]
PRIORITY [label_priority]
SIZE [label_size]

FONT 'name' # in FONTSET

  END #LABEL

END # CLASS

How difficult would it be to have attribute binding for SYMBOL and 
FONT?  I suppose I could use mapscript, but I'd rather not.


Thanks!
Brent Fraser

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




--

Assefa Yewondwossen   
Software Analyst   

Email: ass...@dmsolutions.ca
http://www.dmsolutions.ca/


Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] attribute bindings for SYMBOL and FONT?

2009-12-18 Thread Brent Fraser
Dan,
  Thanks for the reminder: Google First
  It looks like both SYMBOL and FONT use binding.
Brent

 http://research.dmsolutions.ca/?p=118

 This would indicate the answer is yes.


 - Original Message 
 From: Brent Fraser bfra...@geoanalytic.com
 To: mapserver-users@lists.osgeo.org mapserver-users@lists.osgeo.org
 Sent: Fri, December 18, 2009 11:05:28 AM
 Subject: [mapserver-users] attribute bindings for SYMBOL and FONT?

 The short story:
 
   Is it possible to bind a CLASS's SYMBOL object to an attribute (i.e
 store the
 symbol name as a attribute of a feature)?  And the LABEL objects FONT
 name?

 The Long Story:
 ---
 I've been working with the yet-to-be-released Feature Editor in Geomoose
 v2. It
 allows the user to digitize features (points, lines, and polygons) and
 assign
 attributes, then stores them in PostGIS.

 I want to allow simple styling and don't want to have a map file the
 size of
 War and Peace, so I thought I would use the attribute/item/column
 binding
 abilities of Mapserver's CLASS and LABEL objects.

 To that end, one of the columns the feature table will be style name
 (or maybe
 feature class), which I'll use to join to a style table (with COLOR,
 WIDTH,
 etc columns) to get the feature rendered in a simple style.

 After a quick review of Mapserver's doc, most of the most important
 objects can
 be bound to attributes, with two exceptions, SYMBOL 'name' and FONT
 'name':

 CLASS
   STYLE
 ANGLE [angle]
 COLOR [color]  #R G B
 OUTLINECOLOR [olcolor] #R G B
 SIZE [size]
 WIDTH [width]  # v5.2

 SYMBOL 'name' # in SYMBOLSET

   END #STYLE

   TEXT ([label])
   LABEL
 ANGLE  [label_angle]
 COLOR [label_color]
 OUTLINECOLOR [label_olcolor]
 PRIORITY [label_priority]
 SIZE [label_size]

 FONT 'name' # in FONTSET

   END #LABEL
 END # CLASS

 How difficult would it be to have attribute binding for SYMBOL and FONT?
  I
 suppose I could use mapscript, but I'd rather not.

 Thanks!
 Brent Fraser

 ___
 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] attribute bindings for SYMBOL and FONT?

2009-12-18 Thread Brent Fraser
Exellent!  Now on to WFS-T-free feature editing!

 Binding would be with  style'symbol, instead of class symbol.  Font also
 can be bound.  I will update the docs to reflect that.  The list of
 binding elements is:

 For style:
   SIZE, WIDTH, ANGLE, COLOR, OUTLINECOLOR, SYMBOL, OUTLINEWIDTH, OPACITY

 for labels: SIZE, ANGLE, COLOR, OUTLINECOLOR, FONT, PRIORITY

 regards,

 
 Assefa Yewondwossen
 Software Analyst

 Email: ass...@dmsolutions.ca
 http://www.dmsolutions.ca/

 Phone: (613) 565-5056 (ext 14)
 Fax:   (613) 565-0925
 


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