Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I noticed that large number precisions are lost while converting json to csv #266

Open
ronakg11 opened this issue Jun 8, 2023 · 1 comment

Comments

@ronakg11
Copy link

ronakg11 commented Jun 8, 2023

Example json:

{
    "data": [
        [
            6068511140000001,
            {
                "coordinates": [
                    [
                        -118.2252993,
                        34.0864107
                    ],
                    [
                        -118.224834,
                        34.085999
                    ]
                ],
                "type": "LineString"
            }
        ],
        [
            10292320860000001,
            {
                "coordinates": [
                    [
                        -118.183504462242,
                        34.0576910972595
                    ],
                    [
                        -118.183576643467,
                        34.057457447052
                    ],
                    [
                        -118.183595955372,
                        34.0572071075439
                    ]
                ],
                "type": "LineString"
            }
        ]
    ]
}

Converted CSV:

6068511140000001 -118.2252993 34.0864107 -118.224834 34.085999 LineString    
10292320860000000 -118.183504462242 34.0576910972595 -118.183576643467 34.057457447052 LineString -118.183595955372 34.0572071075439

You'll notice that 10292320860000001 in the json became 10292320860000000 in the converted csv.

Can you fix this please? :)

@amtiongson
Copy link

I have the same issue. Is there any update if this has already been fixed? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants