I have a number of points in Postgis that I would like to get rendered as a
circle of a specific radius (in km) around the coordinates of a point. How
would I do that?
--
View this message in context: http://www.nabble.com/Point-as-circle-of-a-specific-radius-(km)-tf4823822.html#a13801347
Sent from the GeoServer - User mailing list archive at Nabble.com.
Hello -
Are you talking about the WMS rendering/styling? Use the SLD PointSymbolizer to create that - try different values for size, fill, stroke and stoke-width:
<?xml version="1.0" encoding="ISO-8859-1"?> points_as_circles Points 0 20000000 circle #000000 #000000 2 1.0 10– Hari Gangadharan
Date: Fri, 16 Nov 2007 13:41:39 -0800
From: vgvallee@anonymised.com.
To: geoserver-users@lists.sourceforge.net
Subject: [Geoserver-users] Point as circle of a specific radius (km)I have a number of points in Postgis that I would like to get rendered as a
circle of a specific radius (in km) around the coordinates of a point. How
would I do that?View this message in context: http://www.nabble.com/Point-as-circle-of-a-specific-radius-(km)-tf4823822.html#a13801347
Sent from the GeoServer - User mailing list archive at Nabble.com.
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Climb to the top of the charts! Play Star Shuffle: the word scramble challenge with star power. Play Now!
Yes and no.
I have a SLD file and I can style point as a circle of whatever radius I
want, either as a literal or as a property.
What I would like to have is a circle but not of screen dimension size but
of map dimension. For example, I want to have a circle of 10km radius around
a point at lon lat (-73,50). Now since my srs is 4326, it would look like an
ellipsoid.
In the picture below, each ellipsoid is a center point with 36 points each
10 degree around the center, all 250km from the center. This is done in
OpenLayers with a JavaScript function modifying each center point
representation. Since I have too many vectors, I'm looking at making it a
WMS layer but I haven't found the way to do this directly with GeoServer.
Is this possible?
http://www.nabble.com/file/p13803112/ol.png
--
View this message in context: http://www.nabble.com/Point-as-circle-of-a-specific-radius-(km)-tf4823822.html#a13803112
Sent from the GeoServer - User mailing list archive at Nabble.com.
vgvallee ha scritto:
Yes and no.
I have a SLD file and I can style point as a circle of whatever radius I
want, either as a literal or as a property.What I would like to have is a circle but not of screen dimension size but
of map dimension. For example, I want to have a circle of 10km radius around
a point at lon lat (-73,50). Now since my srs is 4326, it would look like an
ellipsoid.In the picture below, each ellipsoid is a center point with 36 points each
10 degree around the center, all 250km from the center. This is done in
OpenLayers with a JavaScript function modifying each center point
representation. Since I have too many vectors, I'm looking at making it a
WMS layer but I haven't found the way to do this directly with GeoServer.Is this possible?
Sorry for the late reply.
No it's not possible, GeoServer can do SLD only in pixel units. I don't really know if the SLD itself allows for anything other than pixel units
in fact.
I think the latest version of MapGuide open source is able to style
geometries with dimensions specified in ground units.
Hope this helps
Cheers
Andrea
It is possible to draw a circle with a certain radius.
Size = Radius [m] / Resolution
I made a SLD-file with an extra rule for each possible zoom level:
[..]
<Rule>
<Title>Zoom18</Title>
<MinScaleDenominator>1500</MinScaleDenominator>
<MaxScaleDenominator>3000</MaxScaleDenominator>
<PointSymbolizer>
<Graphic>
<Mark>
...
</Mark>
<Size>
<ogc:Literal>83.73</ogc:Literal>
</Size>
</Graphic>
</PointSymbolizer>
</Rule>
<Rule>
<Title>Zoom19</Title>
<MinScaleDenominator>500</MinScaleDenominator>
<MaxScaleDenominator>1500</MaxScaleDenominator>
<PointSymbolizer>
<Graphic>
<Mark>
...
</Mark>
<Size>
<ogc:Literal>167.46</ogc:Literal>
</Size>
</Graphic>
</PointSymbolizer>
</Rule>
If your are working with OpenLayers, you can figure out Scale and Resolution
with map.getScale() and map.getResolution() for each zoom level.
This anwser comes probably too late, but maybe some others have the same
problem.
--
View this message in context: http://www.nabble.com/Point-as-circle-of-a-specific-radius-(km)-tp13801347p20537735.html
Sent from the GeoServer - User mailing list archive at Nabble.com.