Jody Garnett ha scritto: > The old datastore was a bit more forgiving in places; and may be > "guessing" your srid was an EPSG code number?
Another possible reason is that the user GS is using to access the db does not have rights to read the geometry_columns table, or that the schema in the geometry_columns table does not correspond to the actual one for the table at hand. The old store made a number of unwarranted assumptions that were removed. For example, assuming that all the geometry in the table were the same type as the first row when the geometry_columns was missing. > Do you have your postgis > spatial ref system table sorted out? The "correct" thing to do is to > look up the code there and then parse the WKT back on the java side of > things. Oh boy no, that's not the correct thing, that's the broken one. The PostGIS database misses most towgs84 parameters in the WKT definitions, they might be used, but only as a desperate last resort if the code does not match one record in the official EPSG database Cheers Andrea -- Andrea Aime OpenGeo - http://opengeo.org Expert service straight from the developers. ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
