mapbox / mapbox/shp-write

the example test_linestring.js creates shapefile with null geometry

Open
#47 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
321
Forks
195
PR merge metrics
No merged PRs in 30d

Description

I run the `example/test_linestring.js` in the latest (v3.2.0) repo and it works with no error. But the generated shapefile is not rendered correctly at QGIS because the geometry is NULL, though the properties are properly saved.

![screenshot from 2017-03-07 23-00-21](https://cloud.githubusercontent.com/assets/1726265/23689619/e9eedefa-0389-11e7-9216-6b0d94634905.png)

I run the script with Node v7.2.1 and open the shapefile with QGIS 2.16.1 in Ubuntu 16.04.

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 running example/test_linestring.js with the reported Node and QGIS versions, then inspect the generated shapefile and trace why its LineString geometry is null while properties are saved. Done means the example produces a shapefile whose geometry renders correctly in QGIS without losing its properties.

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
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.