Thorsten Reitz ha scritto: > Hi all, > > I have been working with the StreamingRenderer to render a > FeatureCollection with SimpleFeatures. The goal is develop a renderer > which actually renders two different states of the same data in one > panel. You can see the source code for this here: > http://www.esdi-community.eu/repositories/entry/hale/Client/src/eu/esdihumboldt/hale/rcp/views/map/SplitRenderer.java > > Basically, everything is working, with the exception that the data gets > rendered a bit strange: rotated by 90° and flipped along the X axis. > Consequently I assumed it might be a problem with the relatively new CRS > that my data uses (EPSG:31251) and it's Axis definitions, so I directly > parsed the WKT for that, using the result for the MapContext given to > the renderer. That did not solve the issue, so I decided to perform a > transformation of the data to WGS84 first before passing to the renderer > again; however, this time the render output even remains empty. > > Any ideas what might cause, or even better, solve this issue?
Usually that is caused by axis flipping. Are you sure your WKT and your actual data are in agreement when it comes to axis order? To make you an example, by default CRS.decode("EPSG:4326") will return a lat/lon ordered CRS, but if you try to associated that with the typical postgis, oracle or shapefile data you'll get everything rendered rotated, because data is actually stored in lon/lat order. To deal with the "real world" in GeoServer we force all CRS to a lon/lat order, this is the resulting WKT definition of 31251 (as reported by GS): PROJCS["MGI (Ferro) / Austria GK West Zone", GEOGCS["MGI (Ferro)", DATUM["Militar-Geographische Institut (Ferro)", SPHEROID["Bessel 1841", 6377397.155, 299.1528128, AUTHORITY["EPSG","7004"]], AUTHORITY["EPSG","6805"]], PRIMEM["Ferro", -17.666666666666668, AUTHORITY["EPSG","8909"]], UNIT["degree", 0.017453292519943295], AXIS["Geodetic longitude", EAST], AXIS["Geodetic latitude", NORTH], AUTHORITY["EPSG","4805"]], PROJECTION["Transverse Mercator", AUTHORITY["EPSG","9807"]], PARAMETER["central_meridian", 28.0], PARAMETER["latitude_of_origin", 0.0], PARAMETER["scale_factor", 1.0], PARAMETER["false_easting", 0.0], PARAMETER["false_northing", -5000000.0], UNIT["m", 1.0], AXIS["Easting", EAST], AXIS["Northing", NORTH], AUTHORITY["EPSG","31251"]] Cheers Andrea -- Andrea Aime OpenGeo - http://opengeo.org Expert service straight from the developers. ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Geotools-gt2-users mailing list Geotools-gt2-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users