Comments (3)
Hi, yes, this is a Shapefile limitation. The expression data = collect("Groupe personne")
creates a field named "data" containing arrays of integers (in this case). GeoJSON supports array data but Shapefile doesn't. You could use another command to transform the arrays to strings, for example:
-each 'groups = JSON.stringify(data)'
Also, you need to change data = collect("Groupe personne")
to data = collect(d["Groupe personne"])
for the command to work correctly (see issue #592)
from mapshaper.
The problem exist with the SHP output but is not present with the JSON output. Is this a shapefile limitation?
from mapshaper.
Thanks for the proposition !
from mapshaper.
Related Issues (20)
- How to deal with space in csv header HOT 2
- snap option removed from import tab on web version HOT 2
- Is there a way to use a polygon as it was a blade? HOT 3
- Clip not working with small gaps HOT 3
- Combine layers, merge and export flatten fields as csv HOT 2
- idea for-clip feature HOT 1
- mapshaper-gui error in linux ubuntu HOT 1
- About the rendering HOT 3
- Add a security policy HOT 1
- How can I use mapshaper in vue3+vite project? HOT 4
- -split command line option not working for attribute name that contains "-" HOT 1
- Can't run multiple -each commands on large files HOT 8
- targets.forEach is not a function HOT 2
- Uncaught (in promise) Error: Each LinearRing of a Polygon must have 4 or more Positions. HOT 8
- msx/snapshort format without history HOT 6
- `run` command that imports the return value HOT 13
- `dots` with `per-dot` can bias downward the number of dots in small categories HOT 4
- this.geojson.geometry problem HOT 6
- Convert EPSG from a csv file HOT 3
- The -i command cannot be run in the browser HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mapshaper.