| I've one CIRCULARSTRING in my layer. When I style that layer with the following CSS style I got a perfect ellipse, as shown in figure 1:
temp_table.sql But if I add a rule, based on geometry dimension (such as the following one), I got bad shape, as shown in figure 2: [dimension(geometry) <> 0] { stroke: #000000; } I've also noticed that if I use the same style but in SLD format I got a perfect ellipse. <?xml version="1.0" encoding="ISO-8859-1"?> <StyledLayerDescriptor version="1.0.0" xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd" xmlns="http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <NamedLayer> <Name>temp_sld</Name> <UserStyle> <Title>A teal generic style</Title> <FeatureTypeStyle> <Rule> <Title>teal polygon</Title> <ogc:Filter> <ogc:PropertyIsNotEqualTo> <ogc:Function name="dimension"> <ogc:Function name="geometry"/> </ogc:Function> <ogc:Literal>0</ogc:Literal> </ogc:PropertyIsNotEqualTo> </ogc:Filter> <PolygonSymbolizer> <Stroke> <CssParameter name="stroke">#000000</CssParameter> </Stroke> </PolygonSymbolizer> </Rule> </FeatureTypeStyle> </UserStyle> </NamedLayer> </StyledLayerDescriptor> Here is a sample ellipse data if you want to test it your self, and I've also attached a dump of the table: CIRCULARSTRING(25.5 26.9517967926059,25.6557529739215 26.9295998611529,25.7960927648805 26.8652060384337,25.9071800935463 26.7649816765675,25.9781433939001 26.6388146606802,26.0021409704621 26.4991166033321,25.9769892300519 26.3595845178871,25.9053125741098 26.2338520319581,25.7942251921645 26.1341647984092,25.6545987238651 26.0702055376065,25.5 26.048174597808,25.3454012761349 26.0702055376065,25.2057748078355 26.1341647984092,25.0946874258902 26.2338520319581,25.0230107699481 26.3595845178871,24.9978590295379 26.4991166033321,25.0218566060999 26.6388146606802,25.0928199064538 26.7649816765675,25.2039072351195 26.8652060384337,25.3442470260785 26.9295998611529,25.5 26.9517967926059) |