Tag Info

New answers tagged

0

I was looking for a very similar thing (but with polygons) and artwork21's answer here directed my research. You can also do the same thing using Geoserver's CSS Extension as per this alternative solution: * { stroke: #800000, #008000; stroke-geometry: [the_geom],[offset(the_geom, -0.005, 0.005)]; stroke-width: 8, 10; stroke-linejoin: round; ...


1

To get two labels you will need two textSymbolizers one for the start point and one for the end point. So it becomes: <TextSymbolizer> <Geometry> <ogc:Function name="endPoint"> <ogc:PropertyName>the_geom</ogc:PropertyName> </ogc:Function> </Geometry> <LabelPlacement> ...


0

So far as I know it is not possible to give aliases in columns with Geoserver. If you are consulting this data on a Web Map through a WMS, it's possible develop a Info Tool with a GetFeatureInfo Template instead - see this article


2

Use the GeoServer SQL view feature, and SQL's ST_Project like, SELECT id, ST_SetSRID(ST_MakeLine( ST_MakePoint(lon,lat), ST_Project( ST_SetSRID(ST_MakePoint(lon,lat),4326)::geography, distance, pi()*azimuth/180.0)::geometry ),4326) AS geom FROM mytable; If you have long lines and want to plot them as great circles on a ...


0

I made it work with changing the encoding to ISO-8859-1 byte[] buffer = Encoding.GetEncoding("ISO-8859-1").GetBytes(sldDocument.ToString()); Not sure why but it works..


2

I figured it out with the prompt from user30184. Nulls are indeed ignored and must be explicitly included in the CSS or SLD filter, something I should have expected... but didn't for some reason (lack of caffeine?). So my CSS snippet becomes: /* buildings */ [aeroway <> 'terminal'],[aeroway is Null]{ fill: #aa1111; } This has been tested and ...



Top 50 recent answers are included