[mapserver-users] Re: mapserver-users Digest, Vol 23, Issue 61 (Out of Office)

Heather Wirth HWIRTH at co.benton.mn.us
Fri Dec 18 12:34:59 PST 2009


I will be out of the office until Monday, January 4, 2010.  I am sorry
for the inconvenience, and I will reply to your message as soon as
possible.  Thank you.

Heather Wirth

>>> mapserver-users 12/18/09 13:58 >>>

Send mapserver-users mailing list submissions to
	mapserver-users at lists.osgeo.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.osgeo.org/mailman/listinfo/mapserver-users
or, via email, send a message with subject or body 'help' to
	mapserver-users-request at lists.osgeo.org

You can reach the person managing the list at
	mapserver-users-owner at lists.osgeo.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of mapserver-users digest..."


Today's Topics:

   1. attribute bindings for SYMBOL and FONT? (Brent Fraser)
   2. Re: attribute bindings for SYMBOL and FONT? (Dan Little)
   3. Re: attribute bindings for SYMBOL and FONT? (Yewondwossen Assefa)
   4. Re: attribute bindings for SYMBOL and FONT? (Brent Fraser)
   5. Re: attribute bindings for SYMBOL and FONT? (Brent Fraser)
   6. Re: Lines at Tile borders (Shaz N)
   7. RE: How to draw a circle using MapScript? (Lime, Steve D (DNR))


----------------------------------------------------------------------

Message: 1
Date: Fri, 18 Dec 2009 10:05:28 -0700
From: Brent Fraser <bfraser at geoanalytic.com>
Subject: [mapserver-users] attribute bindings for SYMBOL and FONT?
To: "mapserver-users at lists.osgeo.org"
	<mapserver-users at lists.osgeo.org>
Message-ID: <4B2BB658.6050406 at geoanalytic.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

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



------------------------------

Message: 2
Date: Fri, 18 Dec 2009 09:52:16 -0800 (PST)
From: Dan Little <danlittle at yahoo.com>
Subject: Re: [mapserver-users] attribute bindings for SYMBOL and FONT?
To: Brent Fraser <bfraser at geoanalytic.com>,
	"mapserver-users at lists.osgeo.org"
<mapserver-users at lists.osgeo.org>
Message-ID: <742744.94348.qm at web51405.mail.re2.yahoo.com>
Content-Type: text/plain; charset=us-ascii

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

This would indicate the answer is yes.


----- Original Message ----
> From: Brent Fraser <bfraser at geoanalytic.com>
> To: "mapserver-users at lists.osgeo.org"
<mapserver-users at 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 at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users



      


------------------------------

Message: 3
Date: Fri, 18 Dec 2009 13:02:12 -0500
From: Yewondwossen Assefa <yassefa at dmsolutions.ca>
Subject: Re: [mapserver-users] attribute bindings for SYMBOL and FONT?
To: Brent Fraser <bfraser at geoanalytic.com>
Cc: "mapserver-users at lists.osgeo.org"
	<mapserver-users at lists.osgeo.org>
Message-ID: <4B2BC3A4.6000303 at dmsolutions.ca>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

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 at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>


-- 
----------------------------------------------------------------
Assefa Yewondwossen           
Software Analyst   

Email: assefa at dmsolutions.ca    
http://www.dmsolutions.ca/

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




------------------------------

Message: 4
Date: Fri, 18 Dec 2009 11:05:54 -0700 (Mountain Standard Time)
From: "Brent Fraser" <bfraser at geoanalytic.com>
Subject: Re: [mapserver-users] attribute bindings for SYMBOL and FONT?
To: "Dan Little" <danlittle at yahoo.com>
Cc: "mapserver-users at lists.osgeo.org"
	<mapserver-users at lists.osgeo.org>
Message-ID: <.65.255.239.241.1261159554.squirrel at 65.255.239.241>
Content-Type: text/plain;charset=iso-8859-1

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 <bfraser at geoanalytic.com>
>> To: "mapserver-users at lists.osgeo.org"
<mapserver-users at 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 at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
>
>
>




------------------------------

Message: 5
Date: Fri, 18 Dec 2009 11:10:28 -0700 (Mountain Standard Time)
From: "Brent Fraser" <bfraser at geoanalytic.com>
Subject: Re: [mapserver-users] attribute bindings for SYMBOL and FONT?
To: "Yewondwossen Assefa" <yassefa at dmsolutions.ca>
Cc: "mapserver-users at lists.osgeo.org"
	<mapserver-users at lists.osgeo.org>
Message-ID: <.65.255.239.241.1261159828.squirrel at 65.255.239.241>
Content-Type: text/plain;charset=iso-8859-1

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: assefa at dmsolutions.ca
> http://www.dmsolutions.ca/
>
> Phone: (613) 565-5056 (ext 14)
> Fax:   (613) 565-0925
> ----------------------------------------------------------------




------------------------------

Message: 6
Date: Fri, 18 Dec 2009 23:00:47 +0400
From: Shaz N <geo.engineer123 at gmail.com>
Subject: Re: [mapserver-users] Lines at Tile borders
To: "Lime, Steve D (DNR)" <Steve.Lime at state.mn.us>
Cc: mapserver-users at lists.osgeo.org
Message-ID:
	<d46d8b70912181100h5cd7f3b3r322488cb2ce612c1 at mail.gmail.com>
Content-Type: text/plain; charset="windows-1252"

Alright.. I will try to install a more recent version..and will check
out
the metatiles thingy too.
Thank u.
Regards,
Shaz
On Fri, Dec 18, 2009 at 2:09 AM, Lime, Steve D (DNR)
<Steve.Lime at state.mn.us
> wrote:

