Thanks Andrea,
But how can you explain that I dont get the correct coordinates , the
correct zoom and pan areas ? etc.
And why does it works with DefaultGeographicCRS.WGS84 and not
CRS.decode("EPSG:4326") ?
If you get an idea or a way to search...its welcome !
Thomas
2008/5/30 Andrea Aime <[EMAIL PROTECTED]>:
> Anaxa Gore ha scritto:
>
> Hi,
>>
>> As I said yesterday in another thread, I solved my problem of opening
>> geotiff by replacing the crs of the mapContext from
>> DefaultGeographicCRS.WGS84 to CRS.decode("EPSG:4326").
>> Now, I can display all my datas, but some new problems appear :
>>
>> * first, the proportions of rasters are not respected : if the
>> window is large, my raster is large, if it is thin, the raster is
>> thin : the width and height are not changing together.
>> * second, when I want to get some coordinates from the map, I never
>> get the good ones...
>> * third, when I want to zoom, pan etc., I never get the good area on
>> the screen...
>>
>> Somebody gets an idea about this strange behavior ?
>> Thanks,
>> Thomas
>>
>> PS : I tried this with Eclesia's widgets and JMapPane, so we can be sure
>> right now that it does not come from the widgets... maybe from the
>> streamingrenderer ?
>>
>
> I'm inclined to think that somehow the area of interest and the size
> of the image are not kept in synch, or something like that.
> The WMS spec says that if you ask for an image which is out of proportion
> compared to the geographic area depicted, the output
> should be correspondently distorted.
> So the renderer follows that, if you ask to paint a square envelope like
> (10,10 20,20) into an image that's 100 x 200 you'll get a distorted
> output.
>
> Cheers
> Andrea
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel