From: Martin D. <mar...@no...> - 2005-06-27 22:26:49
|
Antonio Caccese a =E9crit : > GRAVE: Data source and map context coordinate system differ, yet it was= not possible to get a projected bounds estimate... > org.opengis.referencing.operation.OperationNotFoundException: Bursa wol= f parameters required. > at org.geotools.referencing.operation.DefaultCoordinateOperationFactor= y.createOperationStep(DefaultCoordinateOperationFactory.java:1078) I'm not aware of the details of MapContext work. I guess that it has=20 been improved in order to project automatically the bounds. In this=20 particular case, the projection failed because the CRS don't contains a=20 TOWGS84 element (in WKT format). Which CRS are you using? If you parse CRS from WKT (Well Know Text),=20 does it contains a TOWGS84 element? > question! I asked for the Identify function. The first thing i must do=20 > is the cast from MouseEvent into GeoMouseEvent but it returns me the=20 > following error message when i click on the StyledMapPane (release=20 > 2.0.0): java.lang.ClassCastException > at mapviewer.myStyledMapPane.mouseClicked(myStyledMapPane.java:275) > at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:= 212) > at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:= 211) > at java.awt.Component.processMouseEvent(Component.java:5103) > at org.geotools.gui.swing.MapPane.processMouseEvent(MapPane.java:413) The stack trace show that Map.processMouseEvent has been run, and=20 consequently the MouseEvent should have been converted into a=20 GeoMouseEvent. Could you please (before the cast) try the following: System.out.println(event.getClass()); Martin. |