[Geoserver-users] gml extension - unable to make datastore for gml file

Hi, im a newbee to geoserver.
I'm trying to get the gml extension to work. problem is that's there almost
no help for this extension.
I installed geoserver 1.7.1 and java sdk 6 update 11 (also tried earlier
versions..same issues).
also added gml extension gt-gml-2.5.2.jar to the lib folder.
I had to install geoserver on c:\geoserver171 with data dir
c:\geoserver171\datadir (java was complaining about the white spaces in
foldernames)
I use windows as basesystem.

I use namespace topp and make a new datastore. try to add all kinds of gml
files but they all give an error:

org.xml.sax.SAXException: Element 'gml:Curve' was referenced and not found

Seems something to do with "curve" element, but this is a normal gml element
and holds linestrings.
Also should be normally be supported by the gml extension.
i only have seen one issue http://jira.codehaus.org/browse/GEOS-2269 but
this is about wfs output thats giving issues.

Can anyone help me in the right direction to solve my problem?
Friendly regards, Kees

--
View this message in context: http://www.nabble.com/gml-extension---unable-to-make-datastore-for-gml-file-tp21235394p21235394.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hi Kees,

Yes, the gml extension is quite unmaintained unfortunately. And it only does gml 2. It seems that you are dealing with gml 3 if there are "curve" elements present. Unfortunately there is no datastore extension for doing gml3.

-Justin

kees wrote:

Hi, im a newbee to geoserver.
I'm trying to get the gml extension to work. problem is that's there almost
no help for this extension.
I installed geoserver 1.7.1 and java sdk 6 update 11 (also tried earlier
versions..same issues).
also added gml extension gt-gml-2.5.2.jar to the lib folder.
I had to install geoserver on c:\geoserver171 with data dir
c:\geoserver171\datadir (java was complaining about the white spaces in
foldernames)
I use windows as basesystem.

I use namespace topp and make a new datastore. try to add all kinds of gml
files but they all give an error:

org.xml.sax.SAXException: Element 'gml:Curve' was referenced and not found

Seems something to do with "curve" element, but this is a normal gml element
and holds linestrings.
Also should be normally be supported by the gml extension.
i only have seen one issue http://jira.codehaus.org/browse/GEOS-2269 but
this is about wfs output thats giving issues.

Can anyone help me in the right direction to solve my problem?
Friendly regards, Kees

--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

Thanks Justin, Think the files tested are indeed gml3.
Do you know a way to downgrade these files? I think the files i have to use
are pretty simple. If i can avoid using curve maybe it will work.
If not, should i consider using mapserver?
with regards, Kees

Justin Deoliveira-6 wrote:

Hi Kees,

Yes, the gml extension is quite unmaintained unfortunately. And it only
does gml 2. It seems that you are dealing with gml 3 if there are
"curve" elements present. Unfortunately there is no datastore extension
for doing gml3.

-Justin

kees wrote:

Hi, im a newbee to geoserver.
I'm trying to get the gml extension to work. problem is that's there
almost
no help for this extension.
I installed geoserver 1.7.1 and java sdk 6 update 11 (also tried earlier
versions..same issues).
also added gml extension gt-gml-2.5.2.jar to the lib folder.
I had to install geoserver on c:\geoserver171 with data dir
c:\geoserver171\datadir (java was complaining about the white spaces in
foldernames)
I use windows as basesystem.

I use namespace topp and make a new datastore. try to add all kinds of
gml
files but they all give an error:

org.xml.sax.SAXException: Element 'gml:Curve' was referenced and not
found

Seems something to do with "curve" element, but this is a normal gml
element
and holds linestrings.
Also should be normally be supported by the gml extension.
i only have seen one issue http://jira.codehaus.org/browse/GEOS-2269 but
this is about wfs output thats giving issues.

Can anyone help me in the right direction to solve my problem?
Friendly regards, Kees

--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context: http://www.nabble.com/gml-extension---unable-to-make-datastore-for-gml-file-tp21235394p21241286.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hi Kees,

The easiest way would be to use a tool that can convert from gml3 to some other format. gvSIG or some other client might do the conversion directly.

One possible solutions with GeoServer would be to wrap your gml3 document in a wfs:Transaction insert. Then execute the insert against a geoserver feature type set up which matches the gml structure (perhaps postgis based). Then you can as for gml2 vs gml3 simply by making a 1.0 GetFeature rqeuest (gml2) vs 1.1 getFeature request (gml3).

Hope that helps.

-Justin

kees wrote:

Thanks Justin, Think the files tested are indeed gml3.
Do you know a way to downgrade these files? I think the files i have to use
are pretty simple. If i can avoid using curve maybe it will work.
If not, should i consider using mapserver?
with regards, Kees

Justin Deoliveira-6 wrote:

Hi Kees,

Yes, the gml extension is quite unmaintained unfortunately. And it only does gml 2. It seems that you are dealing with gml 3 if there are "curve" elements present. Unfortunately there is no datastore extension for doing gml3.

-Justin

kees wrote:

Hi, im a newbee to geoserver.
I'm trying to get the gml extension to work. problem is that's there
almost
no help for this extension.
I installed geoserver 1.7.1 and java sdk 6 update 11 (also tried earlier
versions..same issues).
also added gml extension gt-gml-2.5.2.jar to the lib folder.
I had to install geoserver on c:\geoserver171 with data dir
c:\geoserver171\datadir (java was complaining about the white spaces in
foldernames)
I use windows as basesystem.

I use namespace topp and make a new datastore. try to add all kinds of
gml
files but they all give an error:

org.xml.sax.SAXException: Element 'gml:Curve' was referenced and not
found

Seems something to do with "curve" element, but this is a normal gml
element
and holds linestrings.
Also should be normally be supported by the gml extension.
i only have seen one issue http://jira.codehaus.org/browse/GEOS-2269 but
this is about wfs output thats giving issues.

Can anyone help me in the right direction to solve my problem?
Friendly regards, Kees

--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.