All,
I have a WFS I’m trying style through Geoserver for raster display. The WFS has a Surface element that is causing a error:
error:Translator error
Translator error
Unrecognized geometry element {http://www.opengis.net/gml}Surface
I found one Geotools discussion on this that basically says “request WFS 1.0” (http://osgeo-org.1560.x6.nabble.com/Wfsdatastore-and-gml3-parse-error-td4323645.html). But that doesn’t work in my case, nor is it an option. How do I get around this? Sees like there should be a way to have geoserver filter this element out or something.
WFS Server: http://egeoint.nrlssc.navy.mil/ogcserver/vector/nonstdmetadata?request=GetCapabilities&service=WFS
Feel free to take a look. (Oh, make your timeout around 60 seconds, it’s not very fast)
Thanks,
Mark
On Tue, Jul 23, 2013 at 10:24 PM, Mark Loper <mark_a_loper@anonymised.com> wrote:
All,
I have a WFS I'm trying style through Geoserver for raster display. The
WFS has a Surface element that is causing a error:
error:Translator error
Translator error
Unrecognized geometry element {http://www.opengis.net/gml\}Surface
I found one Geotools discussion on this that basically says "request WFS
1.0" (
http://osgeo-org.1560.x6.nabble.com/Wfsdatastore-and-gml3-parse-error-td4323645.html).
But that doesn't work in my case, nor is it an option. How do I get
around this? Sees like there should be a way to have geoserver filter this
element out or something.
The other way is to fix yourself the WFS cascading code and make it able to
parse Surface too. The change should not be
took complicated:
https://github.com/geotools/geotools/blob/master/modules/unsupported/wfs/src/main/java/org/geotools/data/wfs/v1_1_0/parsers/XmlSimpleFeatureParser.java
Or, look into the commercial support page at geoserver.org and find someone
that will implement the change for you
Cheers
Andrea
--
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------
Thanks Aime!
That looks easy enough, although I haven’t tried compiling geotools so I’ll have to take a look at that. I don’t suppose anyone out there has done this already?? Surface seems pretty common, I’d just assume not reinvent if it already exists.
Mark
From: Andrea Aime andrea.aime@anonymised.com
To: Mark Loper mark_a_loper@anonymised.com
Cc: Geoserver Geoserver-users@lists.sourceforge.net
Sent: Tuesday, July 23, 2013 5:04 PM
Subject: Re: [Geoserver-users] WFS unrecognized geometry element Surface
On Tue, Jul 23, 2013 at 10:24 PM, Mark Loper mark_a_loper@anonymised.com wrote:
All,
I have a WFS I’m trying style through Geoserver for raster display. The WFS has a Surface element that is causing a error:
error:Translator error
Translator error
Unrecognized geometry element {http://www.opengis.net/gml}Surface
I found one Geotools discussion on this that basically says “request WFS 1.0” (http://osgeo-org.1560.x6.nabble.com/Wfsdatastore-and-gml3-parse-error-td4323645.html). But that doesn’t work in my case, nor is it an option. How do I get around this? Sees like there should be a way to have geoserver filter this element out or something.
The other way is to fix yourself the WFS cascading code and make it able to parse Surface too. The change should not be
took complicated:
https://github.com/geotools/geotools/blob/master/modules/unsupported/wfs/src/main/java/org/geotools/data/wfs/v1_1_0/parsers/XmlSimpleFeatureParser.java
Or, look into the commercial support page at geoserver.org and find someone that will implement the change for you
Cheers
Andrea
–
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
On Tue, Jul 23, 2013 at 11:25 PM, Mark Loper <mark_a_loper@anonymised.com> wrote:
Thanks Aime!
That looks easy enough, although I haven't tried compiling geotools so
I'll have to take a look at that. I don't suppose anyone out there has
done this already?? Surface seems pretty common, I'd just assume not
reinvent if it already exists.
A search in the GeoTools Jira did not turn out anything, and we never
received a pull request for this so... I guess not?
I'm cc'ing Mauro too, as he was the last one to work on the WFS store.
Cheers
Andrea
--
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------
It looks like it’s only the one Jar file and about 3 lines of code. I would prefer this be part of the baseline as opposed to a custom change. I’m happy to go through the process to submit the update, spent a good part of yesterday reading up on that.
-M
From: Andrea Aime <andrea.aime@anonymised.com107…>
To: Mark Loper mark_a_loper@anonymised.com; Mauro Bartolomeoli <mauro.bartolomeoli@anonymised.com…1107…>
Cc: Geoserver Geoserver-users@lists.sourceforge.net
Sent: Wednesday, July 24, 2013 1:59 AM
Subject: Re: [Geoserver-users] WFS unrecognized geometry element Surface
On Tue, Jul 23, 2013 at 11:25 PM, Mark Loper <mark_a_loper@anonymised.com> wrote:
Thanks Aime!
That looks easy enough, although I haven’t tried compiling geotools so I’ll have to take a look at that. I don’t suppose anyone out there has done this already?? Surface seems pretty common, I’d just assume not reinvent if it already exists.
A search in the GeoTools Jira did not turn out anything, and we never received a pull request for this so… I guess not?
I’m cc’ing Mauro too, as he was the last one to work on the WFS store.
Cheers
Andrea
–
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
On Wed, Jul 24, 2013 at 5:22 PM, Mark Loper <mark_a_loper@anonymised.com> wrote:
It looks like it's only the one Jar file and about 3 lines of code. I
would prefer this be part of the baseline as opposed to a custom change.
I'm happy to go through the process to submit the update, spent a good
part of yesterday reading up on that.
Sure, contributions are welcomed
Cheers
Andrea
--
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------