I am new to GIS and RGeo.
I was using RGeo::Geographics.spherical_factory for creating polygons and point with lat/lon data.
I am getting following errors on polygon.contains?(point)
RGeo::Error::UnsupportedOperation: Method Geometry#contains? not defined.
from /Users/pratuat/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rgeo-0.3.20/lib/rgeo/feature/geometry.rb:409:in `contains?'
I noticed another post recommended the usage of RGeo::Geos.factory instead but again GEOS is said to be
implementation of the SFS using a Cartesian coordinate system.
So whats the right way to achieve polygon.contains?(point) in geographic coordinate system.
PS: Going through
Daniel Azuma's article series, I realized the spatial data I will be using are locale specific and hence it would be good idea to switch to simple_mercator_factory but again the requirements is such that I need to store the locaiton data in lat/lon. How can I work that out ?