2

I added a csv file with lat and long coordinates, and am trying to display the XY data. The X field is set to longitude, and Y field to latitude, the coordinate system and projection match the data frame, and I have taken out spaces in the csv file. However, when the points load, they project incorrectly and off and away from the rest of the map.

How can I fix this?

csvtable after uploaded

[Sources matchingPoints projected off

1
  • 1
    Please consider posting actual text instead of (or as well as) screenshot images. These images are difficult to read and don't add a lot to the post that couldn't have been better done by copy/paste of text. Also you should include what software you are using (looks like ArcMap) and the steps that you've taken to get to this point. Commented Jun 12, 2018 at 3:23

1 Answer 1

1

It looks like you are using geographic coordinates (latitude/longitude), but you have specified a projected coordinate system, 'WGS 1984 Web Mercator (auxillary sphere)'.

The projected coordinate system you have specified does not use longitude/latitude that range from -180 to +180 (or -90 to +90) but rather coordinates that have numbers in the extent:

  • XMin: -20037507.0671618
  • YMin: -19971868.8804086
  • XMax: 20037507.0671618
  • YMax: 19971868.8804086

So you may want to specify the correct coordinate system (if you know what it is) or at least try a geographic coordinate system instead of a projected one. If you don't know otherwise, you could guess 'WGS 1984', but you may want to use whatever is the standard for your locality if you know what that is.

If your data is from a CSV file, then I'm guessing you have created an XY Event Layer from the CSV table. If so, you should re-create the XY Event Layer with the correct coordinate system. Otherwise, please provide more information on how you got the data from your CSV into a layer in ArcMap.

It looks like you're using ArcMap and this will automatically reproject the layer on-the-fly even if it uses a different coordinate system to the other layers or to the map document itself (as will most other GIS applications). Or if you really want to reproject it so that all layers are in the same coordinate system, you can use the 'Project' tool to create a new feature class with coordinates in whatever projection you want (but you still need to use the correct geographic coordinate system for the original data to start with).

1
  • 1
    It's a problem of assertion, the OP has asserted EPSG:3857 which is what the map is but the data is in a geographic CRS, possibly as you say EPSG:4326 (WGS84/Geographic), the user should change the CRS of the XY data to match the points and then it should all be ok. It's a very common trap for beginners. Commented Jun 12, 2018 at 3:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.