Hi,

 

First of all let me put you in situation. I'm working on the mapping of the 
INSPIRE Annex II Land Cover schema. I'm using GeoServer 2.2 + app-schema. I 
tried GS 2.1, but I moved to 2.2 when I read this issue: 
http://jira.codehaus.org/browse/GEOS-4496 
<http://jira.codehaus.org/browse/GEOS-4496> 

 

I need to map the attribute "gml:domainSet" which has this definition:

 

<element name="domainSet" type="gml:DomainSetType">

                               <annotation>

                                               
<documentation>...</documentation>

                               </annotation>

                </element>

                <complexType name="DomainSetType">

                               <sequence minOccurs="0">

                                               <choice>

                                                               <element 
ref="gml:AbstractGeometry"/>

                                                               <element 
ref="gml:AbstractTimeObject"/>

                                               </choice>

                               </sequence>

                               <attributeGroup 
ref="gml:OwnershipAttributeGroup"/>

                               <attributeGroup 
ref="gml:AssociationAttributeGroup"/>

                </complexType>

 

 

I want to use an explicit polygon so I wrote the mapping this way:

 

 

                               <AttributeMapping>

                                               <targetAttribute>

                                                               gml:domainSet

                                               </targetAttribute>

                                               <targetAttributeNode>

                                                               
gml:MultiSurfacePropertyType

                                               </targetAttributeNode>

                               </AttributeMapping>

                                                               

                               <AttributeMapping>

                                   <targetAttribute>

                                       gml:domainSet

                                   </targetAttribute>

                                   <sourceExpression>

                                       <OCQL>'POLYGON((268926 4810180, 268926 
4829560, 296474 4829560, 296474 4810180))'</OCQL>

                                   </sourceExpression>

                               </AttributeMapping>

 

When I make this request: 
http://localhost:8080/geoserver/wfs?request=GetFeature&typeName=lcs:LandCoverSurfaceCoverage&outputFormat=text/xml;%20subtype=gml/3.2

 

I get this response:

 

<wfs:FeatureCollection xmlns:wfs="http://www.opengis.net/wfs/2.0";  ...

<wfs:member>

<lcs:LandCoverSurfaceCoverage gml:id="land_cover_coverages.1">

 

      [DOMAINSET SHOULD BE HERE]

 

<cvgvp:domainExtent>

<gmd:EX_Extent>

...

...

 

In the GeoServer log (with the GEOTOOLS_DEVELOPER_LOGGING.properties profie)  I 
find this pair of lines that maybe related to this problem:

 

2011-08-23 13:11:09,550 DEBUG [org.geotools.xml] - AbstractFeature is abstract

2011-08-23 13:11:09,552 DEBUG [org.geotools.xml] - Property 
http://www.opengis.net/gml/3.2:domainSet not found but minoccurs > 0

 

If I remove the "targetAttributeNode" of the mapping, I get this output:

 

<wfs:FeatureCollection xmlns:wfs="http://www.opengis.net/wfs/2.0";  ...

<wfs:member>

<lcs:LandCoverSurfaceCoverage gml:id="land_cover_coverages.1">

      <gml:domainSet/>

<cvgvp:domainExtent>

<gmd:EX_Extent>

<gmd:geographicElement>

...

...

 

And in the log file I only get this line:

 

011-08-23 13:30:40,111 DEBUG [org.geotools.xml] - AbstractFeature is abstract

 

 

I have a similar problem with the geometry attribute of each element of this 
coverage using the "the_geom" column of a shapefile, but I think this one is 
more simple.

 

I hope I've explained it right and someone can help me. Thank you in advance.

 

Rubén Velasco

 

</pre><img src="http://www.gijon.eu/Imagenes/correo/pie_correo.jpg"; 
alt="Ahorro"><pre>
------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to