Use a geometry transform to extract the points, and then style them using a
point symbolizer.

So for your Point Symbolizer set the geometry to an expression similar to:
asPoints( geometry )

I had a look through the FunctionList
<http://docs.geotools.org/latest/userguide/library/main/function_list.html> and
did not see an appropriate function. Perhaps you could write one for us
using the function tutorial as a starting point.

http://docs.geotools.org/latest/userguide/tutorial/function.html

There are functions to get the number of points and get pointN but that
does not really help.

--
Jody Garnett

On 1 July 2015 at 13:13, frankmiller <miller.westerb...@web.de> wrote:

> Hi!
>
> I've developed a little tool to visualize some spatial data in some kind of
> heavily extended version of the JMapFrame.
> I've added a Selection Tool (the basic principle is based on the StyleLab
> Demo), but i'm not really happy with my polygon style for selected
> features.
> Now i'm looking for a way to higlight the points of the polygon with little
> squares or circles (like here http://i.imgur.com/iyAsvgI.jpg). Is there a
> way to do that in one style?
>
> My first attempt was to extract the points of all polygons into a new
> FeatureCollection, define a style for the points and add it as a new layer,
> which is invisible in the MaplayerTable. That looked fine, but i don't
> think
> this is the intended way to go (?). My final goal is to enable a simple
> editing of the features by making each point of a polygon selectable and
> moveable with the mouse.
>
> Every hint to the right direction is highly appreciated.
>
> Cheers,
> Max
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/Polygon-Style-Points-as-Squares-tp5213863.html
> Sent from the geotools-gt2-users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Don't Limit Your Business. Reach for the Cloud.
> GigeNET's Cloud Solutions provide you with the tools and support that
> you need to offload your IT needs and focus on growing your business.
> Configured For All Businesses. Start Your Cloud Today.
> https://www.gigenetcloud.com/
> _______________________________________________
> GeoTools-GT2-Users mailing list
> GeoTools-GT2-Users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to