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 | |
import os | |
def csv2shp(csv_file, field_x, field_y, shape_file): | |
""" | |
Convert a CSV file with x/y fields into a Shapefile | |
""" | |
table_view = 'csv_file_as_view' | |
layer = 'xy_event_layer' |
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
//Get Coordinates From Javascript Call | |
$latMin = $_GET["c1"]; | |
$lonMin = $_GET["c2"]; | |
$latMax = $_GET["c3"]; | |
$lonMax = $_GET["c4"]; | |
//Gather Coordinates Into a MySQL Polygon Geometry Type | |
$bounds = "GeomFromText('POLYGON((".$lonMin." ".$latMin.",".$lonMin."," .$latMax.",".$lonMax." ".$latMax.",".$lonMax." ".$latMin.",".$lonMin." ".$latMin."))')"; | |
//Database Fields |
OlderNewer