Re: [Geoserver-users] SLD drawing order
Thank you for your questions. My replies to each follow: * Did you try switching the sorting direction, was the result still not what you expected? Yes, I tried many different approaches and the results never varied. * Could you show us actual vs expected result? Within this layer, we have multiple classes designated by the gs field. For instance, PA, LA, etc. We would like that in the few instance in which two point fall in the same location for the well designated as PA to draw rather than the one designated as LA. To do this, we tried the sorting option descending on the gs field. * Is your data source a shapefile? Yes, the data source is a shapefile. Also, as a further test, what happens if just before closing your Graphic tag you add this: Adding the opacity doesn’t make the other feature appear. I just discovered something ever more peculiar that may be the cause of the issue. If I completely remove the rule with LA, the point in the same location doesn’t draw. However, if I execute a CQL query, it suddenly appears. I am now further baffled. Thank you, Todd Fagin Oklahoma Natural Heritage Inventory/ Oklahoma Biological Survey From: Andrea Aime [mailto:andrea.a...@geo-solutions.it] Sent: Sunday, September 2, 2018 2:12 AM To: Fagin, Todd D. Cc: GeoServer Mailing List List Subject: Re: [Geoserver-users] SLD drawing order Hi, a few questions to try get this sorted out: * Did you try switching the sorting direction, was the result still not what you expected? * Could you show us actual vs expected result? * Is your data source a shapefile? Also, as a further test, what happens if just before closing your Graphic tag you add this: 0.99 On Fri, Aug 31, 2018 at 10:57 PM Fagin, Todd D. mailto:tfa...@ou.edu>> wrote: Greetings, I know this is an issue that has been addressed before, but we are having some issues and am hoping for guidance. We have a point layer that has, in at least one instance, two points at the exact some location. Optimally, if would be best if both symbols rendered in a “stacked” fashion. However, only one of the features is showing. The next best option would be to prioritize the point drawn based on attribute value. We have used the tag, but the rendering is still not placing priority as we have indicated. I have a snippet of the SLD below. Any suggestions would be greatly appreciated. Type 1 Type 1 75 gs LA image/svg+xml 10 Type 2 Type 2 75 gs PA image/svg+xml 16 Thank you, Todd Todd Fagin Oklahoma Natural Heritage Inventory/ Oklahoma Biological Survey -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot<https://urldefense.proofpoint.com/v2/url?u=http-3A__sdm.link_slashdot=DwMFaQ=qKdtBuuu6dQK9MsRUVJ2DPXW6oayO8fu4TfEHS8sGNk=5fn9Z6IrrvMEqCEFIvviYg=0StXmC9OM4SHOlDHUtLL3WW_zmQYtsgmkzbvkxb7Yuk=gODXQlXVrPgy8Hd5DRwhDJnxSpI3YenURN7OHdL50og=>___ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.ianturton.com_talks_foss4g.html-23_=DwMFaQ=qKdtBuuu6dQK9MsRUVJ2DPXW6oayO8fu4TfEHS8sGNk=5fn9Z6IrrvMEqCEFIvviYg=0StXmC9OM4SHOlDHUtLL3WW_zmQYtsgmkzbvkxb7Yuk=cxb2qk7hC1avNLAzsP8mOr_juo9QHjQxB0lwOref0bY=> - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html<https://urldefense.proofpoint.com/v2/url?u=http-3A__geoserver.org_comm_userlist-2Dguidelines.html=DwMFaQ=qKdtBuuu6dQK9MsRUVJ2DPXW6oayO8fu4TfEHS8sGNk=5fn9Z6IrrvMEqCEFIvviYg=0StXmC9OM4SHOlDHUtLL3WW_zmQYtsgmkzbvkxb7Yuk=QA9Uh5f1uY9pFDffYt9aP1u-Bb7pbi2JzMKiqZUXUSQ=> If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_geoserver_geoserver_wiki_Successfully-2Drequesting-2Dand-2Dintegrating-2Dnew-2Dfeatures-2Dand-2Dimprovements-2Din-2DGeoServer=DwMFaQ=qKdtBuuu6dQK9MsRUVJ2DPXW6oayO8fu4TfEHS8
Re: [Geoserver-users] SLD drawing order
Thank you for your reply. I am still having problems, though, which can almost guarantee fall under the “user error” category. I have now placed the two rules (I actually have more than two, but in my snippet below I have simplified it) into the same . I have added and set it to the field gs and specified descending order. If I understand it correctly, this should cause the values PA to paint before LA since it is descending. I have also tried doing this on a numeric field, as well. Again, any guidance would be greatly appreciated. And thanks again for your assistance. I know I am at least on the right track. Type 1 Type 1 75 gs LA image/svg+xml 10 Type 2 Type 2 type 75 gs PA image/svg+xml 16 gs D Todd Todd Fagin Oklahoma Natural Heritage Inventory/ Oklahoma Biological Survey From: Andrea Aime [mailto:andrea.a...@geo-solutions.it] Sent: Saturday, September 1, 2018 6:18 AM To: Fagin, Todd D. Cc: GeoServer Mailing List List Subject: Re: [Geoserver-users] SLD drawing order Best to use the vendor extension to do data sorting in that case: http://docs.geoserver.org/stable/en/user/styling/sld/extensions/z-order/syntax.html<https://urldefense.proofpoint.com/v2/url?u=http-3A__docs.geoserver.org_stable_en_user_styling_sld_extensions_z-2Dorder_syntax.html=DwMFaQ=qKdtBuuu6dQK9MsRUVJ2DPXW6oayO8fu4TfEHS8sGNk=5fn9Z6IrrvMEqCEFIvviYg=mg-2EHKKYH5qOX0HWWQCbB8mrSjKablJ0GV2LV4ytB8=conAGuqUM-IHdY2ySSF3neH0x2bLCNrvk6_p6RwaQ6Y=> Cheers Andrea On Fri, Aug 31, 2018 at 11:57 PM Fagin, Todd D. mailto:tfa...@ou.edu>> wrote: Greetings, I know this is an issue that has been addressed before, but we are having some issues and am hoping for guidance. We have a point layer that has, in at least one instance, two points at the exact some location. Optimally, if would be best if both symbols rendered in a “stacked” fashion. However, only one of the features is showing. The next best option would be to prioritize the point drawn based on attribute value. We have used the tag, but the rendering is still not placing priority as we have indicated. I have a snippet of the SLD below. Any suggestions would be greatly appreciated. Type 1 Type 1 75 gs LA image/svg+xml 10 Type 2 Type 2 75 gs PA image/svg+xml 16 Thank you, Todd Todd Fagin Oklahoma Natural Heritage Inventory/ Oklahoma Biological Survey -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot<https://urldefense.proofpoint.com/v2/url?u=http-3A__sdm.link_slashdot=DwMFaQ=qKdtBuuu6dQK9MsRUVJ2DPXW6oayO8fu4TfEHS8sGNk=5fn9Z6IrrvMEqCEFIvviYg=mg-2EHKKYH5qOX0HWWQCbB8mrSjKablJ0GV2LV4ytB8=EQG0w2axnn6zztGqrRx0e6J3KmYzqKd41fHj5YbGiB8=>___ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.ianturton.com_talks_foss4g.html-23_=DwMFaQ=qKdtBuuu6dQK9MsRUVJ2DPXW6oayO8fu4TfEHS8sGNk=5fn9Z6IrrvMEqCEFIvviYg=mg-2EHKKYH5qOX0HWWQCbB8mrSjKablJ0GV2LV4ytB8=yjHCDyQkIQ7J5easLh7dbfgbLnAayR1YXeNb7tSV6_M=> - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html<https://urldefense.proofpoint.com/v2/url?u=http-3A__geoserver.org_comm_userlist-2Dguidelines.html=DwMFaQ=qKdtBuuu6dQK9MsRUVJ2DPXW6oayO8fu4TfEHS8sGNk=5fn9Z6IrrvMEqCEFIvviYg=mg-2EHKKYH5qOX0HWWQCbB8mrSjKablJ0GV2LV4ytB8=POrndqWf1-vAIdTA138gdteve_tVclMN4jLi5xvUaD0=> If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-
[Geoserver-users] SLD drawing order
Greetings, I know this is an issue that has been addressed before, but we are having some issues and am hoping for guidance. We have a point layer that has, in at least one instance, two points at the exact some location. Optimally, if would be best if both symbols rendered in a "stacked" fashion. However, only one of the features is showing. The next best option would be to prioritize the point drawn based on attribute value. We have used the tag, but the rendering is still not placing priority as we have indicated. I have a snippet of the SLD below. Any suggestions would be greatly appreciated. Type 1 Type 1 75 gs LA image/svg+xml 10 Type 2 Type 2 75 gs PA image/svg+xml 16 Thank you, Todd Todd Fagin Oklahoma Natural Heritage Inventory/ Oklahoma Biological Survey -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot___ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users