[Geoserver-devel] CoordinateSystem null in DefaultGeometry - geoserver 1.3.0 src

Hi,
I just get a nullpointerException at
DataFeatureTypesNewAction.execute():109. The crs seems to be empty.
However I do not have an idea why. I just pass in a 3.2.0 GML schema
(provided by my WPSDataStore). Should actually work (IMHO), or what is
such Action waiting for? Is there a working gml schema?

Thanks for your help.

Theodor

ITC, Enschede
Department of Geo Information Processing PO. Box 6 7500 AA Enschede the
Netherlands

Is this when you're using the web admin? Did you fill out an epsg code in the web admin?

I've never looked in to this code super extensively, but basically some datastores can provide their epsg information and automatically fill out that field, and others can't. If yours can't then the user just fills out what it is.

I'm not sure if geotools gml parsing figures out the epsg, and actually I know we don't support gml 3.2.0, so it probably can't figure it out. I think you may be able to get away with just having your datastore return some hard coded CRS, and then let users fill out the proper epsg code.

Chris

Theodor Foerster wrote:

Hi,
I just get a nullpointerException at
DataFeatureTypesNewAction.execute():109. The crs seems to be empty.
However I do not have an idea why. I just pass in a 3.2.0 GML schema
(provided by my WPSDataStore). Should actually work (IMHO), or what is
such Action waiting for? Is there a working gml schema?

Thanks for your help.

Theodor

ITC, Enschede
Department of Geo Information Processing PO. Box 6 7500 AA Enschede the
Netherlands

-------------------------------------------------------------------------
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
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

!DSPAM:1003,44f85b50254861460912952!

--
Chris Holmes
The Open Planning Project
http://topp.openplans.org

Hi,
The problem occurs, when configuring the FeatureType with a registered
WPSDataStore through the web admin. It actually appears, when I trigger
the typeNew.do Action (DataFeatureTypesNewAction). There is no
possibiltiy to set the EPSG, or can I configure that at a different
type?

Cheers

Theodor

-----Original Message-----
From: Chris Holmes [mailto:cholmes@anonymised.com]
Sent: Friday, September 01, 2006 11:37 PM
To: Theodor Foerster
Cc: geoserver-devel@lists.sourceforge.net
Subject: Re: [Geoserver-devel] CoordinateSystem null in DefaultGeometry
- geoserver 1.3.0 src

Is this when you're using the web admin? Did you fill out an epsg code
in the web admin?

I've never looked in to this code super extensively, but basically some
datastores can provide their epsg information and automatically fill out
that field, and others can't. If yours can't then the user just fills
out what it is.

I'm not sure if geotools gml parsing figures out the epsg, and actually
I know we don't support gml 3.2.0, so it probably can't figure it out.
I think you may be able to get away with just having your datastore
return some hard coded CRS, and then let users fill out the proper epsg
code.

Chris

Theodor Foerster wrote:

Hi,
I just get a nullpointerException at
DataFeatureTypesNewAction.execute():109. The crs seems to be empty.
However I do not have an idea why. I just pass in a 3.2.0 GML schema
(provided by my WPSDataStore). Should actually work (IMHO), or what is

such Action waiting for? Is there a working gml schema?

Thanks for your help.

Theodor

ITC, Enschede
Department of Geo Information Processing PO. Box 6 7500 AA Enschede
the Netherlands

----------------------------------------------------------------------
--- 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=1216
42 _______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

!DSPAM:1003,44f85b50254861460912952!

--
Chris Holmes
The Open Planning Project
http://topp.openplans.org

Oh, then it's probably that your datastore isn't setting a proper crs for the datastore.

http://svn.geotools.org/geotools/branches/2.2.x/plugin/postgis/src/org/geotools/data/postgis/PostgisDataStore.java

has a bit of code you can look at.

Basically when you make your GeometryAttributeType you have to set the CoordinateReferenceSystem. To try to get it working I think you can just use org.geotools.referencing.crs.DefaultGeographicCRS.WGS84 Just so there's something there.

Chris

Theodor Foerster wrote:

Hi,
The problem occurs, when configuring the FeatureType with a registered
WPSDataStore through the web admin. It actually appears, when I trigger
the typeNew.do Action (DataFeatureTypesNewAction). There is no
possibiltiy to set the EPSG, or can I configure that at a different
type?

Cheers

Theodor

-----Original Message-----
From: Chris Holmes [mailto:cholmes@anonymised.com] Sent: Friday, September 01, 2006 11:37 PM
To: Theodor Foerster
Cc: geoserver-devel@lists.sourceforge.net
Subject: Re: [Geoserver-devel] CoordinateSystem null in DefaultGeometry
- geoserver 1.3.0 src

Is this when you're using the web admin? Did you fill out an epsg code
in the web admin?

I've never looked in to this code super extensively, but basically some
datastores can provide their epsg information and automatically fill out
that field, and others can't. If yours can't then the user just fills
out what it is.

I'm not sure if geotools gml parsing figures out the epsg, and actually
I know we don't support gml 3.2.0, so it probably can't figure it out. I think you may be able to get away with just having your datastore
return some hard coded CRS, and then let users fill out the proper epsg
code.

Chris

Theodor Foerster wrote:

Hi,
I just get a nullpointerException at
DataFeatureTypesNewAction.execute():109. The crs seems to be empty.
However I do not have an idea why. I just pass in a 3.2.0 GML schema (provided by my WPSDataStore). Should actually work (IMHO), or what is

such Action waiting for? Is there a working gml schema?

Thanks for your help.

Theodor

ITC, Enschede
Department of Geo Information Processing PO. Box 6 7500 AA Enschede the Netherlands

----------------------------------------------------------------------
--- 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=1216
42 _______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

--
Chris Holmes
The Open Planning Project
http://topp.openplans.org

!DSPAM:1003,44f9ecb235401702038478!

--
Chris Holmes
The Open Planning Project
http://topp.openplans.org