Details
-
Type:
Bug
-
Status:
Analysis
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: UDIG 1.1.RC3
-
Fix Version/s: UDIG 1.4.1
-
Component/s: tools and editing
-
Labels:None
-
Environment:xp , 1.1-RC3 , java 1.50_04-b05
Description
I loaded a shapefile with no projection and then defined the projection through the "Properties for" window. I then attempted to edit the file with no success. I could not even select a feature. The following stack trace was taken from the error log after attempting to select a feature to edit
!ENTRY net.refractions.udig.tools.edit 1 0 2006-09-29 10:56:53.107
!MESSAGE
!STACK 0
org.geotools.referencing.operation.projection.PointOutsideEnvelopeException: Longitude 980565°48.8'E is out of range (±180°).
at org.geotools.referencing.operation.projection.MapProjection.transform(MapProjection.java:621)
at org.geotools.referencing.operation.projection.MapProjection.transform(MapProjection.java:678)
at net.refractions.udig.tools.edit.support.PointCoordCalculator.toPoint(PointCoordCalculator.java:97)
at net.refractions.udig.tools.edit.support.EditBlackboard.toPoint(EditBlackboard.java:800)
at net.refractions.udig.tools.edit.support.EditBlackboard.addShell(EditBlackboard.java:1135)
at net.refractions.udig.tools.edit.support.EditBlackboard.doAddGeometry(EditBlackboard.java:1096)
at net.refractions.udig.tools.edit.support.EditBlackboard.doAddGeometry(EditBlackboard.java:1085)
at net.refractions.udig.tools.edit.support.EditBlackboard.setGeometries(EditBlackboard.java:102)
at net.refractions.udig.tools.edit.commands.SetGeomCommand.run(SetGeomCommand.java:102)
at net.refractions.udig.project.command.UndoableComposite.execute(UndoableComposite.java:81)
at net.refractions.udig.project.command.UndoableComposite.run(UndoableComposite.java:50)
at net.refractions.udig.tools.edit.commands.SelectGeometryCommand.setAndRun(SelectGeometryCommand.java:305)
at net.refractions.udig.tools.edit.commands.SelectGeometryCommand.selectAllIntersectedFeatures(SelectGeometryCommand.java:239)
at net.refractions.udig.tools.edit.commands.SelectGeometryCommand.run(SelectGeometryCommand.java:124)
at net.refractions.udig.project.command.CommandManager$Executor.execute(CommandManager.java:402)
at net.refractions.udig.project.command.CommandManager$Executor.run(CommandManager.java:327)
at net.refractions.udig.project.command.CommandManager$Executor.run(CommandManager.java:313)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)
Activity
| Field | Original Value | New Value |
|---|---|---|
| Summary | Can edit newly loaded shapefile with no .prj file. | Can't edit newly loaded shapefile with no .prj file. |
| Description |
I loaded a shapefile with no projection and then defined the projection through the "Properties for" window. I then attempted to edit the file with no success. I could not even select a feature. the following stack trace was taken from the error log after attempting to sleect a feature to edit !ENTRY net.refractions.udig.tools.edit 1 0 2006-09-29 10:56:53.107 !MESSAGE !STACK 0 org.geotools.referencing.operation.projection.PointOutsideEnvelopeException: Longitude 980565°48.8'E is out of range (±180°). at org.geotools.referencing.operation.projection.MapProjection.transform(MapProjection.java:621) at org.geotools.referencing.operation.projection.MapProjection.transform(MapProjection.java:678) at net.refractions.udig.tools.edit.support.PointCoordCalculator.toPoint(PointCoordCalculator.java:97) at net.refractions.udig.tools.edit.support.EditBlackboard.toPoint(EditBlackboard.java:800) at net.refractions.udig.tools.edit.support.EditBlackboard.addShell(EditBlackboard.java:1135) at net.refractions.udig.tools.edit.support.EditBlackboard.doAddGeometry(EditBlackboard.java:1096) at net.refractions.udig.tools.edit.support.EditBlackboard.doAddGeometry(EditBlackboard.java:1085) at net.refractions.udig.tools.edit.support.EditBlackboard.setGeometries(EditBlackboard.java:102) at net.refractions.udig.tools.edit.commands.SetGeomCommand.run(SetGeomCommand.java:102) at net.refractions.udig.project.command.UndoableComposite.execute(UndoableComposite.java:81) at net.refractions.udig.project.command.UndoableComposite.run(UndoableComposite.java:50) at net.refractions.udig.tools.edit.commands.SelectGeometryCommand.setAndRun(SelectGeometryCommand.java:305) at net.refractions.udig.tools.edit.commands.SelectGeometryCommand.selectAllIntersectedFeatures(SelectGeometryCommand.java:239) at net.refractions.udig.tools.edit.commands.SelectGeometryCommand.run(SelectGeometryCommand.java:124) at net.refractions.udig.project.command.CommandManager$Executor.execute(CommandManager.java:402) at net.refractions.udig.project.command.CommandManager$Executor.run(CommandManager.java:327) at net.refractions.udig.project.command.CommandManager$Executor.run(CommandManager.java:313) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76) |
I loaded a shapefile with no projection and then defined the projection through the "Properties for" window. I then attempted to edit the file with no success. I could not even select a feature. The following stack trace was taken from the error log after attempting to select a feature to edit !ENTRY net.refractions.udig.tools.edit 1 0 2006-09-29 10:56:53.107 !MESSAGE !STACK 0 org.geotools.referencing.operation.projection.PointOutsideEnvelopeException: Longitude 980565°48.8'E is out of range (±180°). at org.geotools.referencing.operation.projection.MapProjection.transform(MapProjection.java:621) at org.geotools.referencing.operation.projection.MapProjection.transform(MapProjection.java:678) at net.refractions.udig.tools.edit.support.PointCoordCalculator.toPoint(PointCoordCalculator.java:97) at net.refractions.udig.tools.edit.support.EditBlackboard.toPoint(EditBlackboard.java:800) at net.refractions.udig.tools.edit.support.EditBlackboard.addShell(EditBlackboard.java:1135) at net.refractions.udig.tools.edit.support.EditBlackboard.doAddGeometry(EditBlackboard.java:1096) at net.refractions.udig.tools.edit.support.EditBlackboard.doAddGeometry(EditBlackboard.java:1085) at net.refractions.udig.tools.edit.support.EditBlackboard.setGeometries(EditBlackboard.java:102) at net.refractions.udig.tools.edit.commands.SetGeomCommand.run(SetGeomCommand.java:102) at net.refractions.udig.project.command.UndoableComposite.execute(UndoableComposite.java:81) at net.refractions.udig.project.command.UndoableComposite.run(UndoableComposite.java:50) at net.refractions.udig.tools.edit.commands.SelectGeometryCommand.setAndRun(SelectGeometryCommand.java:305) at net.refractions.udig.tools.edit.commands.SelectGeometryCommand.selectAllIntersectedFeatures(SelectGeometryCommand.java:239) at net.refractions.udig.tools.edit.commands.SelectGeometryCommand.run(SelectGeometryCommand.java:124) at net.refractions.udig.project.command.CommandManager$Executor.execute(CommandManager.java:402) at net.refractions.udig.project.command.CommandManager$Executor.run(CommandManager.java:327) at net.refractions.udig.project.command.CommandManager$Executor.run(CommandManager.java:313) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76) |
| Fix Version/s | UDIG 1.1.0 [ 12625 ] |
| Fix Version/s | UDIG 1.1.1 [ 11974 ] | |
| Description |
I loaded a shapefile with no projection and then defined the projection through the "Properties for" window. I then attempted to edit the file with no success. I could not even select a feature. The following stack trace was taken from the error log after attempting to select a feature to edit !ENTRY net.refractions.udig.tools.edit 1 0 2006-09-29 10:56:53.107 !MESSAGE !STACK 0 org.geotools.referencing.operation.projection.PointOutsideEnvelopeException: Longitude 980565°48.8'E is out of range (±180°). at org.geotools.referencing.operation.projection.MapProjection.transform(MapProjection.java:621) at org.geotools.referencing.operation.projection.MapProjection.transform(MapProjection.java:678) at net.refractions.udig.tools.edit.support.PointCoordCalculator.toPoint(PointCoordCalculator.java:97) at net.refractions.udig.tools.edit.support.EditBlackboard.toPoint(EditBlackboard.java:800) at net.refractions.udig.tools.edit.support.EditBlackboard.addShell(EditBlackboard.java:1135) at net.refractions.udig.tools.edit.support.EditBlackboard.doAddGeometry(EditBlackboard.java:1096) at net.refractions.udig.tools.edit.support.EditBlackboard.doAddGeometry(EditBlackboard.java:1085) at net.refractions.udig.tools.edit.support.EditBlackboard.setGeometries(EditBlackboard.java:102) at net.refractions.udig.tools.edit.commands.SetGeomCommand.run(SetGeomCommand.java:102) at net.refractions.udig.project.command.UndoableComposite.execute(UndoableComposite.java:81) at net.refractions.udig.project.command.UndoableComposite.run(UndoableComposite.java:50) at net.refractions.udig.tools.edit.commands.SelectGeometryCommand.setAndRun(SelectGeometryCommand.java:305) at net.refractions.udig.tools.edit.commands.SelectGeometryCommand.selectAllIntersectedFeatures(SelectGeometryCommand.java:239) at net.refractions.udig.tools.edit.commands.SelectGeometryCommand.run(SelectGeometryCommand.java:124) at net.refractions.udig.project.command.CommandManager$Executor.execute(CommandManager.java:402) at net.refractions.udig.project.command.CommandManager$Executor.run(CommandManager.java:327) at net.refractions.udig.project.command.CommandManager$Executor.run(CommandManager.java:313) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76) |
I loaded a shapefile with no projection and then defined the projection through the "Properties for" window. I then attempted to edit the file with no success. I could not even select a feature. The following stack trace was taken from the error log after attempting to select a feature to edit !ENTRY net.refractions.udig.tools.edit 1 0 2006-09-29 10:56:53.107 !MESSAGE !STACK 0 org.geotools.referencing.operation.projection.PointOutsideEnvelopeException: Longitude 980565°48.8'E is out of range (±180°). at org.geotools.referencing.operation.projection.MapProjection.transform(MapProjection.java:621) at org.geotools.referencing.operation.projection.MapProjection.transform(MapProjection.java:678) at net.refractions.udig.tools.edit.support.PointCoordCalculator.toPoint(PointCoordCalculator.java:97) at net.refractions.udig.tools.edit.support.EditBlackboard.toPoint(EditBlackboard.java:800) at net.refractions.udig.tools.edit.support.EditBlackboard.addShell(EditBlackboard.java:1135) at net.refractions.udig.tools.edit.support.EditBlackboard.doAddGeometry(EditBlackboard.java:1096) at net.refractions.udig.tools.edit.support.EditBlackboard.doAddGeometry(EditBlackboard.java:1085) at net.refractions.udig.tools.edit.support.EditBlackboard.setGeometries(EditBlackboard.java:102) at net.refractions.udig.tools.edit.commands.SetGeomCommand.run(SetGeomCommand.java:102) at net.refractions.udig.project.command.UndoableComposite.execute(UndoableComposite.java:81) at net.refractions.udig.project.command.UndoableComposite.run(UndoableComposite.java:50) at net.refractions.udig.tools.edit.commands.SelectGeometryCommand.setAndRun(SelectGeometryCommand.java:305) at net.refractions.udig.tools.edit.commands.SelectGeometryCommand.selectAllIntersectedFeatures(SelectGeometryCommand.java:239) at net.refractions.udig.tools.edit.commands.SelectGeometryCommand.run(SelectGeometryCommand.java:124) at net.refractions.udig.project.command.CommandManager$Executor.execute(CommandManager.java:402) at net.refractions.udig.project.command.CommandManager$Executor.run(CommandManager.java:327) at net.refractions.udig.project.command.CommandManager$Executor.run(CommandManager.java:313) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76) |
| Fix Version/s | UDIG 1.1.0 [ 12625 ] |
| Fix Version/s | UDIG 1.1.2 [ 14910 ] | |
| Fix Version/s | UDIG 1.1.1 [ 11974 ] |
| Component/s | tool edit [ 11367 ] | |
| Component/s | tool [ 11253 ] |
| Assignee | Jesse Eichar [ jeichar@refractions.net ] |
| Fix Version/s | UDIG 1.2.M4 [ 15071 ] |
| Workflow | jira [ 60973 ] | udig [ 107512 ] |
| Fix Version/s | UDIG 1.2.M4 [ 15071 ] | |
| Fix Version/s | UDIG 1.2.M5 [ 15119 ] |
| Fix Version/s | UDIG 1.2.M6 [ 15474 ] | |
| Fix Version/s | UDIG 1.2.M5 [ 15119 ] |
| Fix Version/s | UDIG 1.2.M7 [ 15476 ] | |
| Fix Version/s | UDIG 1.2.M6 [ 15474 ] |
| Fix Version/s | UDIG 1.2.M9 [ 16115 ] | |
| Fix Version/s | UDIG 1.1.2 [ 14910 ] | |
| Fix Version/s | UDIG 1.2.M7 [ 15476 ] |
| Fix Version/s | UDIG 1.2.M9 [ 16115 ] | |
| Fix Version/s | UDIG 1.2.RC [ 16163 ] |
| Fix Version/s | UDIG 1.2.0 [ 16264 ] | |
| Fix Version/s | UDIG 1.2.RC [ 16163 ] |
| Fix Version/s | UDIG 1.2.1 [ 16440 ] | |
| Fix Version/s | UDIG 1.2.0 [ 16264 ] |
| Fix Version/s | UDIG 1.2.x [ 15072 ] | |
| Fix Version/s | UDIG 1.2.1 [ 16440 ] |
| Fix Version/s | UDIG 1.2.3 [ 17485 ] | |
| Fix Version/s | UDIG 1.2.2 [ 15072 ] |
| Fix Version/s | uDig 1.3.0 [ 17860 ] | |
| Fix Version/s | UDIG 1.2.3 [ 17485 ] |
| Fix Version/s | UDIG 1.2.3 [ 17485 ] | |
| Fix Version/s | uDig 1.3.0 [ 17860 ] |
| Fix Version/s | UDIG 1.3.1 [ 18149 ] | |
| Fix Version/s | UDIG 1.3.0 [ 17485 ] |
| Fix Version/s | UDIG 1.3.2 [ 18235 ] | |
| Fix Version/s | UDIG 1.3.1 [ 18149 ] |
| Fix Version/s | UDIG 1.3.2 [ 18235 ] | |
| Fix Version/s | UDIG 1.3.3 [ 18773 ] |
| Fix Version/s | UDIG 1.4.1 [ 19165 ] | |
| Fix Version/s | UDIG 1.4.0 [ 18773 ] |
CoordinateReferenceSystem mapCrs = activeMap.getViewportModel()
.getCRS();
CoordinateReferenceSystem outputCrs = CRS.parseWKT(crsString);
MathTransform mathTransform = CRS.findMathTransform(outputCrs,
mapCrs);
aware of the fact that the bursa parameters could be problematic, I
decided to choose 2 projections that do not have towgs84 parameters: UTM
zone 32 on wgs84 and the latlong wgs84.
The error is:
org.geotools.referencing.operation.projection.PointOutsideEnvelopeException:
Longitude 703600°38.8'E is out of range (±180°).
Which means that it interprets the metric values as degrees.
Anyone aware of how this should be done and if it can be done?