|
From: Jody G. <jod...@gm...> - 2024-08-19 22:54:13
|
The postgis function https://postgis.net/docs/ST_ForcePolygonCCW.html is one example. Not sure if we have a geotools mapping for that, it would be a good function to add for this use case. - - Jody Garnett On Mon, Aug 19, 2024 at 2:06 PM Fernando Quadro <fsq...@gm...> wrote: > Ian, > > Yes, it is a line, and how can I invent it so that the information stays > on the "inside"? > > Best regards, > > Fernando Quadro > http://www.fernandoquadro.com.br > https://www.linkedin.com/in/fernandoquadro/ > > > Em qui., 15 de ago. de 2024 às 06:02, Ian Turton <ijt...@gm...> > escreveu: > >> If they are lines then you need to reverse the ones where they are on the >> "wrong" side >> >> Ian >> >> On Wed, 14 Aug 2024 at 23:03, Jody Garnett <jod...@gm...> >> wrote: >> >>> I wonder if you can do a label offset with a negative offset. You then >>> need to ensure the polygons all wind CW. Or positive offset with CCW >>> winding. >>> >>> What is your data in? Can you check the geometry? >>> >>> - - >>> Jody Garnett >>> >>> >>> On Wed, Aug 14, 2024 at 1:10 PM Fernando Quadro <fsq...@gm...> >>> wrote: >>> >>>> Hello everyone. I'm creating an SLD for lots and blocks, but I'd like >>>> the measurements to always be within the polygon, and if you notice, some >>>> are outside the polygon. >>>> >>>> [image: unnamed.png] >>>> >>>> Does anyone know if it's possible to do this, or if it's a limitation? >>>> >>>> The SLD I'm generating is this: >>>> >>>> <?xml version="1.0" encoding="UTF-8"?> >>>> <StyledLayerDescriptor xmlns="http://www.opengis.net/sld" >>>> version="1.1.0" xsi:schemaLocation="http://www.opengis.net/sld >>>> http://schemas.opengis.net/sld/1.1.0/StyledLayerDescriptor.xsd" >>>> xmlns:se="http://www.opengis.net/se" xmlns:xlink=" >>>> http://www.w3.org/1999/xlink" xmlns:xsi=" >>>> http://www.w3.org/2001/XMLSchema-instance" xmlns:ogc=" >>>> http://www.opengis.net/ogc"> >>>> <NamedLayer> >>>> <se:Name>geo_medidalote</se:Name> >>>> <UserStyle> >>>> <se:Name>medidalote</se:Name> >>>> >>>> <se:FeatureTypeStyle> >>>> >>>> <se:Rule> >>>> >>>> >>>> <se:LineSymbolizer> >>>> <se:Stroke> >>>> <se:SvgParameter name="stroke">#000000</se:SvgParameter> >>>> <se:SvgParameter name="stroke-opacity">0</se:SvgParameter> >>>> <se:SvgParameter name="stroke-width">1</se:SvgParameter> >>>> <se:SvgParameter >>>> name="stroke-linejoin">bevel</se:SvgParameter> >>>> <se:SvgParameter >>>> name="stroke-linecap">square</se:SvgParameter> >>>> </se:Stroke> >>>> >>>> </se:LineSymbolizer> >>>> >>>> </se:Rule> >>>> >>>> <se:Rule> >>>> >>>> <MaxScaleDenominator>8000</MaxScaleDenominator> >>>> >>>> <se:TextSymbolizer> >>>> >>>> <se:Label> >>>> <ogc:PropertyName>comprimento</ogc:PropertyName> >>>> </se:Label> >>>> >>>> <se:Font> >>>> <se:SvgParameter >>>> name="font-family">Arial</se:SvgParameter> >>>> <se:SvgParameter name="font-size">8</se:SvgParameter> >>>> </se:Font> >>>> >>>> <se:LabelPlacement> >>>> >>>> <se:LinePlacement> >>>> >>>> <se:PerpendicularOffset>10</se:PerpendicularOffset> >>>> <se:GeneralizeLine>true</se:GeneralizeLine> >>>> </se:LinePlacement> >>>> >>>> <VendorOption name="forceLeftToRight">false</VendorOption> >>>> >>>> </se:LabelPlacement> >>>> >>>> <se:Fill> >>>> <se:SvgParameter name="fill">#323232</se:SvgParameter> >>>> </se:Fill> >>>> >>>> </se:TextSymbolizer> >>>> >>>> </se:Rule> >>>> >>>> </se:FeatureTypeStyle> >>>> </UserStyle> >>>> </NamedLayer> >>>> </StyledLayerDescriptor> >>>> >>>> Best regards, >>>> >>>> Fernando Quadro >>>> http://www.fernandoquadro.com.br >>>> https://www.linkedin.com/in/fernandoquadro/ >>>> _______________________________________________ >>>> 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 >>>> >>>> >>>> Geo...@li... >>>> 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 >>> >>> >>> Geo...@li... >>> https://lists.sourceforge.net/lists/listinfo/geoserver-users >>> >> >> >> -- >> Ian Turton >> > |