Giter Site home page Giter Site logo

Comments (5)

jhnwllr avatar jhnwllr commented on June 15, 2024

Hi @harpogophytum,

Getting the geometries right can be hard.

Can you paste WKT text/polygon you are trying to use here?

Also check the web portal simplifier:

https://www.gbif.org/occurrence/search?has_coordinate=true&has_geospatial_issue=false&geometry=POLYGON((-75.5248%2039.73138,-75.52235%2039.73557,-75.52361%2039.73964,-75.53319%2039.74288,-75.53734%2039.7515,-75.54663%2039.75502,-75.55017%2039.7491,-75.54401%2039.74711,-75.54096%2039.73908,-75.5464%2039.73687,-75.55252%2039.73926,-75.5592%2039.73888,-75.57831%2039.72183,-75.59402%2039.72296,-75.60006%2039.71878,-75.59546%2039.7136,-75.59784%2039.7121,-75.60225%2039.71422,-75.60887%2039.71379,-75.60744%2039.70776,-75.60141%2039.69606,-75.59233%2039.69635,-75.58434%2039.6986,-75.5809%2039.70055,-75.57806%2039.71355,-75.55916%2039.71543,-75.55721%2039.71803,-75.55067%2039.72014,-75.55233%2039.72503,-75.54357%2039.72625,-75.53506%2039.7178,-75.53245%2039.71679,-75.53091%2039.71841,-75.51064%2039.71203,-75.50621%2039.72049,-75.52604%2039.72532,-75.5282%2039.72926,-75.5248%2039.73138))&occurrence_status=present
image

from rgbif.

MattBlissett avatar MattBlissett commented on June 15, 2024

There's an example using the ogr2ogr tool for simplification here:

https://github.com/gbif/occurrence/blob/468e9b88b47f6f5133c42c9d098c5596d925920c/occurrence-download/example-jobs/download-from-openstreetmap-polygon.sh#L23-L24

But otherwise I'd look at something like https://rgeos.r-forge.r-project.org/reference/topo-unary-gSimplify.html

from rgbif.

harpogophytum avatar harpogophytum commented on June 15, 2024

from rgbif.

jhnwllr avatar jhnwllr commented on June 15, 2024

The polygon appears to be mostly in a line.

Is this really what you want?

Can you send a screen shot of how it looks in Arc GIS ?

I guess that it isn't projected in WGS84.

from rgbif.

MattBlissett avatar MattBlissett commented on June 15, 2024

Note each pair of coordinates is also swapped. WKT must be POLYGON((longitude1 latitude1, longitude2 latitude2, ..., longitude1, latitude1)) but -106 is less than the minimum latitude of -90°.

from rgbif.

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.