pysal.lib.cg.lonlat

pysal.lib.cg.lonlat(pointslist)[source]

Converts point order from lat-lon tuples to lon-lat (x,y) tuples

Parameters:
pointslist : list of lat-lon tuples (Note, has to be a list, even for one point)
Returns:
newpts : list with tuples of points in lon-lat order