Skip to content

Instantly share code, notes, and snippets.

@flire
flire / lam93toLatLon.py
Created Apr 1, 2016
Lambert-93 to WGS84 converter
View lam93toLatLon.py
def lam93toLatLon(x, y):
constants = {
'GRS80E': 0.081819191042816,
'LONG_0': 3,
'XS': 700000,
'YS': 12655612.0499,
'n': 0.7256077650532670,
'C': 11754255.4261
}
View gist:0093180219bd16ad9574
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
import Control.Monad
import Control.Monad.Error
import Data.Char
-------------------1-------------------
data ListIndexError =
ErrTooLargeIndex Int
| ErrNegativeIndex
View gist:a5a2982216c7b1154c4e
grammar org.xtext.rql.RQL //with org.eclipse.xtext.common.Terminals
import "http://www.eclipse.org/emf/2002/Ecore" as ecore
generate rQL "http://www.xtext.org/rql/RQL"
//Model:
// greetings+=Greeting*;
//
//Greeting: