Opened 4 years ago
Closed 18 months ago
#4913 closed enhancement (fixed)
Add curve support to ST_AsSVG
Reported by: | mdavis | Owned by: | robe |
---|---|---|---|
Priority: | medium | Milestone: | PostGIS 3.4.0 |
Component: | postgis | Version: | master |
Keywords: | Cc: |
Description
It should be straightforward to enhance ST_AsSVG to support curved geometries (i.e. CircularString
, CompoundCurve
, CurvePolygon
, MultiCurve
, MultiSurface
). This will provide a PosstGIS-native way to visualize curved geometry, which is not widely supported by other tools.
This can be done easily using SVG elliptical arcs.
Change History (13)
comment:1 by , 4 years ago
Owner: | changed from | to
---|
comment:2 by , 4 years ago
Milestone: | PostGIS 3.1.2 → 3.1.3 |
---|
comment:3 by , 4 years ago
Milestone: | 3.1.3 → PostGIS 3.1.3 |
---|
comment:5 by , 3 years ago
Milestone: | PostGIS 3.1.4 → PostGIS 3.3.0 |
---|---|
Version: | 2.5.x → master |
comment:6 by , 3 years ago
Milestone: | PostGIS 3.3.0 → PostGIS Fund Me |
---|
comment:7 by , 3 years ago
Speaking of which I have this as a TODO for X3D as well #1416. I think it would be implemented in X3d using nurbs https://www.web3d.org/x3d/content/examples/Basic/NURBS/, In particular for 2D the geometries would be expressed as Contour2D and Contour2DPolyine https://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/nurbs.html#X3DParametricGeometryNode It's too bad we don't support 3D curves since Nurbs in X3d could handle those.
comment:8 by , 18 months ago
Milestone: | PostGIS Fund Me → PostGIS 3.5.0 |
---|
Was looking at this while I was looking at my X3D adding curves. I think adding curves to SVG should be much easier than my X3d, so I'll take a stab at this.
I'll push to 3.5.0 for now, and if I get to it before then will push back to 3.4.0
comment:9 by , 18 months ago
Owner: | changed from | to
---|
comment:10 by , 18 months ago
Work in progress here - https://git.osgeo.org/gitea/robe/postgis/src/branch/svg-curve-support
at moment only supports CIRCULARSTRING
comment:12 by , 18 months ago
Milestone: | PostGIS 3.5.0 → PostGIS 3.4.0 |
---|
Milestone renamed