23 Mar 13:59
Problem with Oracle 9i FeatureType - Solved
Rahkonen Jukka <Jukka.Rahkonen <at> mmmtike.fi>
2006-03-23 12:59:47 GMT
2006-03-23 12:59:47 GMT
Hi, As an introduction, I used to have a problem in making a new Geoserver FeatureType from my existing Oracle 9i spatial table created and maintained by MapInfo tools. Creating DataStore from the Oracle database was successful. When trying to create FeatureType all the available Oracel tables came to selection list of the Geoserver administration tool. Howeever, when I selected the desired table I could not create a FeatureType from it. Administration application gave a hint that my spatial table maybe does not have a geometry column, or the table is empty. After quite a many trials with my table and smaller spatial tables I created into the same database with "shp2sdo" utility I have learned at least the following things: - There has to be a record in ALL_SDO_GEOM_METADATA that corresponds to the spatial table. - You need to have a primary key in your data. If you create it by using shp2sdo utility it is easiest to tell the utility to create it. These requirements are also mentioned in the Geoserver datastore document. This additional information would have helped me a lot: - You do not need to have SRID value set in your data but it can be null as well. Geoserver do not care about that value in any case. It is enough to tell Geoserver the EPSG code to be used with the FeatureType editor. - If you however have SRID value in your data then you must have the same value also in the ALL_SDO_GEOM_METADATA table. Geoserver is not(Continue reading)
RSS Feed