Tag Info

New answers tagged


A Nested Shell is a polygon on top of another polygon. Image source


Not an answer to your question but a reference method to compare your results with: Read this PostGIS document http://postgis.net/docs/ST_Length.html Take the Geography example "Return length of WGS 84 geography line" and insert your linestring into the query SELECT ST_Length(the_geog) As length_spheroid, ST_Length(the_geog,false) As length_sphere FROM ...


Writing the shapefile import fiona from fiona.crs import from_epsg my_schema={'geometry': 'Point', 'properties': {'intLanes': 'str', 'y': 'str', 'incLanes': 'str', 'junction_shape': 'str', 'x': 'str', 'type': 'str', 'id': 'str'}} wr_dict = {'geometry': {'type': 'Point', 'coordinates': (488901.97760411515, 5078198.250875515)}, 'properties': {'intLanes': ...


GeoAlchemy may be the better route in this case, but here's a solution that answers the question more directly and doesn't require any modules beyond what is described in the question: from shapely import wkb # .... sql = """SELECT * FROM public.parcels2010_small LIMIT 5;""" parcels = pd.read_sql(sql, engine) for parcel in parcels: parcel.the_geom ...


rgeos is the R counterpart to Python's Shapely. Both Shapely and rgeos are based on GEOS (i.e. the PostGIS engine)

Top 50 recent answers are included