Comments (2)
The clip
command does not transfer attribute data from the clipping shapes to the target shapes (it sounds like this is what you want to do). You can try the -union
command, which takes two target layers and combines them into a single output layer, while retaining attributes from both layers. After running -union
, you would use -filter
to retain only those shapes that have attributes from both of the input layers. Try running -union target=PLU_0,communes
in the web UI console and inspect the result... that may put you on the right track.
from mapshaper.
@mbloch great thanks this is working as expected !
mapshaper -i communes.shp -i PLU_0.json \
-union target=PLU_0,communes \
-filter 'partition != null' \
-o PLU_0.shp
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
- 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.