[Geoserver-users] Where and how are well-known point symbols defined?

Hopefully this is quick and easy question for someone with the knowledge.

GeoServer lets me use well-known shapes for point symbols, e.g. circle
square triangle etc. When rendering large numbers of features I have seen
that these symbols are rendered much faster than external graphics.

I am hoping to extend this range of shapes and hopefully get similar
performance. I assume they are based on SVG, and therefore new shapes I
create in SVG (if simple) will also be fast.

Can anyone tell me where these well-known shapes are defined, and if it's
not obvious how they are defined?

Many thanks

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Where-and-how-are-well-known-point-symbols-defined-tp5003644.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

On Fri, Sep 21, 2012 at 7:14 PM, cheesybiscuits <thomaschristian@anonymised.com> wrote:

Hopefully this is quick and easy question for someone with the knowledge.

GeoServer lets me use well-known shapes for point symbols, e.g. circle
square triangle etc. When rendering large numbers of features I have seen
that these symbols are rendered much faster than external graphics.

I am hoping to extend this range of shapes and hopefully get similar
performance. I assume they are based on SVG, and therefore new shapes I
create in SVG (if simple) will also be fast.

Can anyone tell me where these well-known shapes are defined, and if it’s
not obvious how they are defined?

They are defined in code, not in SVG:
https://github.com/geotools/geotools/blob/master/modules/library/render/src/main/java/org/geotools/renderer/style/ShapeMarkFactory.java
You can use SVG if you want, it can be used as an external graphic, performance
wise it should be similar to any other external graphic, they are all rasterized
and then painted (bit blitted) over the map.

We do have a module allowing to define simple shapes via the WKT syntax
for geometries, but it’s in back in unsupported land in GeoTools, don’t know
when GeoServer will start depending on it

Cheers
Andrea

==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it