Fawzy,

you can do it in your database, as a view, or as a view layer in
GeoServer using a combo of

st_buildarea(st_curvetoline(<curve>))

for example:

select st_buildarea(st_curvetoline(st_geomfromtext('CIRCULARSTRING(10
50, 60 20, 10 50)',900913))) as a_polygon;

will return a polygon.

Hope this helps.

All the best,
Tõnis


2018-05-31 11:11 GMT+03:00  <[email protected]>:
> Hi Tõnis,
> Thanks a lot for your reply.
>
> Could you please explain how and in which phase should I cast the
> CircularSrings to polygons?
>
> Regards,
> Fawzy
>
> --
> Securely sent with Tutanota. Claim your encrypted mailbox today!
> https://tutanota.com
>
> 30. May 2018 17:35 by [email protected]:
>
> Hi,
>
> did you get an answer to this? I think most probably the issue here is
> that you're styling LineString-type geometries objects as Polygons
> (i.e fill:#nnn). Cast your linestrings to polygons, that way it should
> work.
>
> All the best,
> Tõnis
>
> 2018-05-24 14:18 GMT+03:00 <[email protected]>:
>
> Hi,
> I'm trying to display a range rings, like figure-1. However when I zoom in I
> got the strange figure-2.
> I've build the rings using CIRCULARSTRINGs. I've attached a dump of my
> Postgis table.
> The Styling is something like:
> *{
> stroke: #0000FF;
> stroke-width: 0.5;
> fill: red;
> }
>
> What is the problem?
>
> Regards,
> Fawzy
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Geoserver-users mailing list
>
> Please make sure you read the following two resources before posting to this
> list:
> - Earning your support instead of buying it, but Ian Turton:
> http://www.ianturton.com/talks/foss4g.html#
> - The GeoServer user list posting guidelines:
> http://geoserver.org/comm/userlist-guidelines.html
>
> If you want to request a feature or an improvement, also see this:
> https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
>
>
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to