mapbox / mapbox/csv2geojson

Faulty conversion of csv to geojson

Open
#60 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

needs information :pray:
Dominant language
JavaScript
Stars
373
Forks
80
PR merge metrics
No merged PRs in 30d

Description

Hi,

I am getting a faulty conversion whne I convert csv file to geojson. I have got a csv file from .pcd file which contains lat, long, alt. I want to convert the csv file to geojson. the geometry field in geojson file is NULL. I am including a small portion of the geojson file.

Please help

{
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "properties": {
        "   ": "0.488573 0.18476 -0.594612 3819609"
      },
      "geometry": null
    },
    {
      "type": "Feature",
      "properties": {
        "   ": "0.482611 0.18281 -0.588335 3884889"
      },
      "geometry": null
    },
    {
      "type": "Feature",
      "properties": {
        "   ": "0.480358 0.18226 -0.586565 3884629"
      },
      "geometry": null
    },

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing issue #60 with the reported CSV data and inspect how csv2geojson interprets the columns. Compare the generated properties and null geometry with the expected latitude, longitude, and altitude fields; done means the input produces non-null GeoJSON geometry or the required input format is clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.