Re: [Geotools-gt2-users] How to draw whole countries with Meracator Projectioon(EPSG:41001)

2007-05-15 Thread Martin Desruisseaux
新买 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);

Re: [Geotools-gt2-users] How to draw whole countries with Meracator Projectioon(EPSG:41001)

2007-05-15 Thread 新买
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

Re: [Geotools-gt2-users] How to draw whole countries with Meracator Projectioon(EPSG:41001)

2007-05-14 Thread 新买
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?

Re: [Geotools-gt2-users] How to draw whole countries with Meracator Projectioon(EPSG:41001)

2007-05-14 Thread Martin Desruisseaux
新买 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

Re: [Geotools-gt2-users] How to draw whole countries with Meracator Projectioon(EPSG:41001)

2007-05-14 Thread Martin Desruisseaux
新买 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

Re: [Geotools-gt2-users] How to draw whole countries with Meracator Projectioon(EPSG:41001)

2007-05-14 Thread Adrian Custer
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

Re: [Geotools-gt2-users] How to draw whole countries with Meracator Projectioon(EPSG:41001)

2007-05-14 Thread Martin Desruisseaux
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

Re: [Geotools-gt2-users] How to draw whole countries with Meracator Projectioon(EPSG:41001)

2007-05-14 Thread Martin Desruisseaux
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

[Geotools-gt2-users] How to draw whole countries with Meracator Projectioon(EPSG:41001)

2007-05-10 Thread 新买
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