Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DECLARE | |
num_handle NUMBER; | |
str_filename VARCHAR2(2000 Char); | |
clb_tablelist CLOB; | |
str_directory VARCHAR2(30 Char) := 'LOADING_DOCK'; | |
BEGIN | |
str_filename := 'waters_cip_OWPUB_20170823'; | |
--Note you must single quote the table items |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import arcpy,os,http.client,json | |
############################################ | |
# Edit these items per the service to scrape | |
host = "gispub.epa.gov"; | |
service_path = "/arcgis/rest/services/OAR/USEPA_NEI_2005/MapServer/0" | |
output_fgdb = r"c:\esri_dump\fg.gdb"; | |
output_fc = "USEPA_NEI_2005" |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"objectIdFieldName" : "ObjectID", | |
"globalIdFieldName" : "", | |
"geometryType" : "esriGeometryPoint", | |
"spatialReference" : { | |
"wkid" : 4326, | |
"latestWkid" : 4326 | |
}, | |
"fields" : [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"objectIdFieldName" : "OBJECTID", | |
"globalIdFieldName" : "GlobalID", | |
"geometryType" : "esriGeometryPoint", | |
"spatialReference" : { | |
"wkid" : 102100, | |
"latestWkid" : 3857 | |
}, | |
"fields" : [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE OR REPLACE PROCEDURE apex_geojson2sdo( | |
pInput IN CLOB | |
,pOutput OUT MDSYS.SDO_GEOMETRY | |
,pReturnCode OUT INTEGER | |
,pStatusMessage OUT VARCHAR2 | |
) | |
AUTHID CURRENT_USER | |
AS | |
l_values APEX_JSON.T_VALUES; | |
str_test VARCHAR2(4000 Char); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os,sys,arcpy; | |
import xml.dom.minidom as DOM; | |
############################################################################### | |
# Alter the following constants as required | |
############################################################################### | |
project_name = "HydrologicUnits"; | |
ags_service = "HydrologicUnits"; | |
ags_folder = "Support"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE OR REPLACE FUNCTION public.notify_ddl_postgrest() | |
RETURNS event_trigger | |
AS $$ | |
DECLARE | |
obj RECORD; | |
BEGIN | |
FOR obj IN SELECT * FROM pg_event_trigger_ddl_commands() | |
LOOP | |
IF obj.object_type IN ('type','function','procedure') | |
THEN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests; | |
url = "https://echo.epa.gov/files/echodownloads/npdes_biosolids_downloads.zip"; | |
target = r"npdes_biosolids_downloads.zip"; | |
print("\nQuerying " + str(url) + "...\n"); | |
step1 = requests.get( | |
url | |
,allow_redirects=False | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os,sys; | |
import requests,csv,codecs; | |
localdir = os.path.dirname(os.path.abspath(__file__)); | |
target = localdir + os.sep + 'wqp_harvest_20230925.csv'; | |
if os.path.exists(target): | |
os.remove(target); | |
r = requests.get('https://www.waterqualitydata.us/Codes/countrycode?mimeType=json'); |