Christian Sengstock wrote:
Hi list,

i try to render a point on top of an existing wms-generated map. i have the epsg:xxxx code, mapextent, width/size and so on. It wasn't a big deal to render a point on top of the map as long as i used test coordinates like 5.0 5.0 and a srid of -1 and a default wgs84 crs (as crs of my featureType). but using it with real wms maps and given srids leads to multiple exceptions thrown in the "liteRenderer". They're depending on a faulty instanciation of the crs of my point feature i guess. If the liteRenderer want's to do coordinate tranformations wherefore it needs the coordinatereference system of my featureType exceptions are thrown...

So my question is, how do i create best a single point using a given epsg:xxxx srid string. Do i have to access a epsg database ?
Drop one of the implementations in (epsg-wkt or epsg-hsql) your classpath, and then use the CRS facade classs to do the lookups, and create a MathTransform. Once you have a math transform hunt down the JTS utility class to move your point around.
Additional, how are the JTS srid and the GeoTools coordinatereferencesytem interconnected. It seems to me the JTS srid is not more than an identifier.
And thus every application ignores it.

Jody



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to