The old datastore was a bit more forgiving in places; and may be "guessing" 
your srid was an EPSG code number?  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.

Jody

On 28/08/2010, at 7:20 AM, Yingqi Tang wrote:

> Guys,
> 
> I debugged into the code a little, and it looks this line of code (around 
> 293) in JDBCFeaturSource return null on srid 4326
> 
>     crs = dialect.createCRS(srid, cx);
> 
> It seems odd to me that if I use the old gt-postgis datastore I am able to 
> get the WGS84 on the same PostGIS table.
> 
> Any idea?
> 
> Thanks
> 
> On Thu, Aug 26, 2010 at 9:42 PM, Ben Caradoc-Davies 
> <[email protected]> wrote:
> And I see that one minute later you did.  :-)
> 
> 
> On 27/08/10 12:35, Ben Caradoc-Davies wrote:
> Please keep all discussion on-list (use Reply-All:) as individuals may
> not have time to respond and others may be able to help.
> 
> -- 
> Ben Caradoc-Davies <[email protected]>
> Software Engineering Team Leader
> CSIRO Earth Science and Resource Engineering
> Australian Resources Research Centre
> 
> ------------------------------------------------------------------------------
> 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

------------------------------------------------------------------------------
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

Reply via email to