Linked Questions

15 votes
2 answers
42k 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 ...
Moustafa Alzantot's user avatar
9 votes
2 answers
8k 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 ...
BenjaminGolder's user avatar
6 votes
2 answers
2k views

Testing if two GDAL datasets are in same projection

I'm attemping to write a function 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[&...
Rich's user avatar
  • 1,589
3 votes
2 answers
947 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 ...
Selphiron's user avatar
  • 775
3 votes
2 answers
743 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 ...
tinlyx's user avatar
  • 11.1k
0 votes
2 answers
617 views

Transforming arbitrary .prj to EPSG:4326 using GDAL for use with ogr_fdw

I'm looking for the correct method using GDAL (most recent trunk on Ubuntu) or its Python API to get the correct EPSG code for a given prj file WITHOUT relying on the prj2epsg webservice or any ...
THX1138's user avatar
  • 1,621
4 votes
1 answer
2k 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 ...
hpy's user avatar
  • 3,157
2 votes
1 answer
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", ...
Llaves's user avatar
  • 5,963
1 vote
1 answer
919 views

Does pyshp provide CRS?

I am using https://pypi.org/project/pyshp/ to read records and geometry. Is there a way to read CRS data without pyproj or fiona?
Vincent Buscarello's user avatar
1 vote
1 answer
151 views

Why prj2epsg cannot resolve PostGIS SRText?

In many places I have seen people referring to http://prj2epsg.org (here, here). I have used this service too, however, the service cannot uniquely identify an EPSG code alway. I understand that it ...
Mohayemin's user avatar
  • 289
1 vote
1 answer
685 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..
user2227374's user avatar
1 vote
1 answer
2k 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. ...
webdad3's user avatar
  • 157
1 vote
0 answers
150 views

Determining EPSG code for coordinate transformation using ArcPy? [closed]

I am trying to write a Python script which will identify the EPSG code for the coordinate transformation. I am familiar with the dataFrame.geographicTransformations function, however this returns a ...
Monkers's user avatar
  • 19
1 vote
0 answers
60 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, ...
Nyxynyx's user avatar
  • 1,687
1 vote
0 answers
135 views

How to import multiple shapefiles each with different source projections to postgis

I have a couple thousand .zip files each with a .shp, .dbf, .shx, and .prj inside them that I want to load into postgis. The problem is, they have many different source projections (each defined in ...
Jesse Vollmar's user avatar

15 30 50 per page