Skip to content

Instantly share code, notes, and snippets.

View antoniolocandro's full-sized avatar

Antonio Locandro antoniolocandro

View GitHub Profile
@antoniolocandro
antoniolocandro / ogr_gfs_geom_types.md
Created December 15, 2020 21:12 — forked from walkermatt/ogr_gfs_geom_types.md
List of geometry type codes that can specified in an ogr gfs file.

OGR GFS Geometry Values

The geometry type of a feature class can be specified in a .gfs file used by OGR to map from a GML document to a simple feature schema. The following numbers can be used to specify a specific geometry type:

-2147483647 Point25D
-2147483646 LineString25D
-2147483645 Polygon25D
-2147483644 MultiPoint25D
-2147483643 MultiLineString25D

-2147483642 MultiPolygon25D

@antoniolocandro
antoniolocandro / vincenty
Last active April 11, 2016 22:03 — forked from jtornero/vincenty
Python implementation of Vincenty's direct formula
def vinc_pt(f, a, phi1, lembda1, alpha12, s ) :
import math
"""
Returns the lat and long of projected point and reverse azimuth
given a reference point and a distance and azimuth to project.
lats, longs and azimuths are passed in decimal degrees
Returns ( phi2, lambda2, alpha21 ) as a tuple
Parameters:
===========
f: flattening of the ellipsoid