From: Jody G. <jod...@gm...> - 2009-09-01 09:33:46
|
Two ideas ... use an equal are project ... but make up the WKT yourself based on the location you are buffering.... PROJCS["NAD83 / BC Albers", GEOGCS["NAD83", DATUM["North American Datum 1983", SPHEROID["GRS 1980", 6378137.0, 298.257222101, AUTHORITY ["EPSG","7019"]], TOWGS84[1.0, 1.0, -1.0, 0.0, 0.0, 0.0, 0.0], AUTHORITY["EPSG","6269"]], PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]], UNIT["degree", 0.017453292519943295], AXIS["Geodetic longitude", EAST], AXIS["Geodetic latitude", NORTH], AUTHORITY["EPSG","4269"]], PROJECTION["Albers Equal Area", AUTHORITY["EPSG","9822"]], PARAMETER["central_meridian", -126.0], PARAMETER["latitude_of_origin", 45.0], PARAMETER["standard_parallel_1", 50.0], PARAMETER["false_easting", 1000000.0], PARAMETER["false_northing", 0.0], PARAMETER["standard_parallel_2", 58.5], UNIT["m", 1.0], AXIS["Easting", EAST], AXIS["Northing", NORTH], AUTHORITY["EPSG","3005"]] Use one of the Auto projections; this will have the same effect as your database table of 60 UTM zones; see AutoFactory for details... factory = new AutoCRSFactory(); ProjectedCRS utm = factory.createProjectedCRS("AUTO:42001,"+lat","+lon); Jody On 31/08/2009, at 11:05 PM, Alex wrote: > Here are the messages I was forwarding to Roman instead of the > list ... > > > > yeah maybe that's the way I'll do this ... > > > Since my application is going to cover locations everywhere in the > world I need to do things the clean way straight up :) > > I need to get the WGS84 bounds for all 60 UTM zones and their > corresponding EPSG code and create a DB table for easy EPSG code > lookup. > I'll also probably store the UTM code for each point inside the > databse ... that will save me a spatial query during regular buffer > creation ... > > > If anybody has a better ...cleaner approach to submit that would be > very nice to hear : )) > > Thank you Michael and Roman for your help. > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > trial. Simplify your report design, integration and deployment - and > focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july_______________________________________________ > Geotools-gt2-users mailing list > Geo...@li... > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users |