Dear all,
I created an empty geo table (the datastore is oracle 10g) and I'd like to create my features dinamically by using the editing toolbar.
When I link this geo table to geoserver by adding the feature type I have the following exception: " [..] the dataset is empty or has no default geometry attribute.".
The dataset is empty, so how can I create a default geometry attribute? This will solve my problem?
Note that my table has already a geometry column (sdo_geometry) and a geographic index also.
Thanks in advance,
Marianna Borriello
I had an idea: to create under data\featureTypes a folder for my empty data set with a correct file info.xml.
I have restarted my geoserver (version 1.7.3) and now I can load the feature type without any issue.
It’s empty.
Is this a good procedure in order to load empty data sets?
Thanks,
Marianna
Marianna Borriello ha scritto:
Marianna Borriello ha scritto:
Dear all,
I created an empty geo table (the datastore is oracle 10g) and I'd like to create my features dinamically by using the editing toolbar.
When I link this geo table to geoserver by adding the feature type I have the following exception: " [..] the dataset is empty or has no default geometry attribute.".
The following exception doing... what? When computing the bbox?
If so, just ignore the exception and manually enter a lat/lon bbox
that is consistent with the area that have been edited.
Also, when reporting issues always provide the full stack trace that
you can find in the geoserver logs (with the same error), otherwise
it's impossible for us to tell what's really going on.
Please also notice the error message tell you that either the
dataset is empty (empty table), _or_ the default geometry attribute is
missing (geometryless table, GeoServer can publish them using WFS),
or as in your case, both.
Cheers
Andrea
--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.
Marianna Borriello ha scritto:
I had an idea: to create under data\featureTypes a folder for my empty data set with a correct file info.xml.
I have restarted my geoserver (version 1.7.3) and now I can load the feature type without any issue.
It's empty.
Is this a good procedure in order to load empty data sets?
Manually editing an info.xml file should not be necessary and is
discouraged.
Try manually providing a lat/lon bounding box in the UI instead
Cheers
Andrea
--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.