Linked Questions

21
votes
3answers
31k views

How can I get the proj4 string or EPSG code from a shapefile .prj file? [duplicate]

I have to work with a shapefile defined in an unusual projection, which my GIS software does not know about. How can I get the proj4 definition or the EPSG code for the projection?
1
vote
1answer
1k views

Getting SRID from prj file? [duplicate]

I've seen varying questions relating to this question. Except mine revolves around C#. I'm trying to validate that the projection I'm expecting matches what is in all the .shp files I'm reading. ...
1
vote
1answer
230 views

How to identify EPSG of any shapefile [duplicate]

I have a shapefile, imported in PostgreSQL using PostGIS when this shapefile is published in GeoServer it didn't show any layer. I had used EPSG:4326..
1
vote
0answers
56 views

Determining the SRID of a dataset in PostGIS [duplicate]

Sometimes the dataset provides some information about its projection. For example, it can mention Horizontal_Datum_Name: North American Datum of 1983, Ellipsoid_Name: GRS1980, ...
22
votes
3answers
11k views

Is it possible to get the EPSG value from an OSR SpatialReference class using the OGR Python API?

When reading a layer from a OGR PostGIS connection I can get the SpatialReference of the layer, but is it possible to get the EPSG value? Is there any documentation on this? For example: lyr = conn....
14
votes
2answers
30k views

Choosing the correct value for proj4string for shapefile reading in R?

I am having a shapefile of polygons and another CSV file which contains a list of points as (Lat, Lng) pairs.. I want to check for each (lat, lng) pair from the CSV file which polygon does it fall ...
14
votes
4answers
6k views

What is the best way to programmatically convert between WKT and Proj4 string?

Some shapefiles have a .prj file associated with it, and the .prj file contains the projection info of the shapefile in the format of WKT. Sometimes I need to convert WKT to proj4 string, and ...
7
votes
2answers
6k views

ogr2ogr srs options: where is the well known definition determined?

In the ogr2ogr documentation it says that when using -a_srs srs_def: Srs_def can be a full WKT definition (hard to escape properly), or a well known definition (ie. EPSG:4326) or a file with a WKT ...
7
votes
4answers
4k views

How to find and apply reprojection parameters?

I have a data set in one projection, and a shapefile in another, and I am trying to combine the two. I am using Python. I apologize for posting a "help me transform coordinates" question on this site -...
4
votes
1answer
1k views

Matching ArcGIS and QGIS coordinate systems

I have the following info for a feature class in ArcGIS that is supposed to be in WGS 1984/UTM 16N projected coordinate system: Projection: Transverse_Mercator False_Easting: 500000.000000 ...
3
votes
1answer
821 views

How to test if two GDAL datasets are in the same projection?

I'm attemping to write a funciton to test if a list of datasets are in the same projection. Naively, I thought I could test the text of WKTs, but that does not work in the following case: 'PROJCS["...
3
votes
2answers
605 views

Seeking command line tool for converting projection in .prj and GeoTiff to EPSG codes [closed]

Is there a command line tool to convert a shapefile projection in the .prj file into corresponding EPSG code? I know that there is website http://prj2epsg.org/search for doing this online, but I ...
3
votes
2answers
639 views

Find unit of EPSG-Code

I need a way to find out the unit of an EPSG-Code (e.g: meter) from java (ogr, gdal, osgeo?) but any other approach would be fine as well. I want to do something like: if(epsg.unit==meter){ do ...
1
vote
3answers
1k views

Dealing with custom projections (from prj file) in PostGIS (also GeoServer and OpenLayers)

Basically I want to perform spatial queries like distance calculations in PostGIS using data from shapefiles with different projections, some of which have no SRID code that I can find and also which ...
1
vote
1answer
1k views

What's the best way to add a projection to GDAL?

I have a number of files in Maryland State-Plane (US foot) that have the following wkt: PROJCS["NAD_1983_StatePlane_Maryland_FIPS_1900_Feet", GEOGCS["NAD83", DATUM["North_American_Datum_1983", ...

15 30 50 per page