Creating Boxes from coordinates
#1
Posted 26 February 2010 - 11:33 AM
I'm try to figure out how to create multiple boxes (polygons) using XY coordinates for each corner from an excel spread sheet? Any ideas?
Regards
Phil
#2
Posted 26 February 2010 - 02:51 PM
Hi
I'm try to figure out how to create multiple boxes (polygons) using XY coordinates for each corner from an excel spread sheet? Any ideas?
Regards
Phil
Phil,
What software are you using?
Greg.
Greg Driver
GIS Analyst
MapInfo User...!
#3
Posted 01 March 2010 - 12:31 PM
Be well,
Kevin
#4
Posted 02 March 2010 - 03:37 PM
#5
Posted 02 March 2010 - 03:40 PM
Sounds interesting Kevin, I'll give it a tryIf you have the locations of the corners you might consider using google fusion tables. You can upload a spreadsheet (<100 mb) and in some cases (dependent on formatting of document, etc) and can plot these points on google maps with the "visualize" option. You then can export these points as kml to some gis (arc accepts kml) or file format converter. I have only used this for point locations but the person who showed it to me I think talked about polygon features also. Another great thing about this web application is using the power of google's semantic search to geolocate points form street addresses (pretty great way to find lat/lon of lots of points) Hope this helps.
Be well,
Kevin
Many thanks
Phil
#6
Posted 03 March 2010 - 03:31 AM
#7
Posted 03 March 2010 - 03:44 AM
I'm try to figure out how to create multiple boxes (polygons) using XY coordinates for each corner from an excel spread sheet? Any ideas?
Hi Phil, just so that I understand the problem, your xy coordinates are OSGB grid coordinates for the corners of a large number of polygons and you'd like to convert these to a (OSGB-projected) polygon shape file?
Regards, N.
#8
Posted 03 March 2010 - 03:59 AM
ArcView and MapInfo
Depending on the format of your spreadsheet (4 corner points, bottom left & top right corner points?) then it's fairly straightforward to create these in MapInfo.
Greg.
Greg Driver
GIS Analyst
MapInfo User...!
#9
Posted 03 March 2010 - 02:57 PM
Yes, that's correctI'm try to figure out how to create multiple boxes (polygons) using XY coordinates for each corner from an excel spread sheet? Any ideas?
Hi Phil, just so that I understand the problem, your xy coordinates are OSGB grid coordinates for the corners of a large number of polygons and you'd like to convert these to a (OSGB-projected) polygon shape file?
Regards, N.
#10
Posted 04 March 2010 - 03:46 AM
#11
Posted 04 March 2010 - 04:01 AM
Yes, that's correct.
I hope this isn't too gothic. My way of doing this is to use DNR Garmin, which is a (free) GPS add-on for ARC. However, it doesn't need either a GPS or ARC to work.
Download and DNR Garmin from the site below and install it:
http://www.dnr.state.../DNRGarmin.html
Put your polygon data into a spreadsheet, in the form shown in the attached JPG. There are three polygons in this example, labelled one to three. Note that the closing coordinate of each polygon must be the same as the starting coordinate and that each starting coordinate has a corresponding 'TRUE' in the 'new_seg' column.
Save the spreadsheet as a CSV. This will load into DNRG, from where it can be saved in a number of useful file formats including as a projected shape file and as a KML.
Just a few tips about using DNRG:
Firstly, as-installed DNR Garmin has a problem with converting accurately latitude and longitude coordinates to Ordnance Survey grid references (and vice-versa). After installing DNR Garmin correct this problem by editing the file ‘epsg’ in the directory C:\Program Files\dnrgarmin\proj\nad. Search this file on the term '27700' and replace the line following '# OSGB 1936 / British National Grid' with:
<27700> +proj=tmerc +lat_0=49 +lon_0=-2 +k=0.9996012717 +x_0=400000 +y_0=-100000 +ellps=airy +towgs84=446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894 +units=m +no_defs no_defs <>
all on one line.
Secondly, start DNR Garmin and go File -> Set Projection. In the box that pops-up click on the ‘EPSG’ radio button and then in the ‘POSC Codes:’ window type ‘27700’. Then press return. Under ‘Datums:’ you should now see ‘OSGB 36’ and under ‘Projections:’ you should see ‘British National Grid’, highlighted. Now click ‘OK’. These setting will ‘stick’ in DNR Garmin until you change them.
Thirdly, when you start DNRG dismiss any warning boxes that pop-up by clicking 'OK' (DNRG complains if you start it without a GPS receiver connected).
Regards, N.
Attached Files
#12
Posted 05 March 2010 - 06:03 AM
Any hints?ArcView and MapInfo
Depending on the format of your spreadsheet (4 corner points, bottom left & top right corner points?) then it's fairly straightforward to create these in MapInfo.
Greg.
Phil
#13
Posted 06 March 2010 - 01:13 PM
ArcView and MapInfo
Depending on the format of your spreadsheet (4 corner points, bottom left & top right corner points?) then it's fairly straightforward to create these in MapInfo.
Greg.
Any hints?
Phil
Phil,
I presume that you have the four coordinates values in the following format in Excel:
boxes.png 24.47K
16 downloadswhere in this example x1,y1 = the bottom left and x4,y4 = the top right coordinate pairs.
If so, then open the spreadsheet in MapInfo, make it 'mappable' (Table - Maintenance - Table Structure) and check the tick box. At this point set the projection to be British Coordinate System - BNG. Then, open the MapBasic window within MapInfo - Options -> Show MapBasic window. Enter the following commands:
set coordsys table boxes
update boxes set obj=mbr(createline (x1,y1, x4,y4))
where boxes = the name of the table (spreadsheet) you're working with and x1,y1, x4,y4 are the name of the fields holding the coordinate values.
Let me know how you get on or if I've not quite understood your request!
Greg.
Greg Driver
GIS Analyst
MapInfo User...!
#14
Posted 10 March 2010 - 12:08 AM
Head of Production, Hedberg Maps, Minneapolis, MN USA
maphead.blogspot.com
"Life's too short for bad maps"
#15
Posted 12 March 2010 - 03:28 AM
And then, from the lines you should be able to make polygons!
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users


Sign In
Create Account
United Kingdom
Back to top
United States
Sweden










