Thank you very much! The opening 'WKT file (set options)' function it works but 
i have some remark *(I am using the "OpenJUMP-Portable-20200805-r6370-PLUS")*:

1. The CSV driver needs for translated properties file else the user get error 
message (in the background at console or Output window).
~~~
[WARN] 10:15:20.179 No translation for key 
'fr.michaelm.jump.drivers.csv.CSVDriverConfiguration$2.Encoding' in bundle 
'language/jump'.
[WARN] 10:15:20.179 Can't find resource for bundle 
java.util.PropertyResourceBundle, key 
fr.michaelm.jump.drivers.csv.CSVDriverConfiguration$2.Encoding no default 
value, the resource key is used: Encoding
[WARN] 10:15:20.194 No translation for key 
'fr.michaelm.jump.drivers.csv.CSVDriverConfiguration$2.Comment line (regex)' in 
bundle 'language/jump'.
[WARN] 10:15:20.194 Can't find resource for bundle 
java.util.PropertyResourceBundle, key 
fr.michaelm.jump.drivers.csv.CSVDriverConfiguration$2.Comment line (regex) no 
default value, the resource key is used: Comment line (regex)
[WARN] 10:15:20.194 No translation for key 
'fr.michaelm.jump.drivers.csv.CSVDriverConfiguration$2.Field separator' in 
bundle 'language/jump'.
[WARN] 10:15:20.194 Can't find resource for bundle 
java.util.PropertyResourceBundle, key 
fr.michaelm.jump.drivers.csv.CSVDriverConfiguration$2.Field separator no 
default value, the resource key is used: Field separator
[WARN] 10:15:20.194 No translation for key 
'fr.michaelm.jump.drivers.csv.CSVDriverConfiguration$2.Header (column names)' 
in bundle 'language/jump'.
[WARN] 10:15:20.194 Can't find resource for bundle 
java.util.PropertyResourceBundle, key 
fr.michaelm.jump.drivers.csv.CSVDriverConfiguration$2.Header (column names) no 
default value, the resource key is used: Header (column names)
[WARN] 10:15:20.194 No translation for key 
'fr.michaelm.jump.drivers.csv.CSVDriverConfiguration$2.Data types' in bundle 
'language/jump'.
[WARN] 10:15:20.194 Can't find resource for bundle 
java.util.PropertyResourceBundle, key 
fr.michaelm.jump.drivers.csv.CSVDriverConfiguration$2.Data types no default 
value, the resource key is used: Data types
[WARN] 10:15:20.194 No translation for key 
'fr.michaelm.jump.drivers.csv.CSVDriverConfiguration$2.Column containing WKT 
geometry' in bundle 'language/jump'.
[WARN] 10:15:20.194 Can't find resource for bundle 
java.util.PropertyResourceBundle, key 
fr.michaelm.jump.drivers.csv.CSVDriverConfiguration$2.Column containing WKT 
geometry no default value, the resource key is used: Column containing WKT 
geometry
~~~
So I suggest handling these error messages.

2. I saw the "csv.properties" and "csv_en.properties" are different. It is 
OK...?

3. I have translated the "csv.properties" and the main "jump_hu.properties" 
files and I am going to attach. *(I have attached the last file at other ticket 
[#268] but maybe  there was not a good idea...)*

4. When I would like to load an WKT file (with set option) it is all right but 
if I want to save the layer to WKT (where I cannot set any options...) then 
file stored only geometry without attribute data. If I save it as CSV then I 
get back the original WKT file.
It is strange in my eyes...

Sincerely,
János


Attachments:

- 
[csv_hu.properties](https://sourceforge.net/p/jump-pilot/bugs/_discuss/thread/acdd6e4ced/c1a7/attachment/csv_hu.properties)
 (1.3 kB; text/plain)
- 
[jump_hu.properties](https://sourceforge.net/p/jump-pilot/bugs/_discuss/thread/acdd6e4ced/c1a7/attachment/jump_hu.properties)
 (311.3 kB; text/plain)


---

** [bugs:#494] Load WKT file with set options**

**Status:** pending
**Labels:** WKT WKT (set options) 
**Created:** Thu Jul 30, 2020 08:54 AM UTC by János Tamás Kis
**Last Updated:** Fri Jul 31, 2020 09:01 PM UTC
**Owner:** michael michaud
**Attachments:**

- 
[proba.jmp](https://sourceforge.net/p/jump-pilot/bugs/494/attachment/proba.jmp) 
(6.5 kB; application/octet-stream)
- 
[proba.wkt](https://sourceforge.net/p/jump-pilot/bugs/494/attachment/proba.wkt) 
(149 Bytes; application/octet-stream)
- 
[reverse.jmp](https://sourceforge.net/p/jump-pilot/bugs/494/attachment/reverse.jmp)
 (7.2 kB; application/octet-stream)
- 
[reverse.wkt](https://sourceforge.net/p/jump-pilot/bugs/494/attachment/reverse.wkt)
 (149 Bytes; application/octet-stream)


I have a simple WKT file with an attribute data (like 'proba.wkt' file) where 
the geomerty is in the second data field/column.
I have open it with the "wkt (set options)" function into a new project.
I have set the "Column containing WKT geometry" listbox to "2".
That was great: I could see the map and data.
I have saved the project as proba.jmp and I saw the
~~~
<key class="java.lang.String">WKT-Column</key>
<value class="java.lang.String">2</value>
~~~
lines in JMP file so I thought everyhing is OK, but when I tried reopen the JMP 
file I got a java.lang.Exception:
>      Field 1 is needed for geometry but [] has only 0 fields.

What was wrong...?

It's OK, I tried other way...
Let be the geometry in the first and the attribute data in the second  data 
field/column (like 'reverse.wkt' file) and open it (with "Column containing WKT 
geometry" listbox to "1" option) and save the project (reverse.jmp). There are 
the
~~~
<key class="java.lang.String">WKT-Column</key>
<value class="java.lang.String">1</value>
~~~
rows.
When I tried reopen then I got the
>      Field 0 is needed for geometry but [] has only 0 fields

exception, similar before but the index is 0...

I am afraid, the JMP files are correct but the loader have wrong about indexing 
besause it try load geometry from other column what I have set and stored in 
JMP file or what am i wrong with?




---

Sent from sourceforge.net because jump-pilot-devel@lists.sourceforge.net is 
subscribed to https://sourceforge.net/p/jump-pilot/bugs/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/jump-pilot/admin/bugs/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to