Paul Ramsey a écrit : > Cedric, > Why are you not using the included shp2pgsql utility in PostGIS for > this? Your use case sounds exactly like a standard shp2pgsql import. > Yours, > Paul
In fact, for an opensource project, I'm developping a webapp which will make a bidirectional synchronisation between many shape files and a postgis DB. So I have to develop the same functionalities as shp2pgsql, but in a java way. That's why I didn't planned to use this tool. But there's still something I don't really understand, it 's why the geometry column is the last column generated by shp2pgsql whereas the feature schema in shape files begins with the geometry in first. Because when you want to insert a new feature in the data base with the "addFeatures" method, there is a problem of schema, which is not respected... Thanks to some indications given by Jesse Eichar, I can now do what I wish to do. Thanks a lot for answering me. Cedric. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
