I'm asking if someone has already done the following description. I don't even know if it's possible.
I would like to use a KML file to generate a polygon recorded on my PostgreSQL database (with PostGIS).
I've got a model containing a location attribute, represented by a RGeo::Cartesian::Point object, and stored in my database as spatial data.
In order to run tests, I need to create some samples of such a model through fixtures.
I tried several…
I'm trying to find out which Region (Polygon) a certain point resides in.
I'm trying to follow Daniel Azuma's RubyConf2012 Geospatial analysis screencast.
The following code always returns nil:
Region.where{st_contains(poly,…
I'm using activerecord-postgis-adapter and squeel in a geo oriented application. Fetching data using various queries based on find and where is working fine and squeel allows me to use PostgreSQL/PostGIS functions to query based on spatial functions…
For a project that uses RGeo, I can't for the life of me find the magic combination to get it to work on GitHub Actions.
Please answer if you've actually got it working on GitHub Actions.
Gemfile
...
gem…
I am working on a hotel application (using ruby on rails), and I am trying to calculate the distance between an hotel and the sea.
I have gathered the geometry of the shoreline points in a geojson file and I am now trying to calculate the distance…
I added a multi_line_string field in my database :
t.geometry "zmpath", limit: {:srid=>4326, :type=>"multi_line_string", :has_z=>true, :has_m=>true}
If I update my table by pgAdmin, the result is persisted but the field stay empty on my update…
Having a geometry column wkb_geometry, srid 4326 that is a MULTILINESTRING I would like to determine which of these records are within a predetermined distance (say 5000m) of a geometry object POINT
while the following method allows to determine if…
I have found this code in stack overflow to do Azimuthal equidistant projection and create a buffer polygon in Python.
aeqd_proj = '+proj=aeqd +lat_0={lat} +lon_0={lon} +x_0=0 +y_0=0'
project = partial(
pyproj.transform,
…
I'd like to transform a point in projected coordinates to lat/lon.
I've read this blog post about transformations and I came up with the following code:
factory_25831 = RGeo::Cartesian.factory(:srid => 25831)
point_25831 =…
I have two models: Search (geom saved on attribute area) and Land (geom saved on attribute geom).
Land is imported from an external service and is saved to DB with specific SRID. EG:
SRID=28992;POLYGON((84078.122 444751.117,84076.78…
In macOS mojave gem install rgeo installs and in irb RGeo::Geos.supported? returns true
Now after doing bundle install and going to rails console via bundle exec rails c, it returns false.
How to resolve this issue with bundler and rgeo geos…
I was checking RGeo and did not find a way to check if a provided data in a GeoJSON in MultiPolygon is a inner ring or exterior ring (I was checking this to just separate out MultiPolygon into separate polygons from a MultiPolygon. Is there a direct…
My point coordinates are in geographic coordinate systems. They are in memory. I need to find the nearest point on the line string to a given point using RGeo library from Ruby.
My scenario is the points are drawn in googlemap as polyline as road…
I am using Ruby on Rails and PostGIS to store GeoJSON map data in a model called, "Map". When I save an object loaded successfully with a simple GeoJSON feature I get the error, "NoMethodError: undefined method `factory' for #".
See below for…