I have table in PostGIS with lon, lat, distance and azimuth columns.
I want to make Geoserver draw a line through first point with given length and direction. I can turn lon and lat to geometry in PostGIS with ST_MakePoint command.
Is it possible to draw line using only SLD with first point and attribute values or do I need to calculate second point manually and turn it to geometry too?
Best Answer
Use the GeoServer SQL view feature, and SQL's ST_Project like,
If you have long lines and want to plot them as great circles on a flat map, you might want to densify them with ST_Segmentize in geographic space to show them as great circles.
Added