hi to all!!
i m new to both geotools and GIS. i have a question about using othgraphic
projection .
even though i ve tried to find some examples for Othgrapic. i couldn't find
it.
so i d like to get some help.. ^^
To test orthographic , i used shape filie, "countries.shp" and transformed
WGS84 long, lat to orthographic with the WKT below.
private static String wkt1 =
"PROJCS[\"Orthographic.WGS84.lat32.87894.lon-96.99886\", \n" +
" GEOGCS[\"Geographic Coordinate System\", \n" +
" DATUM[\"WGS84\", \n" +
" SPHEROID[\"WGS84\",6378137,298.257223563]], \n" +
" PRIMEM[\"Greenwich\",0.0], \n" +
" UNIT[\"degree\",0.017453292519943295], \n" +
" AXIS[\"Geodetic longitude\", EAST], \n" +
" AXIS[\"Geodetic latitude\", NORTH]], \n" +
" PROJECTION[\"Orthographic\"], \n" +
" PARAMETER[\"semi_major\",6378137.0], \n" +
" PARAMETER[\"semi_minor\",6378137.0], \n" +
" PARAMETER[\"central_meridian\", -96.99886], \n" +
" PARAMETER[\"latitude_of_origin\", 32.87894000000001], \n" +
" PARAMETER[\"scale_factor\", 1.0], \n" +
" PARAMETER[\"false_easting\",0], \n" +
" PARAMETER[\"false_northing\",0], \n" +
" UNIT[\"Meter\",1.0], \n" +
" AXIS[\"Easting\", EAST], \n" +
" AXIS[\"Northing\", NORTH]]";
CoordinateReferenceSystem orthograpicCRS= CRS.parseWKT(wkt1);
map.setCoordinateReferenceSystem(orthograpicCRS);
and
CRSAuthorityFactory factory =
ReferencingFactoryFinder.getCRSAuthorityFactory("AUTO", null);
ProjectedCRS newCRS = factory.createProjectedCRS("AUTO:42003,9001,0.0,0");
map.setCoordinateReferenceSystem(orthograpicCRS);
after excuting both codes , i got an error saying
Possible use of "Orthographic" projection outside its valid area.
Latitude 115°22.5'S is out of range (±90°).
Could not use crs
org.geotools.referencing.operation.projection.ProjectionException: Point
outside hemisphere of projection.
please help
--
View this message in context:
http://n2.nabble.com/how-to-use-orthograhpic-projection-tp4923653p4923653.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users