A Pen by Elliott Plack on CodePen.
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
function MetersToLatLon(x, y) { | |
// Converts XY point from Spherical Mercator EPSG:900913 to lat/lon in WGS84 Datum | |
// Source: http://www.maptiler.org/google-maps-coordinates-tile-bounds-projection/ | |
// Source: https://community.esri.com/thread/222695-latlong-unit-conversion-with-arcade#comment-806053 | |
var originShift = 2.0 * PI * 6378137.0 / 2.0; | |
var lon = (x / originShift) * 180.0; | |
var lat = (y / originShift) * 180.0; | |
lat = 180.0 / PI * (2.0 * Atan( Exp( lat * PI / 180.0)) - PI / 2.0); |
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
function MetersToLatLon(x, y) { | |
// Converts XY point from Spherical Mercator EPSG:900913 to lat/lon in WGS84 Datum | |
// Source: http://www.maptiler.org/google-maps-coordinates-tile-bounds-projection/ | |
// Source: https://community.esri.com/thread/222695-latlong-unit-conversion-with-arcade#comment-806053 | |
var originShift = 2.0 * PI * 6378137.0 / 2.0; | |
var lon = (x / originShift) * 180.0; | |
var lat = (y / originShift) * 180.0; | |
lat = 180.0 / PI * (2.0 * Atan( Exp( lat * PI / 180.0)) - PI / 2.0); |
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
function MetersToLatLon(x, y) { | |
// Converts XY point from Spherical Mercator EPSG:900913 to lat/lon in WGS84 Datum | |
// Source: http://www.maptiler.org/google-maps-coordinates-tile-bounds-projection/ | |
// Source: https://community.esri.com/thread/222695-latlong-unit-conversion-with-arcade#comment-806053 | |
var originShift = 2.0 * PI * 6378137.0 / 2.0; | |
var lon = (x / originShift) * 180.0; | |
var lat = (y / originShift) * 180.0; | |
lat = 180.0 / PI * (2.0 * Atan( Exp( lat * PI / 180.0)) - PI / 2.0); | |
return [lat, lon]; |
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
function MetersToLatLon(x, y) { | |
// Converts XY point from Spherical Mercator EPSG:900913 to lat/lon in WGS84 Datum | |
// Source: http://www.maptiler.org/google-maps-coordinates-tile-bounds-projection/ | |
// Source: https://community.esri.com/thread/222695-latlong-unit-conversion-with-arcade#comment-806053 | |
var originShift = 2.0 * PI * 6378137.0 / 2.0; | |
var lon = (x / originShift) * 180.0; | |
var lat = (y / originShift) * 180.0; | |
lat = 180.0 / PI * (2.0 * Atan( Exp( lat * PI / 180.0)) - PI / 2.0); |
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
// =================================================================== // | |
// Arcade Google Street View Point // | |
// by Elliott Plack (eplack@mdot.maryland.gov) // | |
// Description: // | |
// ArcGIS Arcade expression that returns a Google Street View URL // | |
// at a point's location. Add it to the point layer's attributes and // | |
// then reference the link as a URL in the popup. // | |
// =================================================================== // | |
function MetersToLatLon(x, y) { |
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
function MetersToLatLon(x, y) { | |
// Converts XY point from Spherical Mercator EPSG:900913 to lat/lon in WGS84 Datum | |
// Source: http://www.maptiler.org/google-maps-coordinates-tile-bounds-projection/ | |
// Source: https://community.esri.com/thread/222695-latlong-unit-conversion-with-arcade#comment-806053 | |
var originShift = 2.0 * PI * 6378137.0 / 2.0; | |
var lon = (x / originShift) * 180.0; | |
var lat = (y / originShift) * 180.0; | |
lat = 180.0 / PI * (2.0 * Atan( Exp( lat * PI / 180.0)) - PI / 2.0); |
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
<div style="text-align: right;"><font size="2"><img alt="MDOT Logo" src="https://geo.sha.maryland.gov/images/maryland_MDOT_logo_CMYK_croppedtran75.png" /><br /> | |
</font></div> | |
<div style="text-align: center;"><font size="2"><font face="Arial, Helvetica, sans-serif"> | |
{Address}<br /> | |
{City}, {State} {ZIP_Code}<br /> | |
<font color="#8b0000" style=""><a href="{expression/expr0}" style="font-weight: bold;"><font color="#8b0000">View in Connect Explorer Imagery</font><br /></a>(</font></font><a href="mailto:GIS@mdot.maryland.gov?subject=Request%20for%20Oblique%20Imagery%20Access" target="_blank"><font color="#8b0000">Request Access</font></a><font face="Arial, Helvetica, sans-serif" style=""><font color="#8b0000" style="">)<br /><b> </b></font></font></font></div><font face="Arial, Helvetica, sans-serif"><font size="2"> | |
</font><font face="Arial, Helvetica, sans-serif" style=""><font size="2"> | |
<u>MDOT SHA ID#</u>: {SHA_ID_Number}<br /> | |
<u>FMIS ID#</u>:{ID_Number}<br /> | |
<u>MDOT SHA District</u>: {SHA_District}<br /> |
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
REM Replace `gdb_name.gdb` and `name_of_layer` with your own names | |
REM Citation: https://gis.stackexchange.com/a/283981/15499 | |
for %f in (*.shp) do (if not exist test.gdb (ogr2ogr -progress --config shape_encoding "UTF-8" -f "filegdb" gdb_name.gdb %f -nln name_of_layer -lco encoding="UTF-8") Else (ogr2ogr --config shape_encoding "UTF-8" -progress -f "filegdb" -update -append gdb_name.gdb %f -nln name_of_layer -lco encoding="UTF-8")) |
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
## Specify the File Geodatabase workspace | |
gdb = "C:\\Users\\XXXXXXXX\\Documents\\ArcGIS\\Projects\\XXXX.gdb" | |
## Get a list of domains | |
desc = arcpy.Describe(gdb) | |
domains = desc.domains | |
## Loop over the list of domains | |
for domain in domains: | |
## Create an object that represents the name of the Excel file to be created |