Discussion:
[Geoserver-users] MultiGeometry / GeometryCollection circle
Ariel Falduto
2012-01-02 14:07:32 UTC
Permalink
Hi, again guys ...

in need to insert a circle representation into MultiGeometry / GeometryCollection it is possible ???

i try the above snippet and nothing ... only stores the first geometry member ...


<wfs:Transaction service="WFS" version="1.1.0"
xmlns:wfs="http://www.opengis.net/wfs"
xmlns:gml="http://www.opengis.net/gml"
xmlns:foo="http://www.foo.com.py/foo"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<wfs:Insert>
<foo:reference-point-test>
<foo:username>AFALDUTO</foo:username>
<foo:layer>default</foo:layer>
<foo:place>
<gml:MultiGeometry>
<gml:geometryMember>
<gml:Point>
<gml:coordinates>-23.6701,133.8855</gml:coordinates>
</gml:Point>
</gml:geometryMember>
<gml:geometryMember>
<gml:CircleByCenterPoint>
<gml:coordinates>-23.6701,133.8855</gml:coordinates>
<gml:radius>5</gml:radius>
</gml:CircleByCenterPoint>
</gml:geometryMember>
</gml:MultiGeometry>
</foo:place>
</foo:reference-point-test>
</wfs:Insert>
</wfs:Transaction>

thks !

--
Ariel Falduto
***@gmail.com
Andrea Aime
2012-01-02 15:55:53 UTC
Permalink
Post by Ariel Falduto
Hi, again guys ...
in need to insert a circle representation into MultiGeometry /
GeometryCollection it is possible ???
Nope, GeoServer only handles geometries made of straight lines, you will
have to create an
approximation of the circle made of straight segments as a polygon, and
then
stick it into a multigeometry if that's the underlying data type

Cheers
Andrea
--
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy

phone: +39 0584 962313
fax: +39 0584 962313
mob: +39 339 8844549

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

Please take note that GeoSolutions will be closed for Christmas holidays
from 27/12 to 30/12

-------------------------------------------------------
Ariel Falduto
2012-01-02 17:19:31 UTC
Permalink
ok Andrea,

thks... i will try ^^

--
Ariel Falduto
Post by Ariel Falduto
Hi, again guys ...
in need to insert a circle representation into MultiGeometry / GeometryCollection it is possible ???
Nope, GeoServer only handles geometries made of straight lines, you will have to create an
approximation of the circle made of straight segments as a polygon, and then
stick it into a multigeometry if that's the underlying data type
Cheers
Andrea
--
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 962313
mob: +39 339 8844549
http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf
Please take note that GeoSolutions will be closed for Christmas holidays from 27/12 to 30/12
-------------------------------------------------------
Loading...