java mapscript, method pointObj.project
Oliver Wesp
wesp at GDV.COM
Wed Sep 5 01:58:08 PDT 2007
Dear Ludovico,
Maybe there is another epsg file on your system? What's your operating
system and where is the projection library located?
regards,
Olli
P.S. I'm sure other people will benefit from this or maybe someone other
than myself has a clue regarding your problem so I included the mailing
list.
Ludovico Bianchini schrieb:
> Thanks for the quick reply, now I have another
> problem: I rename the epsg file in \nad\epsg to
> \nad\_epsg, but there is no error...is there another
> file the library uses if doesn't find epsg?
>
> I've made this test because I try to insert a towgs
> parameter to the projection line, but when I perform
> this
> x = 1752000f;
> y = 5062000f;
> point.setX(x);
> point.setY(y);
> point.project(new projectionObj("init=EPSG:26591"),
> new projectionObj("init=EPSG:4326"));
>
> to discover the longitude latitude of a point situated
> in Italy (26591 is for Monte Mario (Rome) / Italy zone
> 1) I obtain (37.13953463591601 45.66405322544534),
> which is situated in Russia.
>
> --- Oliver Wesp <wesp at GDV.COM> ha scritto:
>
>> Hi Ludovico,
>>
>> this means that you're using a projection that's not
>> defined in your
>> epsg file.
>>
>>
> http://mapserver.gis.umn.edu/docs/error/proj-init-file
>> best regards,
>> Oliver
>>
>> Ludovico Bianchini schrieb:
>>> Hi,
>>> I'm obtaining this
>>>
>>> Exception occurred during event dispatching:
>>> java.lang.UnknownError: msProcessProjection():
>>> Projection library error. no options found in
>> 'init'
>>> file
>>> at
>>>
> edu.umn.gis.mapscript.mapscriptJNI.new_projectionObj(Native
>>> Method)
>>> at
>>>
> edu.umn.gis.mapscript.projectionObj.<init>(projectionObj.java:41)
>>> with this line of code:
>>>
>>> point.project(new projectionObj("init=EPSG:4326"),
>> new
>>> projectionObj("init=EPSG:3003"));
>>>
>>> while with this
>>>
>>> point.project(new projectionObj("init=EPSG:4326"),
>> new
>>> projectionObj("init=EPSG:26591"));
>>>
>>> there is no error.
>>>
>>> Point is initialized with (37.13953463591601
>>> 45.66405322544534), a decimal degrees lon-lat
>> value.
>>> Has anybody solved this or a similar problem?
>>>
>>> Thanks in advance for any help!!
>>>
>>> Ludovico
>>>
>>>
>>> ___________________________________
>>> L'email della prossima generazione? Puoi averla
>> con la nuova Yahoo! Mail:
>> http://it.docs.yahoo.com/nowyoucan.html
>>>
>>>
>> --
>> Dipl.-Geogr. Oliver Wesp
>> GDV Gesellschaft für geografische Datenverarbeitung
>> mbH
>> Binger Str. 49-51
>> 55218 Ingelheim am Rhein
>> Germany
>> Fon 049(0)6132-7148-18
>> Fax 049(0)6132-7148-28
>> www.gdv.com
>> Sitz der Gesellschaft: Ingelheim
>> Amtsgericht Mainz HRB 23123
>> Gerichtsstand Mainz
>> Geschäftsführer: Thomas Riehl, Dirk Hübener
>>
>
>
>
> ___________________________________
> L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: http://it.docs.yahoo.com/nowyoucan.html
>
>
>
--
Dipl.-Geogr. Oliver Wesp
GDV Gesellschaft für geografische Datenverarbeitung mbH
Binger Str. 49-51
55218 Ingelheim am Rhein
Germany
Fon 049(0)6132-7148-18
Fax 049(0)6132-7148-28
www.gdv.com
Sitz der Gesellschaft: Ingelheim
Amtsgericht Mainz HRB 23123
Gerichtsstand Mainz
Geschäftsführer: Thomas Riehl, Dirk Hübener
More information about the MapServer-users
mailing list