postgis FIDMapper always returns null
-------------------------------------
Key: GEOT-847
URL: http://jira.codehaus.org/browse/GEOT-847
Project: GeoTools
Type: Bug
Components: postgis
Environment: Win 2000, JRE 5.0, Using geotools 2.2.x
Reporter: Michael Brasser
Assigned to: Justin Deoliveira
Attachments: PostGISFIDTest.java
When saving a feature to a postgis database, the returned feature id is always
null (or 'table_name'.null). It should instead return the feature id created by
the insert. The null is generated by AutoIncrementFIDMapper.
A simple test case is attached. There are a few places that will need to be
changed based on your specific setup (connection parameters, FeatureType name,
etc). The expected (correct) behavior is that fid1 and fid2 will be unique
strings. The behavior I get is identical strings.
One other note:
The getMapper functions in PostgisFIDMapperFactory have been commented out,
which is why AutoIncrementFIDMapper is being used in the first place.
Uncommenting the functions might solve the issue (?), as the data store will
then use a PostGIS-specific PID mapper rather than AutoIncrementFIDMapper.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel