Modify

Opened 4 years ago

Closed 4 years ago

#12714 closed defect (fixed)

Fails to load shapefile

Reported by: naoliv Owned by: Don-vip
Priority: normal Milestone:
Component: Plugin opendata Version:
Keywords: Cc:

Description (last modified by naoliv)

Trying to open this shapefile http://naoliv.iq.unesp.br/osm/linhas.tar.bz2 in JOSM I am seeing:

ERRO: Complete node with null coordinates: {Node id=-489432 version=0 V }
org.openstreetmap.josm.data.osm.DataIntegrityProblemException: Complete visible node with null coordinates: {Way id=-489436 version=0 V nodes=[{Node id=-489435 version=0 V lat=-12068.84364512037,lon=22150.52648623535}, {Node id=-489432 version=0 V }]}
	at org.openstreetmap.josm.data.osm.Way.checkNodes(Way.java:603)
	at org.openstreetmap.josm.data.osm.Way.fireNodesChanged(Way.java:613)
	at org.openstreetmap.josm.data.osm.Way.setNodes(Way.java:74)
	at org.openstreetmap.josm.plugins.opendata.core.io.geographic.GeographicReader.createOrGetWay(GeographicReader.java:182)
	at org.openstreetmap.josm.plugins.opendata.core.io.geographic.ShpReader.parseFeature(ShpReader.java:150)
	at org.openstreetmap.josm.plugins.opendata.core.io.geographic.ShpReader.parse(ShpReader.java:230)
	at org.openstreetmap.josm.plugins.opendata.core.io.geographic.ShpReader.parseDataSet(ShpReader.java:75)
	at org.openstreetmap.josm.plugins.opendata.core.io.geographic.ShpImporter.parseDataSet(ShpImporter.java:29)
	at org.openstreetmap.josm.io.OsmImporter.loadLayer(OsmImporter.java:122)
	at org.openstreetmap.josm.io.OsmImporter.importData(OsmImporter.java:91)
	at org.openstreetmap.josm.plugins.opendata.core.io.AbstractImporter.importData(AbstractImporter.java:55)
	at org.openstreetmap.josm.io.FileImporter.importDataHandleExceptions(FileImporter.java:91)
	at org.openstreetmap.josm.actions.OpenFileAction$OpenFileTask.importData(OpenFileAction.java:364)
	at org.openstreetmap.josm.actions.OpenFileAction$OpenFileTask.realRun(OpenFileAction.java:317)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:93)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:161)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
ERRO: java.lang.NullPointerException
java.lang.NullPointerException
	at org.openstreetmap.josm.data.Bounds.extend(Bounds.java:304)
	at org.openstreetmap.josm.plugins.opendata.core.layers.OdDataLayer.<init>(OdDataLayer.java:48)
	at org.openstreetmap.josm.plugins.opendata.core.io.AbstractImporter.createLayer(AbstractImporter.java:65)
	at org.openstreetmap.josm.io.OsmImporter.loadLayer(OsmImporter.java:126)
	at org.openstreetmap.josm.io.OsmImporter.importData(OsmImporter.java:91)
	at org.openstreetmap.josm.plugins.opendata.core.io.AbstractImporter.importData(AbstractImporter.java:55)
	at org.openstreetmap.josm.io.FileImporter.importDataHandleExceptions(FileImporter.java:91)
	at org.openstreetmap.josm.actions.OpenFileAction$OpenFileTask.importData(OpenFileAction.java:364)
	at org.openstreetmap.josm.actions.OpenFileAction$OpenFileTask.realRun(OpenFileAction.java:317)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:93)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:161)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)

JOSM:

URL:http://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2016-03-30 22:28:45 +0200 (Wed, 30 Mar 2016)
Build-Date:2016-03-31 01:32:47
Revision:10089
Relative:URL: ^/trunk

Identification: JOSM/1.5 (10089 pt_BR) Linux Debian GNU/Linux testing (stretch)
Memory Usage: 3570 MB / 9102 MB (2448 MB allocated, but free)
Java version: 1.8.0_72-internal-b15, Oracle Corporation, OpenJDK 64-Bit Server VM
VM arguments: [-Dawt.useSystemAAFontSettings=on]
Dataset consistency test: No problems found

Plugins:
- Create_grid_of_ways (31772)
- DxfImport (1006)
- OpeningHoursEditor (31772)
- PicLayer (31895)
- RoadSigns (31895)
- SimplifyArea (31895)
- apache-commons (31895)
- buildings_tools (31895)
- conflation (0.1.9)
- contourmerge (1014)
- download_along (31772)
- editgpx (31772)
- ejml (31895)
- geotools (31895)
- imagery_offset_db (32046)
- importvec (31772)
- indoorhelper (32134)
- jts (31772)
- log4j (31895)
- measurement (31895)
- merge-overlap (31967)
- opendata (32130)
- pbf (32128)
- pdfimport (32019)
- poly (31772)
- reverter (32005)
- scripting (30722)
- todo (29154)
- turnrestrictions (31895)
- undelete (31895)
- utilsplugin2 (32099)

It was created from a DWG saved as DXF in AutoCAD; then the DXF was opened in QGIS 2.14.1 and the line layer exported as a shapefile.

I can provide any of the files if needed.

Attachments (0)

Change History (2)

comment:1 Changed 4 years ago by naoliv

Description: modified (diff)

comment:2 Changed 4 years ago by Don-vip

Resolution: fixed
Status: newclosed

Fixed in [o32139:32140].

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Don-vip.
as The resolution will be set.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.