Skip to content

Instantly share code, notes, and snippets.

# code source: GIS stack exchange: https://gis.stackexchange.com/questions/266897/how-to-get-around-the-1000-objectids-limit-on-arcgis-server?newreg=e085133f1a9d475b99c094e1c497a2a5
import numpy as np
import pandas as pd
import geopandas as gpd
import urllib.parse
import requests
def query_arcgis_feature_server(url_feature_server=''):
'''
@emilyeros
emilyeros / Tracing_guide_Dar.md
Last active December 23, 2020 12:32
Tracing guide for Dar es Salaam, Tanzania (HOT Task 1083)

#OSM Tracing Guide for Dar es Salaam, Tanzania

The Dar es Salaam area has experienced deadly flash floods in recent months, and the map data generated by this event will be used to develop an early warning system to alert residents of future flooding.

This tracing guide focuses on the most important features in the area: buildings and roads.

##Getting started

We have some fancy hi-res imagery from DigitalGlobe, for your tracing pleasure. iD editor should default to using this, but if your imagery looks blurry or hard to see, double-check that imagery is set to Custom

@emilyeros
emilyeros / counter.py
Last active March 11, 2020 17:21
Emily pi wheel script
import gpiozero
from signal import pause
print("i have started!")
# Defines GPIO pins for buttons on wheel handle. These handle default to high voltage, drops when button pressed. Only the clear button is currently in use.
# mft = gpiozero.DigitalInputDevice(16, pull_up=True)
# sm = gpiozero.DigitalInputDevice(26, pull_up=True)
# rm = gpiozero.DigitalInputDevice(20, pull_up=True)
@emilyeros
emilyeros / curblr_osmconf.ini
Created December 3, 2019 23:40
OSM config preset for converting into CurbLR GIS data
#
# Configuration file for OSM import
#
# put here the name of keys, or key=value, for ways that are assumed to be polygons if they are closed
# see http://wiki.openstreetmap.org/wiki/Map_Features
closed_ways_are_polygons=aeroway,amenity,boundary,building,craft,geological,historic,landuse,leisure,military,natural,office,place,shop,sport,tourism,highway=platform,public_transport=platform
# comment to avoid laundering of keys ( ':' turned into '_' )
attribute_name_laundering=yes
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.
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.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.