Giter Site home page Giter Site logo

olliebennett / landgrab Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 2.0 1.08 MB

LandGrab - Fundraise protected land, one square at a time

Home Page: https://landgrabdemo.herokuapp.com/

Ruby 50.24% JavaScript 0.02% CSS 0.25% HTML 47.20% Shell 2.13% Procfile 0.03% Dockerfile 0.14%
maps nature postgis postgresql rails rewilding what3words

landgrab's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar olliebennett avatar

Watchers

 avatar  avatar

Forkers

blkluv

landgrab's Issues

Environment discrepancy in RGeo/PostGIS data types

On localhost;

plot = Plot.last
plot.polygon
=> #<RGeo::Geos::CAPIPolygonImpl:0x25e4 "POLYGON ((-0.000815 51.477568, -0.000459 51.477683, -0.000657 51.477932, -0.00074 51.477959, -0.000826 51.477962, -0.000971 51.477906, -0.00103 51.47785, -0.000815 51.477568))">

On production;

plot = Plot.last
plot.polygon
=> #<RGeo::Cartesian::PolygonImpl:0x2d64 "POLYGON ((-0.002197 51.478033, -0.001931 51.478064, -0.001861 51.477899, -0.002197 51.478033))">

It's not clear why local creates RGeo::Geos::CAPIPolygonImpl objects yet production creates RGeo::Cartesian::PolygonImpl objects.

This difference results in a production-only crash when accessing the centroid of the polygon;

ActionView::Template::Error (Method Surface#centroid not defined.):
app/models/plot.rb:8:in `centroid_coords'

Another difference; RGeo::Geos.supported? returns true in the working environment and false otherwise... perhaps related!

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.