>  You might try a more recent version. Either 5.4.2 or 5.6 to see if
the
> bug has been fixed.  I don*t recall off the top of my head*
>
>
>
> Using metatiles (that is, a tile rendered intentionally large and then
> clipped) is one way around problems like this and tiling tools like
> TileCache support that type of processing.
>
>
>
> Steve
>
>
>
> *From:* mapserver-users-bounces at lists.osgeo.org [mailto:
> mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Shaz N
> *Sent:* Wednesday, December 16, 2009 11:35 PM
> *To:* mapserver-users at lists.osgeo.org
> *Subject:* [mapserver-users] Lines at Tile borders
>
>
>
> Dear MapServer users..
>
>
>
> I have an issue with the rendering of lines at tile borders on my map,
> which is exactly like this picture:
>
> http://crschmidt.net/mapping/mapserverbug.png
>
>
>
> Being a new MapServer user, I checked previous threads related to this
> problem and found some suggestions to use TileCache or OpenLayers etc
The
> threads were pretty old (like 2007..2008), so I would like to know if
there
> is any other solution to the problem I am facing now.
>
>
>
> More info:
>
> CLASS
>         NAME 'Others'
>         EXPRESSION ('[class]' eq 'AU' OR '[class]' eq 'GR' OR
'[class]' eq
> 'PV' OR '[class]' eq 'TR')
>         MAXSCALE 32000
>         MINSCALE 16001
>         STYLE
>           COLOR 255 160 122
>           WIDTH 5
>           MINWIDTH 5
>           MAXWIDTH 6
>           ANTIALIAS TRUE
>
>         END
>
> END
>
>
>
> I use version 5. Please advice me on how to proceed. Thank you very
much
>
>
>
> Regards
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.osgeo.org/pipermail/mapserver-users/attachments/20091218/4edec6be/attachment-0001.html

------------------------------

Message: 7
Date: Fri, 18 Dec 2009 13:55:18 -0600
From: "Lime, Steve D (DNR)" <Steve.Lime at state.mn.us>
Subject: RE: [mapserver-users] How to draw a circle using MapScript?
To: Helen Eskina <heskina at ubitech.com>
Cc: "mapserver-users at lists.osgeo.org"
	<mapserver-users at lists.osgeo.org>
Message-ID:
	<A7F7B3043D3BF0438F1206BAA3C9933C028992E6B8 at MNMAIL05.ead.state.mn.us>
Content-Type: text/plain; charset="us-ascii"

Here's an example that draws a 1km diameter two different ways:

  http://maps.dnr.state.mn.us/mapserver_demos/circles.map

It shows two ways to do this. One using a circle layer and the other
using a circle symbol but with different size units (e.g. non-pixel).

Apparently a circle layer takes features consisting of two points where
the points are on the circle and directly opposite one another. Their
mid-point defines the center point. Why I did it this way is a bit of a
mystery but it is what it is... 

The buffer method is also perfectly valid.

Steve

-----Original Message-----
From: Helen Eskina [mailto:heskina at ubitech.com] 
Sent: Friday, December 18, 2009 9:23 AM
To: Lime, Steve D (DNR)
Subject: RE: [mapserver-users] How to draw a circle using MapScript?

Hi Steve,

Thank you for the reply! Looking forward to your example!
Helen

-----Original Message-----
From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us]
Sent: Thursday, December 17, 2009 6:29 PM
To: Lime, Steve D (DNR); Dan Little; Helen Eskina;
mapserver-users at lists.osgeo.org
Subject: RE: [mapserver-users] How to draw a circle using MapScript?

After mulling this over I think I'm wrong. Conceptually it's correct but
the points represent the center and a point on the circle I think. I'll
post a stand-alone example later tonite...

Steve
________________________________________
From: mapserver-users-bounces at lists.osgeo.org
[mapserver-users-bounces at lists.osgeo.org] On Behalf Of Lime, Steve D
(DNR)
[Steve.Lime at state.mn.us]
Sent: Thursday, December 17, 2009 4:30 PM
To: Dan Little; Helen Eskina; mapserver-users at lists.osgeo.org
Subject: RE: [mapserver-users] How to draw a circle using MapScript?

In another approach, I believe MapServer wants you to define a bounding
box for the circle by creating a line shape with the first point at the
UL
coordinate of that box and the second coordinate at the LR coordinate of
the box. So you'd offset your center point .5 KM to create those points.
You can add the resulting shape to the appropriate layer to draw it.

I'll check to make sure, but I think that will work.

Steve

From: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Dan Little
Sent: Thursday, December 17, 2009 3:54 PM
To: Helen Eskina; mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] How to draw a circle using MapScript?

Totally off the cuff....

$shape = ms_shapeObjFromWKT('POINT('+$x+' '+$y+')');
$shape = $shape->buffer($radius);

From: Helen Eskina <heskina at ubitech.com>
To: mapserver-users at lists.osgeo.org
Sent: Thu, December 17, 2009 3:50:20 PM
Subject: [mapserver-users] How to draw a circle using MapScript?
Hello List,

I want to be able to draw a circle dynamically using PHP MapScript. The
circle is defined by the coordinates of the centre and the radius in
kilometers. I realize that the circle is a polygon and I should probably
calculate all points. What is the best way to do it?

I would really appreciate any help!

Thank you,
Helen


No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.427 / Virus Database: 270.14.103/2558 - Release Date:
12/17/09 08:30:00


------------------------------

_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


End of mapserver-users Digest, Vol 23, Issue 61
***********************************************



More information about the MapServer-users mailing list