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 from sample data of geotools.
I found the region of the map is Env[-180.00018323999998 : 180.0, -90.0:
83.62303164]. the error is understandable, it's seemed impossible to smartly
sew the map as Adrian explained imediately, now I will try to cut the
map followed your suggest.
Regards
2007/5/16, Martin Desruisseaux <[EMAIL PROTECTED]>:
新买 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);
> mapPainter.render(85, -180, 80, -85, "test.png");
On the rendering side, I can't said.
As far as the "referencing" module is concerned, if you used an
ellipsoidal
datum, it may be worth to try a spherical case instead since the spherical
formulas are simplier. I don't know how you CRS were created (EPSG code?
WKT?),
but if it was from WKT, try an "inverse flattening" value (in the
ELLIPSOID[...]
element) of 0.
Martin
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users