Skip to content

Instantly share code, notes, and snippets.

View AlexArcPy's full-sized avatar

Alexey Tereshenkov AlexArcPy

View GitHub Profile
@AlexArcPy
AlexArcPy / project_multiple_shapefiles.py
Created April 20, 2016 20:01
Call FME workbench from Python: FMEWorkspaceRunner and dynamic workspace
import sys
import os
sys.path.append(r"C:\Program Files (x86)\FME\fmeobjects\python27")
import fmeobjects
#----------------------------------------------------------------------
def project_multiple_shapefiles():
"""Finds all shapefiles in the input folder, projects and outputs
a projected feature type into output folder."""
try:
@AlexArcPy
AlexArcPy / booli.py
Created June 4, 2016 16:26 — forked from emilkaiser/booli.py
Booli API Python
import httplib
import time
from hashlib import sha1
import random
import string
import json
callerId = "YOUR_CALLER_ID"
timestamp = str(int(time.time()))
unique = ''.join(random.choice(string.ascii_uppercase + string.digits) for x in range(16))
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@AlexArcPy
AlexArcPy / citibike.ipynb
Created July 31, 2016 14:39 — forked from kjordahl/citibike.ipynb
Citibike data
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@AlexArcPy
AlexArcPy / Geocoding.ipynb
Created July 31, 2016 14:39 — forked from kjordahl/Geocoding.ipynb
GeoPandas geocoding example
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@AlexArcPy
AlexArcPy / GeoDataFrame.ipynb
Created July 31, 2016 14:39 — forked from kjordahl/GeoDataFrame.ipynb
working with GeoDataFrames in GeoPandas
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@AlexArcPy
AlexArcPy / GeoSeries.ipynb
Created July 31, 2016 14:40 — forked from kjordahl/GeoSeries.ipynb
Working with GeoSeries in GeoPandas
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@AlexArcPy
AlexArcPy / spatialbox.py
Created August 2, 2016 10:14
Verify geospatial Python packages have been installed properly in Anaconda environment
# coding: utf-8
# In[37]:
import sys
print sys.version
# ## Geopy
@AlexArcPy
AlexArcPy / convert.py
Created August 3, 2016 08:16 — forked from jwass/convert.py
Simple script used to convert some shapefiles to GeoJSON, leaving out a few undesired properties. Requires shapely 1.2.18.
import functools
import fiona
import geojson
import pyproj
import shapely.geometry
import shapely.ops
omit = ['SHAPE_AREA', 'SHAPE_LEN']