+ Reply to Thread
Results 1 to 12 of 12

Generate internal grid points from 4 corner points

  1. #1
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Generate internal grid points from 4 corner points

    Hi,

    I want to generate a list of coordinate points at xm internals from a known set of four corner points.

    Example is I have a start coordinate being
    1000 (East), 1000 (North) - {all measurements are in metres}

    I want to create grid points at 10m intervals from that start point ending at the opposite corner of the polygon at 2000 (E), 2000 (N)

    My spreadsheet should finish like this;

    East North
    1000 1000
    1000 1010
    1000 1020
    1000 1030
    1000 1040
    1000 1050
    1000 1060
    1000 1070
    ....and so on until North hits the upper limit of 2000, then East will increment by 10m and North begins again at 1000 incrementing by 10m. This continues until the result reaches 2000, 2000.

    This is just an example and I want flexibility to be able to change the start and end points as well as the increment size in integers.

    Any tips please?

    Thankyou

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Generate internal grid points from 4 corner points

    i do not think this issue is for excel
    it is just a math, smth about the Pythagorean theorem or geodesic lines

  3. #3
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Generate internal grid points from 4 corner points

    Hi
    Try using this approach
    where $D$2 as the increment, $E$2 is Start East, $F$2 is End East, $G$2 is Start North, $H$2 is End Norh
    In A3 =$E$2 and in B3 =$G$2
    In A4 use the following formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and in B4 use
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Copy a4 and B4 down.

    See the file
    Attached Files Attached Files

  4. #4
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Generate internal grid points from 4 corner points

    Perfect. Exactly what I'm after. Thank you.

  5. #5
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Generate internal grid points from 4 corner points

    You are welcome and thanks for the feedback.

    Don't forget to mark this thread as SOLVED.

  6. #6
    Registered User
    Join Date
    02-20-2018
    Location
    LEEDS
    MS-Off Ver
    2010
    Posts
    25

    Re: Generate internal grid points from 4 corner points

    sorry but your solution is not correct,

  7. #7
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Generate internal grid points from 4 corner points

    Worked for me.

  8. #8
    Registered User
    Join Date
    02-20-2018
    Location
    LEEDS
    MS-Off Ver
    2010
    Posts
    25

    Re: Generate internal grid points from 4 corner points

    your calculated coordinates is not Cartesian, you only calculate a points, with fixing North axes which is not correct.

  9. #9
    Registered User
    Join Date
    02-20-2018
    Location
    LEEDS
    MS-Off Ver
    2010
    Posts
    25

    Re: Generate internal grid points from 4 corner points

    but is not correct, if you work in Cartesian coordinates, his calculation is worng

  10. #10
    Registered User
    Join Date
    02-20-2018
    Location
    LEEDS
    MS-Off Ver
    2010
    Posts
    25

    Re: Generate internal grid points from 4 corner points

    the both east and north coordinates must be change

  11. #11
    Registered User
    Join Date
    02-20-2018
    Location
    LEEDS
    MS-Off Ver
    2010
    Posts
    25

    Re: Generate internal grid points from 4 corner points

    but if your moving only on east with same north coordinate is will be correct!

  12. #12
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Generate internal grid points from 4 corner points

    Hi


    See if the fix I propose solves your problem, whether the problem is a WGS 84 based coordinate system, and then @ tim201110 (post #2) is right.

    See the file
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Selecting needed grid points data
    By akumagaavese in forum Excel General
    Replies: 3
    Last Post: 04-18-2014, 12:43 PM
  2. selecting grid points of data
    By akumagaavese in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-15-2014, 12:53 PM
  3. Game grid map, distance between two points
    By potatoebob in forum Excel General
    Replies: 5
    Last Post: 01-03-2014, 07:12 PM
  4. Placing a large grid of data points into one column
    By bmccarthy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-01-2010, 05:03 PM
  5. formula to find distance across points on a grid
    By Powrpak in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-24-2008, 04:35 PM
  6. Marking Grid Points
    By SamuelT in forum Excel General
    Replies: 4
    Last Post: 11-18-2008, 12:59 PM
  7. 10 X 10 grid and finding distances from multiple points...
    By brya6347 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-16-2005, 05:38 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1