Hi,
> what is the issue with long values again? does OJ not support this attribute 
> type? why?
No, OJ supports only STRING, INTEGER, DOUBLE, GEOMETRY, DATE and OBJECT.
Adding new AttributeTypes is possible but the task is not easy, because 
there
are many parts in the code where type is tested (drivers, schema editor, 
including
cast capabilities, many plugins using attributes, and last but not 
least, external
plugins (drivers, Sextante...)
I'm not saying it must not be done, but + and - have to be carefully 
evaluated.

There are probably a few candidates to improve AttributeType
BOOLEAN : probably the first candidate for a change. It exists in most 
formats
and using a checkbox in the UI would make sense.

INTEGER/LONG : I'm working on database connections again, and long integers
is often needed for identifiers as for osm. For my purpose, I think I 
can find a
workaround  with OBJECT type, but long will probably be a + in the long run.
The numeric type in dbf (shapefile) is a 18 character string which is 
more than
a java integer, but not enough for all longs (can be 20 char with - signus).
Replacing Integer by Long is also an option (a bit easier to implement, but
probably not as flexible than adding a new type).

DATE : java Date is Date + Time (but not as precise as a SQL TimeStamp). 
Until
recently, Time was truncated and only Date was kept (maybe to match dbf
date type). I changed it to keep time as long as possible, but 
internally, there
is not AttributeType change.

If some feel the need to improve the AttributeType system it could be a good
idea to create a new wiki page to make concrete propositions, explain what
problem is solved with it and identify how it may impact the code or the 
user...

Michaël
>
> ..ede
>
> On 13.08.2013 11:12, Jukka Rahkonen wrote:
>> Hi,
>>
>> It looks like this change makes parsing two times or more slower but
>> because Integers are not right and if OpenJUMP does not support Long then
>> this is something that must be tolerated.
>>
>> -Jukka-
>>
>> Stefan Steiniger wrote:
>>> Hi Jukka,
>>>
>>> you discovered another bug.
>>> It turned out that I set the Attribute type for the OSM id as Integer,
>>> while it is in reality a Long. Now the conversion does obviously not
>>> work when the number is too big or so. Hence, I had to change the osm id
>>> Attribute type to String.
>>>
>>> should work now with the next NB of PLUS.
>>>
>>> cheers,
>>> stefan
>>>
>>> Am 12.08.13 09:33, schrieb Jukka Rahkonen:
>>>> Hi,
>>>>
>>>> There is a new problem with parsing osm_ids. Have a try with the
>>>> attached
>>>> file with 32897 bus stops which is captured from XAPI with the following
>>>> command
>>>>
>>>> http://www.overpass-api.de/api/xapi?*[highway=bus_stop][bbox=19.39087,59.72041,32.39868,70.14596][@meta]
>>>>
>>>> For me OpenJUMP gives now a negative osm_id for 3175 bus stops.
>>>>
>>>> -Jukka Rahkonen-
>>>>
>>>>
>>>> Stefan Steiniger wrote:
>>>>>> for the technical interested:
>>>>>> For some reason my hasmap to store nodes and ways does not deal with
>>>>>> negative ids (longs), even if convert them to strings. mhm.. will test
>>>>>> next what happens if I replace the "-" by an n or so.
>>>>> wrong: the hasmap is perfect, its just that I copied some JSOM code
>>>>> that
>>>>> made my negative ids to 0, hence the problem...
>>>>>
>>>>> shall be fixed with the next release.
>>>>> At least the bike share send by Jukka file loads now all 70 points :)
>>>>>
>>>>> --
>>>>> -- You received this message because you are subscribed to the Google
>>>>> Groups openjump-users group. To post to this group, send email to
>>>>> [email protected]. To unsubscribe from this group, send
>>>>> email to [email protected]. For more options,
>>>>> visit this group at
>>>>> https://groups.google.com/d/forum/openjump-users?hl=en
>>>>> ---
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups
>>>>> "openjump-users" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an
>>>>> email to [email protected].
>>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>>
>>> --
>>> -- You received this message because you are subscribed to the Google
>>> Groups openjump-users group. To post to this group, send email to
>>> [email protected]. To unsubscribe from this group, send
>>> email to [email protected]. For more options,
>>> visit this group at https://groups.google.com/d/forum/openjump-users?hl=en
>>> ---
>>> You received this message because you are subscribed to the Google Groups
>>> "openjump-users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an
>>> email to [email protected].
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
> ------------------------------------------------------------------------------
> Get 100% visibility into Java/.NET code with AppDynamics Lite!
> It's a free troubleshooting tool designed for production.
> Get down to code-level detail for bottlenecks, with <2% overhead.
> Download for free and get started troubleshooting in minutes.
> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
> _______________________________________________
> Jump-pilot-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>
>


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Jump-pilot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to