I've tryed this too:
mapContext = new DefaultMapContext(crs);
nothing changes...

also I've tryed  to  pass to context.setAreaOfInterest envelope like 
this: new Envelope(0.0, 0.0, 0.0, 0.0)
and this changed nothing too(Same image on the pane), but possible 
explanation for this is that
JMapPane calls setAreaOfInterest on context again with his envelope
(but i don't know where JMapPane gets his envelope)


andrea antonello wrote:
> Hi Dennis,
> I'm not sure about the version of geotools you are talking about, but
> in the past I used to apply crs by passing it to the mapcontext:
>
> mapContext = new DefaultMapContext(crs);
>
> Also, I notice that your area of interest is in degree. I assume that
> will not work as soon as the crs is really applied.
>
> Ciao,
> Andrea
>
>
>
>
>
> On Wed, Apr 2, 2008 at 10:20 AM, Dennis Yavorsky <[EMAIL PROTECTED]> wrote:
>   
>> Hello!
>>
>>       I'am stuck trying to render map in mercator projection.
>>  Whatever i try geotools is not rendering in any other projection than
>>  which you can see on image
>> http://ds.azcltd.com/quickStart/geotools_QuickStart.jpg (I don't know what
>> projection it is). As you can see this image does'not
>>  look even a bit like mercator. (For demonstration another image
>>  http://ds.azcltd.com/quickStart/google_mercator.jpg - google maps
>> screenshot - that is example of projection I want to have)
>>
>>  I spent really lots of time! I read lots of documentations, mailing
>>  lists... I do not know what I am doing wrong! StreamingRenderer alwayl
>>  produce same result! I tryed many variants of WKT - result is the same.
>>  Please, help me to solve this problem
>>
>>  I use geotools 2.4.1.
>>  I have attached my source's main file QuickStart.java.
>>  whole test project is available at
>> http://ds.azcltd.com/quickStart/QuickStart.zip - approximately 36 kbytes (it
>> consists of 5 java files and 3 resource files. )
>>
>>  Please, help me!
>>
>>  ps: I know that my english is not so good... So, excuse me for that.
>>
>>     


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to