GithubHelp home page GithubHelp logo

Comments (4)

mbloch avatar mbloch commented on June 11, 2024

Based on what you've reported, I think I know what is happening, but I won't know for sure if I can't download and test your data file myself.

Your initial filter command takes the boundary of Spain and copies it to a second layer. Your clip command then uses the Spanish boundary layer to clip the first layer. The France country boundary polygon may overlap the Spain boundary just a little bit, so it becomes a tiny sliver polygon after the clip command -- so small that you can't clearly see it, although it shows up in the -inspect command. That's my best guess as to what is happening. If you want to thoroughly remove all of the France features, I suggest that you do that in an initial -filter command, like this: -filter 'tags["ISO3166-1"] == "ES"'.

from mapshaper.

NMC92 avatar NMC92 commented on June 11, 2024

Hi. Thank you for the reply. I will prepare the data in a bit for you to test it yourself.
I'm thinking of manually checking the resulting file, handpicking the few "sliver" Features, put them in a geojson file and then upload them to mapshaper. I'm assuming the view will snap to the tiny slivers so I'll finally be able to see them.

from mapshaper.

NMC92 avatar NMC92 commented on June 11, 2024

I got what the problem is. https://www.openstreetmap.org/note/2121166
There's an island that is French for half of the year but Spanish for the other half. When I use the clip command it does exactly what it is supposed to do. I hate these complicated cases...

from mapshaper.

mbloch avatar mbloch commented on June 11, 2024

good sleuthing!

from mapshaper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.