[Geoserver-users] .sld Can nodes be styled? [Sec=Unclassified]

Hi all,

It looks like this is not possible since PointSymbolizer should render on the centre point of a geometry and LineSymbolizer appears to have no capability to show only the nodes. Looks like I’m going to have to try to extract the nodes into a seperate layer at the database level and then render that layer as a point dataset.

If anyone has a better solution please let me know, cheers.

I’ve been having a little look at this - I thought perhaps you could cheat and use the stroke-linejoin and stroke-linecap CssParameters to place points on the nodes, whilst using a stroke-width of zero. However now it seems stroke-linejoin and stroke-linecap are being completely ignored, at least in 1.6 trunk as of a week ago. I tried with linestrings and polygons with no success, but I remember they were working some time ago.

I attached an SLD if anyone wants to verify it - heres the request:
http://localhost/geoserver/wms?bbox=-180,-90,180,90&SLD=http://localhost/test.sld&Format=image/png&request=GetMap&width=250&height=250

Regards,

Miles


Australian Antarctic Division - Commonwealth of Australia
IMPORTANT: This transmission is intended for the addressee only. If you are not the
intended recipient, you are notified that use or dissemination of this communication is
strictly prohibited by Commonwealth law. If you have received this transmission in error,
please notify the sender immediately by e-mail or by telephoning +61 3 6232 3209 and
DELETE the message.
Visit our web site at http://www.antarctica.gov.au/


test.sld (1.29 KB)

Those params were definitely working on 1.5.x? That's odd, I don't think there were many changes in SLD stuff between 1.5 and 1.6.

Chris

Miles Jordan wrote:

Hi all,

    It looks like this is not possible since PointSymbolizer should
    render on the centre point of a geometry and LineSymbolizer appears
    to have no capability to show only the nodes. Looks like I'm going
    to have to try to extract the nodes into a seperate layer at the
    database level and then render that layer as a point dataset.

    If anyone has a better solution please let me know, cheers.
     
I've been having a little look at this - I thought perhaps you could cheat and use the stroke-linejoin and stroke-linecap CssParameters to place points on the nodes, whilst using a stroke-width of zero. However now it seems stroke-linejoin and stroke-linecap are being completely ignored, at least in 1.6 trunk as of a week ago. I tried with linestrings and polygons with no success, but I remember they were working some time ago.
I attached an SLD if anyone wants to verify it - heres the request:
http://localhost/geoserver/wms?bbox=-180,-90,180,90&SLD=http://localhost/test.sld&Format=image/png&request=GetMap&width=250&height=250
Regards,
Miles

___________________________________________________________________________

    Australian Antarctic Division - Commonwealth of Australia
IMPORTANT: This transmission is intended for the addressee only. If you are not the
intended recipient, you are notified that use or dissemination of this communication is
strictly prohibited by Commonwealth law. If you have received this transmission in error,
please notify the sender immediately by e-mail or by telephoning +61 3 6232 3209 and
DELETE the message.
        Visit our web site at http://www.antarctica.gov.au/
___________________________________________________________________________

!DSPAM:4005,46a564e2232401030819293!

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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/

!DSPAM:4005,46a564e2232401030819293!

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

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:4005,46a564e2232401030819293!

Hi Miles,

Verified... this request does not work on 1.6.x.. Scheduling a jira for it.

http://jira.codehaus.org/browse/GEOS-1252

Thanks for the bug report!!

-Justin

Chris Holmes wrote:

Those params were definitely working on 1.5.x? That's odd, I don't think there were many changes in SLD stuff between 1.5 and 1.6.

Chris

Miles Jordan wrote:

Hi all,

    It looks like this is not possible since PointSymbolizer should
    render on the centre point of a geometry and LineSymbolizer appears
    to have no capability to show only the nodes. Looks like I'm going
    to have to try to extract the nodes into a seperate layer at the
    database level and then render that layer as a point dataset.

    If anyone has a better solution please let me know, cheers.
    I've been having a little look at this - I thought perhaps you could cheat and use the stroke-linejoin and stroke-linecap CssParameters to place points on the nodes, whilst using a stroke-width of zero. However now it seems stroke-linejoin and stroke-linecap are being completely ignored, at least in 1.6 trunk as of a week ago. I tried with linestrings and polygons with no success, but I remember they were working some time ago.
I attached an SLD if anyone wants to verify it - heres the request:
http://localhost/geoserver/wms?bbox=-180,-90,180,90&SLD=http://localhost/test.sld&Format=image/png&request=GetMap&width=250&height=250

Regards,
Miles

___________________________________________________________________________

    Australian Antarctic Division - Commonwealth of Australia
IMPORTANT: This transmission is intended for the addressee only. If you are not the
intended recipient, you are notified that use or dissemination of this communication is
strictly prohibited by Commonwealth law. If you have received this transmission in error,
please notify the sender immediately by e-mail or by telephoning +61 3 6232 3209 and
DELETE the message.
        Visit our web site at http://www.antarctica.gov.au/
___________________________________________________________________________

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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/

!DSPAM:4005,46a564e2232401030819293!

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

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:4005,46a564e2232401030819293!

!DSPAM:4007,46a56636233812090977483!

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/

!DSPAM:4007,46a56636233812090977483!

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

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:4007,46a56636233812090977483!

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org

Miles Jordan ha scritto:

Hi all,

    It looks like this is not possible since PointSymbolizer should
    render on the centre point of a geometry and LineSymbolizer appears
    to have no capability to show only the nodes. Looks like I'm going
    to have to try to extract the nodes into a seperate layer at the
    database level and then render that layer as a point dataset.

    If anyone has a better solution please let me know, cheers.
     
I've been having a little look at this - I thought perhaps you could cheat and use the stroke-linejoin and stroke-linecap CssParameters to place points on the nodes, whilst using a stroke-width of zero.

If the stroke-width is 0, then the linecap and linejoin should have
no effect whatsoever... am I missing something?

Cheers
Andrea