jps services
  • Home Page
  • GIS Training Courses
    • QGIS Training Courses
    • ArcGIS Training Courses
    • MapInfo Pro Training Courses >
      • MapBasic Training Course
  • About
  • Blog

Creating a points layer in QGIS from data in degree format

9/8/2015

0 Comments

 
 If you have x and y co-ordinate information in a text file it is normally quite straight forward to convert that data into a points layer within a desktop GIS. Sometimes, you may also have data created with a GPS in degree format. This kind of data is not as straight forward to convert into a points layer as you have to ensure that the text file is in exactly the correct format. The following example shows how to import degree data into QGIS in a comma separated text file format.
Degree data which needs to be formatted in order to be inported into QGIS
This degree information needs to be formatted in order for it to be imported into QGIS
Degree data example showing correct notation
Comma separated text file showing degree notation for hours minutes and seconds
With QGIS, the first stage is to ensure that you have your information in the degree (DMS) format of Degrees, Minutes and Seconds. You may have your file in this format already and in this case you should be able to proceed to import it into QGIS. If the process fails completely or if you have your point layer not loading correctly there could be one of the following factors at play.
Dialogue box showing settings for degree data input
Dialogue box showing the various settings for degree format information
When you have selected the Add Delimited Text File QGIS displays a dialogue box. For degree data QGIS has a DMS tick box which must be enabled. Otherwise the assumption is you are trying to load x and y co-ordinate data which is the usual default. The other defaults include the assumption you have a comma separated file format. If not, you will have to state how the data elements are being separated with the custom delimiter or expression options. Remember that you need to also signal whether your text file has header information. Such information is useful as it helps to make the data columns more meaningful. If you have headers remember to enable this option otherwise you will have problems when the points layer is created.
Going back to the degree data remember to check whether any of the rows in your text file contain information, as in this example, in the format: 53°25.305N. If this is a little confusing don't be concerned as I will now explain the changes! Firstly, remove any degree symbols. Then convert from decimal notation if either the hours or minutes are displayed in that format. For instance, 53.70 degrees would convert to 53 hours 42 minutes 0 seconds (0.7 * 60 minutes), and 53 degrees 35.70 minutes would convert to 53 hours 35 minutes 42 seconds (0.7 * 60 seconds). Here the minutes are shown in decimal format rather than minutes and seconds. Also the degree symbol is not required for the number of hours element. If this is left in your text file the process will fail. For your data to load correctly it should be shown in this format as in this example: 53 25 18 N. Remember to put a space after the seconds data as the N also requires a space. Even if all the other data is correct this single space error could cause your data to fail to load correctly. Also check that you have put the correct order for the latitude and longitude into the X and Y field  options in the dialogue box. Once you have your data in this format for latitude and longitude your data will successfully convert to a points layer. One final check is to see if your points data is correctly placed on your map. You can do this by loading a background map with the Open Layers plug-in. You should then be able to clearly see whether your data correlates with the background map.
QGIS map of comma separated data of degree format data
QGIS map showing data points created from comma separated text file of data in degree format
If you would like to further explore how GIS could help your organisation jps services offers one and two day training courses in QGIS, ArcGIS and MapInfo.

0 Comments

Your comment will be posted after it is approved.


Leave a Reply.

    Author

    Joe Short BSc has been involved with various mapping solutions for over twenty years.  If you are considering implementing a GIS  or have ArcGIS Pro, MapInfo Pro or QGIS training requirements, jps services would be happy to be of assistance to your organisation. 

    Archives

    April 2020
    March 2020
    October 2019
    September 2019
    August 2019
    July 2019
    March 2019
    November 2018
    October 2018
    August 2018
    July 2018
    November 2017
    October 2017
    September 2017
    July 2017
    February 2017
    January 2017
    December 2016
    November 2016
    October 2016
    May 2016
    February 2016
    September 2015
    August 2015
    April 2015
    February 2015
    November 2014
    October 2014
    July 2014
    June 2014
    May 2014
    March 2014
    February 2014
    December 2013
    November 2013
    October 2013
    September 2013
    August 2013
    June 2013
    May 2013
    April 2013
    February 2013
    December 2012
    October 2012
    September 2012
    August 2012
    July 2012

    Categories

    All
    Arc Gis
    Arcview
    Autodesk
    Cad
    Gis Training
    Local Government
    Mapbasic
    Mapinfo
    Quantum Gis
    Relational Databases
    Saga Gis

    RSS Feed