Changes

Jump to: navigation, search

Import Geospatial Data from Excel

312 bytes added, 15:47, 22 November 2017
no edit summary
<p>Various windows in IMSMA allow you to To import geospatial data from external source files. These external source files can be either Excel spreadsheets (with a .xls or .xlsx file extension), or shapefiles (with a .shp file extension).</p><p>To import geospatial data:</p>
<ol>
<li>Click the [[Image:EditReportIcon.png | Import Points]] button.[[Image:PointandPolyListWindow.png|500px|center]]</li>:<li>The Open window displays.</li>
<li>From the Open window:</li>
<ol type="a">
<li>Navigate to the directory where the file that you would like to import is located.</li>
<li>Select the file name(xls or xlsx).</li>
<li>Click the '''Open''' button.</li>
:The geospatial data from the spreadsheet is appended to any existing data in the Points or Polygons table.
</ol>
===Excel Import Business Rules===__NOEDITSECTION__ <p>{{Note |To import geospatial data from an Excel spreadsheet, the file must be created according to the following business rules:</p> <ol>* contain the columns in the table below<li>The * the columns in must have the specified name* the spreadsheet columns must be in a certain the specified order from left to right* the first row of the file should contain the column names* the used decimal symbol in the Excel file must be the same as the Regional settings of the importing computer.</li></ol>}}
{| class="wikitable" width="600"
| width="450pt" | '''Description'''
|-
| align="center" ProjName | Point Number | The coordinate system for the point.|-| PolyID || The ID for the polygon or polyline.|-| PointNo || The point number for the point. |-| PointID || The point identified as point 1 will be imported as a starting point; all other points will be imported as a turning ID for the point.
|-
| align="center" | Longitude PointType || The longitude type of the point in WGS84 format(Benchmark, Start Point, Turning Point, etc. The import process currently only supports WGS84 format).
|-
| align="center" Xcoord| Latitude | The longitude of the point in the correct format. |-| Ycoord|| The latitude of the point in WGS84 the correct format. |-| Distance|| The import process currently only supports WGS84 formatdistance of the point from the point referenced by FrPointID.|-| Bearing|| The bearing of the point from the point referenced by FrPointID.|-| FrPointID|| The from point.|-| PointDesc|| The point description.
|}
<ol start="2"><li>The first row Examples of the spreadsheet should not contain data because it is ignored by the import processExcel files with '''dot''' as decimal symbol* WGS 84* UTM * UTM with distance and bearing* MGRS with distance and bearing can be downloaded from '''[[Media:ExcelImportTemplate. You should use the first row of the spreadsheet for column headingszip | here]]'''.</li></ol>
 [[Image:SampleSpreadsheetWithGeospatialDataSampleSpreadsheetForGeospatialData.png|800px|300px|''Sample Spreadsheet with Geospatial Data''center]]<div align="leftcenter">
''Sample Spreadsheet with Geospatial Data''
</div>
<ol>
<li>The selected coordinate reference system in the ''Point and Polygon/Polyline List'' window is the coordinate system need to be the same as the coordinate data in the Excel input file. Please note that the ProjName column in the Excel input file is purely for manual reference and not used by the import from Excel function.</li>
<li>When a '''Poly ID''' is provided, the coordinate data will be a polygon/polyline point. Otherwise, the coordinate data is considered a '''single point'''.</li>
<li>If you would like to import geospatial data for multiple polygons/polylines, use different PolyIDs, keep the points for each shape together in the spreadsheet and make the Point ID unique in the file. The example shown below illustrates a spreadsheet which defines two polygons.
<ol start="3"><li>If you would like to import geospatial data for multiple shapes, keep the points for each shape together in the spreadsheet and begin each new shape with point number 1. The example shown below illustrates a spreadsheet which defines two polylines. The first polyline contains five points; the second polyline contains three points.</li></ol> [[Image:SampleSpreadsheetWithDataForTwoPolylinesSampleSpreadsheetWithDataForTwoPolygons.png|800px|600px|''Sample Spreadsheet with Data For Two Polylinescenter]]<div align="leftcenter">''Sample Spreadsheet With Data For Two PolylinesExcel file with coordinates for two polygons ''</div> <ol start="4"><li>The Point ID cannot be NULL, and must be unique across all points in the Excel spreadsheet and existing points in the Points table and Polygon/Polyline points table at the geospatial widget of the target object.</li><li>The Point Type must be valid.</li><li>When a Poly ID is provided, the coordinate data is a polygon/polyline point. Otherwise, the coordinate data is considered a single point.</li>
<li>The PointNo cannot be NULL for any polygon/polyline points. If the PointNo is NULL and the coordinate is a single point, the PointNo will be set to 1.</li>
<li>The Point ID cannot be NULL, and must be '''unique''' across all points in the Excel spreadsheet '''and''' existing points in the Points table and Polygon/Polyline points table at the geospatial widget of the target object.</li>
<li>The Point Type must be valid. But if Point Type is not filled in, point 1 will be imported as a starting point; all other points will be imported as turning points.</li>
<li>The Xcoord and Ycoord values must conform to the coordinate reference format selected at the window. Available coordinate formats are: ''dd'', ''dd:mm'', ''dd:mm:ss'', ''X/Y'', and ''MGRS''.</li>
<li>If the Bearing, Distance, and FrPointID are not ''NULL'', the Xcoord and Ycoord values will be disregarded/voided.</li>
<li>The Bearing value must be in the range of -360 to +360.</li>
<li>The Xcoord and Ycoord values must conform to If Distance/Bearing is used than the coordinate reference format selected at first point of the geospatial widgetpolygon(s) must have coordinates i. Available coordinate formats are: ''dd'', ''dd:mm'', ''dd:mm:ss'', ''X/Y'', and ''MGRS''e.</li><li>The selected coordinate reference system at the geospatial widget is the coordinate system for the coordinate data in the Excel input filefirst point cannot be relative to e. Please note that the ProjName column in the Excel input file is purely for manual reference and not used in the Point Editor Excel Import functiong.</li><li>The Excel input file must conform to the Excel template provided by the GICHDBenchmark.</li>
</ol>
{{NavBox HowTo Enter Data}}
 
[[Category:CRI]]
6,632
edits

Navigation menu