migrated to stdio2

moved duplicate code to parameters
parent 6682db66
......@@ -13,6 +13,8 @@ Created on May 27, 2013
import argparse
import sys
import types
from os.path import os
from vec2d import vec2d
#=============================================================================
# PARAMETERS FOR ALL osm2city MODULES
......@@ -189,6 +191,19 @@ def set_parameters(param_dict):
print "Ignoring unknown parameter", k
def getOSMFName():
"""
Returns the Path to the OSM File
"""
return PREFIX + os.sep + OSM_FILE
def getCenterGlobal():
cmin = vec2d(BOUNDARY_WEST, BOUNDARY_SOUTH)
cmax = vec2d(BOUNDARY_EAST, BOUNDARY_NORTH)
return (cmin + cmax) * 0.5
def show():
"""
Prints all parameters as key = value
......
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment