Modify

Opened 10 years ago

Closed 10 years ago

#9592 closed defect (fixed)

mif file import error [translated]

Reported by: ed777@… Owned by: Don-vip
Priority: normal Milestone:
Component: Plugin opendata Version: tested
Keywords: mapinfo mif mid charset windows cyrillic Cc: akks

Description (last modified by Don-vip)

Import format mif/mid with russian symbols in JOSM.
What steps will reproduce the problem?

  1. Запускаю josm
  2. File / Open (Ctrl+O) , choose the mif format
  3. Error: "Unable to read 'bg.mif'. Error: WindowsCyrillic"
Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2013-12-21 02:35:19
Last Changed Author: simon04
Revision: 6502
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2013-12-19 22:48:46 +0100 (Thu, 19 Dec 2013)
Last Changed Rev: 6502

Identification: JOSM/1.5 (6502 ru) Windows 7 64-Bit
Memory Usage: 97 MB / 247 MB (11 MB allocated, but free)
Java version: 1.7.0_51, Oracle Corporation, Java HotSpot(TM) Client VM
VM arguments: [-Djava.security.policy=file:C:\Program Files (x86)\Java\jre7\lib\security\javaws.policy, -DtrustProxy=true, -Xverify:remote, -Djnlpx.home=<java.home>\bin, -Djnlpx.origFilenameArg=C:\Users\Ed.OBLGAZ\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\21\73111055-26a79410, -Djnlpx.remove=false, -Dsun.awt.warmup=true, -Xbootclasspath/a:C:\Program Files (x86)\Java\jre7\lib\javaws.jar;C:\Program Files (x86)\Java\jre7\lib\deploy.jar;C:\Program Files (x86)\Java\jre7\lib\plugin.jar, -Djava.util.Arrays.useLegacyMergeSort=true, -Djnlpx.splashport=4191, -Djnlp.application.href=http://josm.openstreetmap.de/download/josm.jnlp, -Djnlpx.jvm=<java.home>\bin\javaw.exe, -Djnlpx.vmargs=-Djava.util.Arrays.useLegacyMergeSort=true -Djnlp.application.href=http://josm.openstreetmap.de/download/josm.jnlp]
Dataset consistency test: No problems found

Plugin: geotools (29767)
Plugin: jts (29854)
Plugin: opendata (30097)
Plugin: utilsplugin2 (30017)
Line 2. Unknown charset detected: Charset "WindowsCyrillic"
ERROR: java.nio.charset.UnsupportedCharsetException: WindowsCyrillic
java.nio.charset.UnsupportedCharsetException: WindowsCyrillic
	at java.nio.charset.Charset.forName(Charset.java:531)
	at org.openstreetmap.josm.plugins.opendata.core.io.geographic.AbstractMapInfoReader.parseCharset(AbstractMapInfoReader.java:68)
	at org.openstreetmap.josm.plugins.opendata.core.io.geographic.AbstractMapInfoReader.parseCharset(AbstractMapInfoReader.java:55)
	at org.openstreetmap.josm.plugins.opendata.core.io.geographic.MifReader.parseHeaderLine(MifReader.java:349)
	at org.openstreetmap.josm.plugins.opendata.core.io.geographic.AbstractMapInfoReader.parseHeader(AbstractMapInfoReader.java:89)
	at org.openstreetmap.josm.plugins.opendata.core.io.geographic.MifReader.parse(MifReader.java:334)
	at org.openstreetmap.josm.plugins.opendata.core.io.geographic.MifReader.parseDataSet(MifReader.java:80)
	at org.openstreetmap.josm.plugins.opendata.core.io.geographic.MifTabImporter.parseDataSet(MifTabImporter.java:23)
	at org.openstreetmap.josm.io.OsmImporter.loadLayer(OsmImporter.java:110)
	at org.openstreetmap.josm.io.OsmImporter.importData(OsmImporter.java:88)
	at org.openstreetmap.josm.io.OsmImporter.importData(OsmImporter.java:65)
	at org.openstreetmap.josm.plugins.opendata.core.io.AbstractImporter.importData(AbstractImporter.java:48)
	at org.openstreetmap.josm.io.FileImporter.importDataHandleExceptions(FileImporter.java:64)
	at org.openstreetmap.josm.actions.OpenFileAction$OpenFileTask.importData(OpenFileAction.java:331)
	at org.openstreetmap.josm.actions.OpenFileAction$OpenFileTask.realRun(OpenFileAction.java:276)

Attachments (2)

bg.mif (159.4 KB ) - added by ed777@… 10 years ago.
bg.mid (188.6 KB ) - added by ed777@… 10 years ago.

Download all attachments as: .zip

Change History (9)

by ed777@…, 10 years ago

Attachment: bg.mif added

by ed777@…, 10 years ago

Attachment: bg.mid added

comment:1 by Don-vip, 10 years ago

Priority: criticalnormal

comment:2 by Don-vip, 10 years ago

Owner: changed from Ed777 to Don-vip

comment:3 by akks, 10 years ago

Description: modified (diff)
Summary: Ошибка импорта mif файлаmif file import error [translated]

comment:4 by Don-vip, 10 years ago

Description: modified (diff)
Keywords: mapinfo mif mid charset windows cyrillic added; import mif/mid removed

comment:5 by Don-vip, 10 years ago

Hi,
I have almost finished this ticket. Russian language is properly handled now, but there's a problem with your MIF file.
It contains the following directive for the projection:

CoordSys NonEarth Units "m" Bounds (5775184.00060206372, 273158.456546755857) (5777186.97491145879, 276733.524999999907)

This is invalid. According to MapInfo, "NonEarth" is not meant for map data:

Use syntax 2 to explicitly define a non-Earth coordinate system, such as the coordinate system used in a floor plan or other CAD drawing.

=> I cannot guess what's the correct projection. Could you please tell me where it is or export a valid file? The CoordSys clause should mention "Earth".

comment:6 by Don-vip, 10 years ago

Cc: akks added

akks, maybe you can help me too. Do you have any idea where this data could be located?

comment:7 by Don-vip, 10 years ago

Resolution: fixed
Status: newclosed

Fixed in [o30563:30564], [o30566:30568], [o30573:30576], [o30583:30585].

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. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.