Right. Good thing I wrote all these docs when I was trying to understand 
this stuff last month.

The referencing "Authority" stuff is focused on producing a 
CoordinateReferenceSystem from a code as you well know.

To make one by hand you can use the referencing "Factory" stuff. I am 
sorry both these things have "factory" in the name it is really just a 
mistake.
- http://docs.codehaus.org/display/GEOTDOC/10+Referencing+Factories

The factories (real factories create methods) described on that page can 
be used to build your CoordianteReferenceSystem by hand.
- CRSFactory.createFromWKT is the method you want.

Although I have to ask? If you are not using EPSG codes - what are you 
using?  WKT provided by your shapefile (or user?). If you are just using 
the "usual suspects" you may find that GeoTools already provides static 
constants for them.

I will add to the description on this page to cover the static constants 
GeoTools provides:
- http://docs.codehaus.org/display/GEOTDOC/03+CoordinateReferenceSystem

Cheers,
Jody

Lareina Sun wrote:
> Now I created CoordinateReferenceSystem via  
> CRSAuthorityFactory.createCoordinateReferenceSystem(String epsgCode). 
> What if the datum has no epsg code? If I only have a datum name can I 
> create a
> CoordinateReferenceSystem? I'm trying to find a way not to use EPSG 
> code then I don't need to deal with epsg-hsql.
>
> Sun
> Jody Garnett wrote:
>> Hi Lareina - taking this over to the user list...
>>
>> The epsg-hsql plugin needs the ability to write to disk, depending on 
>> your application server it may not have that ability. Do you have any 
>> kind
>> of logs you could look at in order to check? Note that GeoServer is a 
>> Java EE application and it uses epsg-hsql successfully so we know it
>> can be done.
>>
>> Jody
>>> This time I didn't use applet. I deployed the app onto the server 
>>> and it was called as a bean. I had geoapi-nogenerics-2.1-M2.jar, 
>>> gt2-referencing-2.3.2.jar, gt2-epsg-hsql-2.3.2.jar, 
>>> hsqldb-1.8.0.1.jar and
>>> jsr108-0.01.jar in my class path. Before I deployed it worked well 
>>> locally but when I ran the web it reported that the epsg code 
>>> couldn't be found. Do I need do something on the server side?
>>>
>>> Thanks,
>>>
>>> Sun
>>>   
>>
>>
>>
>


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to