4
votes
2answers
119 views

Using Spatial References with ArcPy after *.prj files no longer installed by ArcGIS 10.1 for Desktop?

I'm writing a python script that uses the CreateFeatureclass_management tool, without a template. One of the required parameters is a spatial reference. I used to be able to point to the system *.prj ...
0
votes
0answers
27 views

How can I define coordinate system of feature class when overlaying with coordinate zone shapes in python?

I have generated bounding boxes for CAD drawings that do not have defined coordinate system files. I know that each drawing could be in one of 6 different systems that do not overlap. My idea was to ...
2
votes
0answers
219 views

Split a Polygon that Crosses International Date Line, ArcPy [closed]

I have a lots of existing data in WGS-1984 (too much to manually edit). I need to split these lines and polygons by the international date line. More projection information: ...
0
votes
1answer
52 views

How do I check spatial reference on all parameters during Tool Validation?

How do I check spatial reference on all parameters during Tool Validation? Just looking for recommendations. Here is what I have already. This must work with existing validation. import arcpy class ...
1
vote
1answer
141 views

Convert decimal latitude/longitude bounding box to SRID 26910

I have a bounding box specified in decimal latitude/longitude, and need to convert this into a bounding box in the SRID 26910 coordinate system. I've never had to work with different GIS co-ordinate ...
0
votes
2answers
186 views

I get an ERROR 000622 when it checks for arcpy.DefineProjection_management

So the purpose of my code is to create a loop that copies shapefiles from a folder to my folder and change its projection 'GCS_WGS_1984'. Each shapefile starts with the year follow by the month and ...
1
vote
1answer
132 views

Error getting spatial reference as string in arcpy

I am trying to get the string associated with a spatial reference to print into an xml using arcpy and xml.cElementTree. Using the snippet: ... spatial_ref = arcpy.GetParameterAsText(3) ... Prj = ...
0
votes
1answer
67 views

How to reproject Network Dataset from GCS_WGS_1984 to Web Mercator?

I need to know how to change the coordinate system of my feature dataset with its network dataset from GCS_WGS_1984 to Web Mercator. Once I know how to do this, I would like to make a tool in Python ...
2
votes
1answer
121 views

In arcpy, if I subclass the arcpy Spatial Reference class, what is the object argument I would use in the subclass definition?

I want to do something like the following: class SubClassOfSpatialReference(arcpy_spatial_reference_object): def __init__(self, input_data): ... etc. Can I even do this? If so, what exactly ...
0
votes
1answer
426 views

Geographic Transformations using ArcPy vs. Coordinate Systems used by ArcGis online basemaps

I have 3 shape files with undefined projection, but I know which one it was used (Lisboa_Hayford_Gauss_IPCC). I need to 1st Define Projection. It works. I need to transform it from WGS_1984, so I've ...
2
votes
1answer
544 views

How do I get the coordinates of my data frame always in long/lat?

I want to determine the coordinates of my current data frame. To do so I wrote this script: def DataFrame (): mxd = arcpy.mapping.MapDocument("CURRENT") df = ...
2
votes
2answers
375 views

Python script to read coordinate system of an input feature class? [duplicate]

How to read the coordinate system of an input feature class in python script. How we can use "Describe()" function and tool validator for that purpose
1
vote
3answers
525 views

How to create a spatial reference file

I am using python, arctoolbox and arcpy 10.0 I am running a script that is tied to an arctoolbox. The toolbox serves to enter in my parameters. I have a feature layer as an input. The feature layer ...
3
votes
1answer
656 views

getting the specified geographic transformation, or at least the GCS, of a data frame

First, the TLDR digest: I'm getting a bogus value from dataFrame.geographicTransformations on some machines; how do I get the correct value as shown in the properties dialog? and/or Given a spatial ...
5
votes
2answers
795 views

Describing a coordinate system in arcpy

I have a python script in ArcGIS 10.1 which takes in a few inputs from the user. One of the inputs is a coordinate system. I would like to test whether the coordinate system the user chose was ...
2
votes
2answers
301 views

How to calculate the surface using Lambert correction?

i'm using lambert conformal conic , so we have distortions along any given parallel , i would like to get the area used to solve this distortion. I have calculated the area using Shoelace formula , ...
2
votes
1answer
286 views

How to programmatically determine whether a spatial reference factory code is valid?

I am using the following code segment to create a spatial reference. spatialReferance = arcpy.SpatialReference() spatialReferance.factoryCode = spatialReferanceFactoryCode ...
1
vote
2answers
475 views

UTM coordinate conversion to Geographic coordinates

I have about 500 separate files containing GPS points in UTM coordinates from multiple zones. I am looking for a simple and fast python or Php script that i can use to carry out a batch conversion ...
0
votes
1answer
194 views

Check multiple feature classes have same spatial reference

As the title says I've several feature classes. I want to check whether they have same spatial reference using arcpy
14
votes
3answers
2k views

Do ArcGIS SpatialReference object factory codes correspond with EPSG numbers?

I've got a project where I'm reading in geometry objects from text files to put them in ArcSDE. These geometry objects have an associated EPSG code, and I'm looking for a way to ensure they're in the ...
6
votes
3answers
3k views

Writing world file when exporting TIFF using ArcPy Mapping?

According to documentation, the options are: Syntax ExportToTIFF (map_document, out_tiff, {data_frame}, {df_export_width}, {df_export_height}, {resolution}, {world_file}, {color_mode}, ...