|
From: <ji...@co...> - 2004-10-21 08:18:58
|
Message: A new issue has been created in JIRA. --------------------------------------------------------------------- View the issue: http://jira.codehaus.org/browse/GEOT-310 Here is an overview of the issue: --------------------------------------------------------------------- Key: GEOT-310 Summary: World2Pixel Method Type: New Feature Status: Unassigned Priority: Major Original Estimate: Unknown Time Spent: Unknown Remaining: Unknown Project: GeoTools Components: lite-rendering Assignee: Reporter: Debasish Sahu Created: Thu, 21 Oct 2004 4:19 AM Updated: Thu, 21 Oct 2004 4:19 AM Description: It will be a nice feature to add the following code to LiteRenderer2 as suggested by Ian for converting world coordinates to pixel. AffineTransform transform = renderer.worldToScreenTransform(bbox, rect); Geometry geom = feature.getDefaultGeometry(); Coordinate[] coords = geom.getCoordinates(); double[] coordArray = new double[coords.length*2]; double[] outArray = new double[coords.length*2]; for(int i=0,k=0;i<coords.length;i++,k+=2){ coordArray[k] = coords[i].x; coordArray[k+1]= coords[i].y; } transform.transform(coordArray,0,outArray,0,coordArray.length/2); --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |