Hi Rudy,

 

Thanks for your suggestion - unfortunately the problem still occurs! =(

 

One thing I've noticed is that, although I'm using a GML 3.2.1 schema,
my URL request did not include the "outputFormat=gml32" setting.

 

When I include this setting in my WFS request, I get the error:

 

"The prefix "null" for element "null:Envelope" is not bound."

 

According to the documentation, this error means that I need to define
'gml' as a secondary namespace, which I have done as described in

 

http://docs.geoserver.org/stable/en/user/data/app-schema/supported-gml-v
ersions.html#secondary-namespace-for-gml-3-2-1-required

 

However, I'm still getting the same "The prefix "null" for element
"null:Envelope" is not bound." error message.

 

I should point out that my GMLAS has to be version 3.2.1.

 

Any suggestions on how I can resolve this error message and get my
geometry mapping across?

 

Many thanks,

 

Ryan

 

From: Rudy Commenge [mailto:[email protected]] 
Sent: 17 September 2013 16:12
To: Ryan Moody
Cc: [email protected]; Neil Kirk
Subject: Re: [Geoserver-users] App-Schema Geometry Mapping

 

In your XML Schema try to declare "geom" element with generic geometry
type :
<xs:element name="geometry" type="gml:GeometryPropertyType" />

 

2013/9/17 Ryan Moody <[email protected]>

Hi Rudy,

 

I've tried your suggestion previously, but unfortunately it still gives
me the empty geometry element <MyPrefix:geometry/> in the WFS response.

 

Can you think of any other possible issues which may prevent the
geometry being mapped across?

 

Many thanks,

 

Ryan

 

From: Rudy Commenge [mailto:[email protected]] 
Sent: 17 September 2013 13:30
To: Ryan Moody
Cc: [email protected]; Neil Kirk
Subject: Re: [Geoserver-users] App-Schema Geometry Mapping

 

Hi Ryan,

Your mapping file contains :

<AttributeMapping>
   <targetAttribute>geometry</targetAttribute>
   <sourceExpression>
      <OCQL>geom</OCQL>
   </sourceExpression>
</AttributeMapping>

I think you forgot the prefix for the target attribute :

<AttributeMapping>
   <targetAttribute>MyPrefix:geometry</targetAttribute>
   <sourceExpression>
      <OCQL>geom</OCQL>
   </sourceExpression>
</AttributeMapping>

 

------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to