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
[email protected]
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
[email protected]
You can reach the person managing the list at
[email protected]
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 <[email protected]>
Subject: [mapserver-users] attribute bindings for SYMBOL and FONT?
To: "[email protected]"
<[email protected]>
Message-ID: <[email protected]>
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 <[email protected]>
Subject: Re: [mapserver-users] attribute bindings for SYMBOL and FONT?
To: Brent Fraser <[email protected]>,
"[email protected]"
<[email protected]>
Message-ID: <[email protected]>
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 <[email protected]>
> To: "[email protected]"
<[email protected]>
> 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
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
------------------------------
Message: 3
Date: Fri, 18 Dec 2009 13:02:12 -0500
From: Yewondwossen Assefa <[email protected]>
Subject: Re: [mapserver-users] attribute bindings for SYMBOL and FONT?
To: Brent Fraser <[email protected]>
Cc: "[email protected]"
<[email protected]>
Message-ID: <[email protected]>
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
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
--
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst
Email: [email protected]
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" <[email protected]>
Subject: Re: [mapserver-users] attribute bindings for SYMBOL and FONT?
To: "Dan Little" <[email protected]>
Cc: "[email protected]"
<[email protected]>
Message-ID: <[email protected]>
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 <[email protected]>
>> To: "[email protected]"
<[email protected]>
>> 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
>> [email protected]
>> 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" <[email protected]>
Subject: Re: [mapserver-users] attribute bindings for SYMBOL and FONT?
To: "Yewondwossen Assefa" <[email protected]>
Cc: "[email protected]"
<[email protected]>
Message-ID: <[email protected]>
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: [email protected]
> 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 <[email protected]>
Subject: Re: [mapserver-users] Lines at Tile borders
To: "Lime, Steve D (DNR)" <[email protected]>
Cc: [email protected]
Message-ID:
<[email protected]>
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)
<[email protected]
> 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:* [email protected] [mailto:
> [email protected]] *On Behalf Of *Shaz N
> *Sent:* Wednesday, December 16, 2009 11:35 PM
> *To:* [email protected]
> *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)" <[email protected]>
Subject: RE: [mapserver-users] How to draw a circle using MapScript?
To: Helen Eskina <[email protected]>
Cc: "[email protected]"
<[email protected]>
Message-ID:
<a7f7b3043d3bf0438f1206baa3c9933c028992e...@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:[email protected]]
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:[email protected]]
Sent: Thursday, December 17, 2009 6:29 PM
To: Lime, Steve D (DNR); Dan Little; Helen Eskina;
[email protected]
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: [email protected]
[[email protected]] On Behalf Of Lime, Steve D
(DNR)
[[email protected]]
Sent: Thursday, December 17, 2009 4:30 PM
To: Dan Little; Helen Eskina; [email protected]
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: [email protected]
[mailto:[email protected]] On Behalf Of Dan Little
Sent: Thursday, December 17, 2009 3:54 PM
To: Helen Eskina; [email protected]
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 <[email protected]>
To: [email protected]
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
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users
End of mapserver-users Digest, Vol 23, Issue 61
***********************************************
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users