Juka is right, According to documentation here: https://docs.geoserver.org/latest/en/user/styling/sld/tipstricks/mixed-geometries.html#dimension-function
*dimension=2* function won't select geometrycollection, only Polygons and MultiPolygons Maybe you should consider restructuring the data https://docs.geoserver.org/latest/en/user/styling/sld/tipstricks/mixed-geometries.html#restructuring-the-data Rahkonen Jukka (MML) <[email protected]> escreveu no dia terça, 7/04/2020 à(s) 10:04: > Hi, > > The question was about GeometryCollections so all the geometries are of > the same type. > > -Jukka Rahkonen- > > -----Alkuperäinen viesti----- > Lähettäjä: HSt <[email protected]> > Lähetetty: tiistai 7. huhtikuuta 2020 11.40 > Vastaanottaja: [email protected] > Aihe: Re: [Geoserver-users] How to apply different styles for different > geometry types in GeometryCollection? > > Hi, > > you need a different filter, which checks the /geometryType/ of your > geometry column, for example: > > - filter: ${geometryType(yourgeometrycolumn) = 'Point'} > symbolizers: > - point: > ... > > - filter: ${geometryType(yourgeometrycolumn) = 'Polygon'} > symbolizers: > - polygon: > ... > > Cheers, > HSt > > > > -- > Sent from: > http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html > > Rahkonen Jukka (MML) <[email protected]> escreveu no dia terça, 7/04/2020 à(s) 10:04: > Hi, > > The question was about GeometryCollections so all the geometries are of > the same type. > > -Jukka Rahkonen- > > -----Alkuperäinen viesti----- > Lähettäjä: HSt <[email protected]> > Lähetetty: tiistai 7. huhtikuuta 2020 11.40 > Vastaanottaja: [email protected] > Aihe: Re: [Geoserver-users] How to apply different styles for different > geometry types in GeometryCollection? > > Hi, > > you need a different filter, which checks the /geometryType/ of your > geometry column, for example: > > - filter: ${geometryType(yourgeometrycolumn) = 'Point'} > symbolizers: > - point: > ... > > - filter: ${geometryType(yourgeometrycolumn) = 'Polygon'} > symbolizers: > - polygon: > ... > > Cheers, > HSt > > > > -- > Sent from: > http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html > > > _______________________________________________ > 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 > > > [email protected] > https://lists.sourceforge.net/lists/listinfo/geoserver-users > > > _______________________________________________ > 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 > > > [email protected] > https://lists.sourceforge.net/lists/listinfo/geoserver-users > -- www.vfonsecaz.pt
_______________________________________________ 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 [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
