Wicket icon indicating copy to clipboard operation
Wicket copied to clipboard

CircularString support

Open c-martinez opened this issue 8 years ago • 2 comments

As far as I can see, circularstring objects are not yet supported. Are there any plans to support this and other curve types?

c-martinez avatar Oct 27 '17 09:10 c-martinez

I have no plans to add this feature but welcome any pull requests that include it.

arthur-e avatar Oct 27 '17 12:10 arthur-e

Circular strings are not supported on GeoJSON spec. Therefore, any implementation would require to transform such curves to an approximated linear geometry of an arbitrary presicion (see the implementation for google.maps.Circle)

https://github.com/arthur-e/Wicket/blob/ab38c17299596da59d9306dba192cbd7d398d5d5/wicket-gmap3.js#L415-L444

it would be overkill to implement this processing in the frontend, as the conversion from circularstrings can be already done in the backend. For example in PostGIS:

SELECT ST_AsText(ST_CurveToLine(ST_GeomFromText('CIRCULARSTRING(-67 -40,-73 -40,-67 -40)')))

ffflabs avatar Feb 26 '18 17:02 ffflabs