Please, see my comment at the JIRA:
        http://jira.codehaus.org/browse/GEOT-739

There're places in GeoTools were a SRID is already treated 
as a simple int, but then it's always left blank (0 or -1).
So, until we decide to change it to a String SRID like "EPSG:3003",
we may leave it as an int but, at least, we may see it's set...

Bye
Paolo Rizzi


> -----Messaggio originale-----
> Da: Martin Desruisseaux [mailto:[EMAIL PROTECTED]
> Inviato: mercoledì 26 ottobre 2005 2.37
> A: "P.Rizzi Ag.Mobilità Ambiente"
> Cc: GeoTools-devel (E-mail)
> Oggetto: Re: [Geotools-devel] About toSRID()
> 
> 
> P.Rizzi Ag.Mobilità Ambiente a écrit :
> > In fact I looked into the GeoTools code and find no easy 
> way of getting the
> > SRID from a CoordinateReferenceSystem. Sadly this is 
> something that happens
> > often with GeoTools...
> > 
> > I wrote a utility class to get the SRID from a 
> CoordinateReferenceSystem,
> > but I'm not sure if the way I did it is the best one, 
> neither I know if
> > there're better ways.
> 
> An utility class will probably be helpfull (we will have to 
> decide where 
> to put it). But one issue to solve first is: what SRID is 
> exactly? It is 
> just an integer, and unfortunatly the integer meaning depends on the 
> authority. EPSG has its own set of numerical codes; an other 
> authority 
> will have a different set of numerical codes. Unfortunatly 
> there is no 
> way (as far as I know) to determine which authority a 
> 'getSRID()' method 
> use.
> 
> A possible approach is to decide that the integer returned by 
> 'getSRID()' is always a code from the EPSG authority factory. But we 
> would have to make this assumption very clear in our 
> documentation. In 
> such case, the utilities program would have to be a little bit more 
> elaborated in order to search specifically for the EPSG authority (to 
> make things worst, EPSG CRS have both a textual and a numerical 
> identifier). A volunter for writting this utility, since I'm 
> now used to 
> write this kind of code. We just have to decide if the above-cited 
> assumption is acceptable, and where to put the utility (probably in 
> org.geotools.referencing.crs.CRS?).
> 
>       Martin.
> 




AVVERTENZE AI SENSI DEL D. LGS. 196/2003  
Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i
file/s allegato/i, sono da considerarsi strettamente riservate. Il loro
utilizzo è consentito esclusivamente al destinatario del messaggio, per le
finalità indicate nel messaggio stesso. Qualora riceveste questo messaggio
senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia
via e-mail e di procedere alla distruzione del messaggio stesso,
cancellandolo dal Vostro sistema; costituisce comportamento contrario ai
principi dettati dal D. Lgs. 196/2003 il trattenere il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse.


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to