Tagged Questions
2
votes
1answer
51 views
GDAL/Python: How do I get coordinate system name from SpatialReference?
In Python, using GDAL, I've extracted a raster's projection as a WKT string as follows:
wkt = dataset.GetProjection()
# wkt is ...
1
vote
0answers
21 views
How to identify grid shift file used by osgeo in Python?
I wrote a Python script reprojecting points from a source coordinate reference system (SCRS) to a target one (TCRS) both identified by an EPSG code.
I would like my python script to retrieve details ...
1
vote
1answer
93 views
Change coordinate system in multiple MXDs ArcGIS 9.3 using Python
I have to loop through some folders which may contain *.mxd files and change their coordinate system. I already found this piece of Python which should do the trick for ArcGIS 10.x (from here):
...
2
votes
1answer
50 views
How to get a list of all projections that are currently available in QGIS via the PyQGIS-API
i'm building a QGIS-Plugin and i want the user to choose a CRS out of a combobox in which the coordinates he would enter into some textfields are represented, so these can be converted into another ...
1
vote
1answer
73 views
keeping the coordinate system of raster files in the resulting raster file after operation with numpy
I'm trying to read as array two raster files using ReadAsArray in GDAL/python, perform some map algebra operation on it using numpy and then write the resulting raster file in GTiff format using ...
2
votes
1answer
159 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
1answer
163 views
ogr: how to use epsg database for RD New projection?
I'm trying to assign this EPSG projection to my newly created shapefiles using ogr.
The OGR Projections Tutorial says:
...any geographic coordinate system in the EPSG database can be set by it's ...
2
votes
2answers
200 views
How do I set custom spatial reference/coordinate sys to my shapefile
I have a python code which converts JSON text file to a shapefile. I have to set coordinate system to this shapefile created. I do not want to access the .prj file from my computer as this code will ...
2
votes
1answer
390 views
How to move SHP to gdb with ArcView license?
What I need to do is move all the files into an mxd to a newly created gdb, chechking prj, and update mxd reference.
I have ArcGIS 10 SP4, license ArcView
I studied a bit of Python and get familiar ...
0
votes
1answer
213 views
Generate a random 100x100 m bounding box in any projection in pure Python?
I'm given:
Extend of WMS Layer
SRS
Now I want to, in standard 2.6 Python (no OGR or C lib dependencies), to generate a 100x100m random bounding box within that extent (assuming it is more than ...
2
votes
1answer
1k views
Projecting shapefile with transformation using OGR in python
I want to change coordinate system of a shapefile from British National Grid to WGS84 (in order to be able to convert it to KML later on). To get the best results of projecting I would like to use ...
7
votes
2answers
2k views
Measuring distance in spherical Mercator vs zoned UTM
I've got points in WGS84 lat/long and I'd like to measure "small" (less than say 5km) distances between them.
I can use the haversine formula from http://www.movable-type.co.uk/scripts/latlong.html ...
16
votes
6answers
9k views
How can I define projections for multiple shape files in ArcMap 10 at once?
I have over 100 shape files that don't have .prj file and thus when I bring them into ArcMap they show the coordinate system as unknown. I know all of the shape files coordinate system is GCS WGS ...
