Hi.
I solved my problem with the abstract geometry on "domainSet" using this
mapping:
<AttributeMapping>
<targetAttribute>
gml:domainSet/gml:AbstractGeometry
</targetAttribute>
<idExpression>
<OCQL>strConcat('shape.', getId())</OCQL>
</idExpression>
<sourceExpression>
<OCQL>'POLYGON((260000 4800000, 260000 4800000, 290000 4800000,
290000 4800000,260000 4800000))'</OCQL>
</sourceExpression>
</AttributeMapping>
And the result is valid except for the lack of "gml:id".
<gml:domainSet>
<gml:Polygon>
<gml:exterior>
<gml:LinearRing>
<gml:posList>
260000.0 4800000.0 260000.0 4800000.0 290000.0 4800000.0 290000.0 4800000.0
260000.0 4800000.0
</gml:posList>
</gml:LinearRing>
</gml:exterior>
</gml:Polygon>
</gml:domainSet>
The solution was adding "gml:AbstractGeometry" nested element on the
"targetAttribute". I thought it wasn't necessary, but it is.
Finally I didn't use the "targetAttributeNode" because it wasn't a requirement.
Anyway I still have a similar problem with INSIRE's GeometryValuePairType,
where "geometry" is stored in a "gml:AbstractObject".
Best regards,
Ruben Velasco.
-----Mensaje original-----
De: Ben Caradoc-Davies [mailto:[email protected]]
Enviado el: viernes, 26 de agosto de 2011 9:00
Para: Ruben Velasco Vega
CC: [email protected]
Asunto: Re: [Geoserver-users] App-Schema: Mapping gml:AbstractGeometry
On 26/08/11 14:56, Ruben Velasco Vega wrote:
> Thanks for your answer.
> I noticed that my polygon wasn't closed, but the problem remained.
> In your test you use gsml:shape which is of type GeometryPropertyType and I
> think that's the point. I need to use an abstract type and it looks like
> "targetAttributeNode" is not working.
I will investigate further.
> I'm sure your test would work even if you don't use the "targetAttributeNode"
> element.
I does but encodes the geometry as Polygon not MultiSurface.
--
Ben Caradoc-Davies <[email protected]>
Software Engineering Team Leader
CSIRO Earth Science and Resource Engineering
Australian Resources Research Centre
---
Antes de imprimir este correo piensa bien si es necesario hacerlo.
If you print this email please think if you really need to do it.
Enantes d'imprimir esti corréu, mira bien si ye necesario que lo faigas.
------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users