Exemple #1
0
def buildWatersheds(siteId):
    rhroot = os.path.abspath('C:\\amigos\\dump')
    rhfname = os.path.join(rhroot, ('%s-watersheds.3dm' % siteId))
    # get the json
    siteData = getSite(siteId)
    deleteAll()
    GeoJson2Rhino.load(siteData)
    exportFile(rhfname)
Exemple #2
0
def buildWatersheds(siteId):
    rhroot = os.path.abspath('C:\\amigos\\dump')
    rhfname = os.path.join(rhroot, ('%s-watersheds.3dm' % siteId))
    # get the json
    siteData = getSite(siteId)
    deleteAll()
    GeoJson2Rhino.load(siteData)
    exportFile(rhfname)
Exemple #3
0
def saveSites(idList):
    for id in idList:
        #site = jsons[id]
        root = os.path.abspath('C:\Users\demonchaux\Dropbox\Amigos De Los Rios')
        rhroot = os.path.join(root, 'site3dms')
        rhfname = os.path.join(rhroot, ('%s-site.3dm' % id))
        # get the json
        guids = GeoJson2Rhino.load(site)
        saveDoc(rhfname)
        deleteAll()
Exemple #4
0
def saveSites(idList):
    for id in idList:
        #site = jsons[id]
        root = os.path.abspath(
            'C:\Users\demonchaux\Dropbox\Amigos De Los Rios')
        rhroot = os.path.join(root, 'site3dms')
        rhfname = os.path.join(rhroot, ('%s-site.3dm' % id))
        # get the json
        guids = GeoJson2Rhino.load(site)
        saveDoc(rhfname)
        deleteAll()
Exemple #5
0
def addSite(site):
    # with either a site object or json, makes a site.
    if type(site) == str:
        return GeoJson2Rhino.load(site)
Exemple #6
0
def addSite(site):
    # with either a site object or json, makes a site.
    if type(site) == str:
        return GeoJson2Rhino.load(site)
import rhinoscriptsyntax as rs
import sys
rp_scripts = "rhinopythonscripts"
sys.path.append(rp_scripts)
import rhinopythonscripts

from rhinopythonscripts import GeoJson2Rhino as geojson
g = open('C:/Users/JUWANHA/Desktop/LSM/2021/Study/Seoul/sample.geojson').read()
gj_data = geojson.load(g)