gouchangjiang / opengeoda

Automatically exported from code.google.com/p/opengeoda
GNU General Public License v3.0
0 stars 0 forks source link

Tools: ASCII and dbf conversion not working properly #116

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
User-reported problem:

The text file where i have the information about the points that i want to 
create, have two variables that are float. The file is like this:

2,3
ID, LATITUDE, LONGITUDE
1522208, 5.5759751, 9.58856010
1522264, 5.5757792, 9.58855450

If i put a dot (.) like a decimal separator GeoDa 0.9.8 creates a shape file 
like the variables latitude and longitude were integer, the result in the table 
is:

ID, LATITUDE, LONGITUDE
1522208, 5.00000, 9.000000
1522264, 5.00000, 9.000000

If i put a comma (,) like a decimal separator GeoDa understand the decimal part 
like another variable (longitude), the result table is:

ID, LATITUDE, LONGITUDE
1522208, 5.5759751, 5.759751
1522264, 5.5757792, 5.757792

_____________________________

I confirmed the problem with our oz9799.txt sample data. 

I also just tested the import from dbf option and it's also not working right: 
It only allows 4 decimals and rounds the last two digits (see attached 
screenshot based on the data above).

Original issue reported on code.google.com by jkoschin...@gmail.com on 2 Feb 2011 at 12:31

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed in upcoming 0.9.8.19 release

Original comment by mmcc...@gmail.com on 7 Feb 2011 at 5:21