新买 a écrit :
As Adrian refered, I know Mercator cann't act when the point close
to 90 N or 90 S.
My appologizes for looking rude in my third email then...
Or can you tell me how to refer a clip region to render map, such as
MapPainter mapPainter = new MapPainter(shpMap);
Hi Martin,
No matter about speeking, I'm poor in English, even not able to feel
that.
I just insert one sentence in the demo java file
LiteRendererJFrame.java, around
line 196 :
this.setCoordinateReferenceSystem(CRS.decode(EPSG:41001));
The test file is countires.shp, which come
Hi,
Thank you for help. Maybe this is not the best way, but
realy avaliable.
The map can be rendered in mapXtreme, hope geotools can do it also.
Regards.
2007/5/11, Martin Desruisseaux [EMAIL PROTECTED]:
新买 a écrit :
But how can I render whole world with Mercator Projection?
新买 a écrit :
The map can be rendered in mapXtreme, hope geotools can do it also.
Maybe it is not the Mercator Cylindrical projection, but some other ones?
If it is Mercator Cylindrical projection, they do not display the map up to 90°
They have to stop before; this is mathematical and mapXtreme
新买 a écrit :
Yes, with Mercator Projection, only the part where latitude between
-85 to 85 can be rendered. I trace the code of Mercator Projection,
there is some code as throw Exception
I try to comments these word, then it dont work.
May you solve this problem?\
As
Martin,
I don't think this user was worried about what happens near the poles.
He said whole world meaning most of it. I know geotools has problems
just displaying data, e.g. antarctica, in mercator since we don't
smartly cut and sew the polygons in the viewing area. So are you perhaps
misreading
Adrian Custer a écrit :
I don't think this user was worried about what happens near the poles.
He said whole world meaning most of it. I know geotools has problems
just displaying data, e.g. antarctica, in mercator since we don't
smartly cut and sew the polygons in the viewing area. So are you
Martin Desruisseaux a écrit :
If displaying whole world means displaying data at higher latitude than 85°
(or even 70° according wikipedia), user should tries an other projection.
Cylindrical Mercator (non-transverse and non-oblique) is not suitable for
that.
Again this is mathematical, not
Hi,
I add one statement to the sample LiteRendererJFrame to test the Simple
Mercator Projection.
this.setCoordinateReferenceSystem(CRS.decode(EPSG:41001));
When the program start, it report :
2007-5-11 13:37:59
org.geotools.renderer.lite.LiteRenderer$DefaultRenderListener