Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7458131
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T13:24:33+00:00 2026-05-29T13:24:33+00:00

EDIT: I have reworded the title question slightly, and adjusted the text to respond

  • 0

EDIT: I have reworded the title question slightly, and adjusted the text to respond to the comment by @DWin.

Combining geographic layers that are projected and not projected can be challenging. Often, it seems, some transformation is necessary, as geographic layers come from different products and publishers.

I am aware that R has several tools to perform geographic transformations. For example:

  1. For objects of class Spatial* in the sp package, the spTransform() function in the rgdal package can be used; and,
  2. For objects of class Raster* in the raster package, the projectRaster() function can be used.

Here is a specific task that I would like to accomplish in R: Transform to UTM grid Zone 15N (Datum: NAD83) a polygons layer describing lakes in a UTM grid Zone 15N (Datum: NAD27) projection (this is in an ESRI shapefile format).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T13:24:34+00:00Added an answer on May 29, 2026 at 1:24 pm

    The useful thing here is the epsg database included in rgdal.

    epsgs = make_EPSG()
    subset(epsgs,grepl("15N",epsgs$note))
    
    [etc]
          code
    2703 26715                         # NAD27 / UTM zone 15N  [etc]
    2851 26915                         # NAD83 / UTM zone 15N  [etc]
    [etc]
    

    Those codes are what you need in spTransform. If your lakes are in a shapefile with that NAD27 projection, then:

    require(maptools)
    lakes = readShapeSpatial("lakes.shp")
    proj4string(lakes)=CRS("+init=epsg:26715")
    

    should give you the lakes as supplied (note I dont think readShapeSpatial will read a .prj file with a shapefile set, so I’ve set it here explicitly)

    Now to convert to NAD83 datum version of UTM zone 15N:

    lakes83 = spTransform(lakes,CRS("+init=epsg:26915"))
    

    Rasters are a bit trickier since they generally involve a warp so that you end up with a regular grid in your projected coordinate system – you can’t just transform the coordinates of the corners…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

EDIT: reworded and simplified question to be consise... In my service layer I have
EDIT: I have changed the question as it was too localized and gained negative
I have an edit text which functions as a search box in my application.
I have a view that add and edit Meeting objects and I'm going to
EDIT I have finally figured out the problem i have been having on my
EDIT: I have fixed all but two warnings now, so thank you all for
EDIT: I have edited my post... Working on a project (c#), I have a
EDIT i have something like this in a file: imagecolor=0 arrayimagecolorcopy=0 arrayimagecolorcopy3d=0 when i
EDIT: I have realized the source of my problem. I only have count information
I won't want to have edit any working sets. I just want a way

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.