ISODISTANCE and ISOCHRONE Map API – Find Realistic travel Distance

If we want to find out nearby hotels, coffee shop etc on google maps we can find it easily by just right clicking on the selected location and go for search nearby option. The map will show all the nearby selected hotels, coffee shop etc. I wonder how can I do this on a leaflet map with myself. In quest of this question I found Isodistance and Isochrone map APIs.

What are Isodistance and Isochrone maps?

Isodistance maps:

An isodistance map is a map showing equal distance polygons from a point of interest considering every possible route. For example you decide to go for a morning walk daily for about 1 mile and you want to find out all the possible routes from your house on which you can walk ½ mile and then come back ½ mile, isodistance map is your solution.

As stated in Mapbox – “Isodistances offer realistic travel distances by considering roads and sidewalks, which can be the difference between a day at the beach and waiting for a tow truck.”

ISODISTANCE and ISOCHRONE Map API
isodistance-mapbox

Isochrone maps:

ISODISTANCE and ISOCHRONE Map API
halifax-map-isochrone

Isochrone maps are similar to isodistance map but here we consider time. An isochrone map is map which shows lines of equal travel time across a geographic area. As in the below snapshot example if you decide to walk 8 mins daily then you can find how much distance you might cover from your house in 8 mins.

APIs for Isodistance and Isochrone maps:

There are two APIs available for creating Isodistance maps. One is MapBox Directions API and another is ISO4APP API. This two APIs can be used with leaflet or google map. For Isochrone maps there is one API available that is ISO4APP API

What you think about isodistance and isochrone maps? In which situtation are you using this algorithm? Do you know any other api which i have not listed? Do share your answer by commenting below in the area provided.

FLIGHT ROUTES NETWORK ANALYSIS

Flight Routes Network Analysis. When we think of Network analysis in GIS we think of roads, rivers, water lines etc. In GIS two types of network are modeled. i.e:

1.) Transportation Network for example road networks and

2.) Utility Network for example gas pipeline network.

In transportation network model analysing air transportation network is a fascinating network visualisation exercise.

FLIGHT ROUTES NETWORK ANALYSIS

Force-directed graph drawing algorithms are a class of algorithms for drawing graphs in an aesthetically pleasing way. This algorithm used by Martin Grandjean a researcher from The University of Lausanne, Switzerland to analyze the air transportation network created by 100,000 airline flights that take place around the world. Data for this analysis of the 3,275 airports across the globe was taken from openFlights.org.

A map showing flight routes between these airports is a network graph. Martin Grandjean attempts to make explicit the network behind air transport. The structure of the relationships has an impact on the spatial distribution of nodes in a graph. Let’s see how this landscape is reorganized without geographical constraints. 

FLIGHT ROUTES NETWORK ANALYSIS
FLIGHT ROUTES NETWORK ANALYSIS

Explanation of the above image: “Naturally, network geography is not completely disrupted: the continents are mostly visible and regions are generally in their original position (with the exception of the Pacific islands that connect Asia and America – imagine this graph in three dimensions, with the Pacific Ocean behind). Major observations: India is more connected to the Middle East than to South and East Asia. The Russian cluster is very visible, connecting airports in Russia but also in many former Soviet republics. Latin america is clearly divided between a South cluster and a Central American cluster very connected with the U.S.”

I found this information very fascinating, to know the way for Flight Routes Network Analysis.

Source: Connected World: Untangling the Air Traffic Network

Google Map advertisement as purple pin and logos

Google Map a giant, smooth and one of the fastest map is touching every part of your life by helping you find any location by just clicking on single search button. And now Google Map is looking to redesign its mobile experience of google Map by showing some relevant ads tagged as Google Map advertisement.

What are the Expected Type of Google Map advertisement:

So what kind of ads would be shown on Google Map? Either as a purple pin on the map or as a logo would appear at its exact physical location on digital map, within the visible map area or near by you location. You can see an examples purple pin ad of ‘Walgreens’ as shown in the image provided below.

Google Map advertisement
Google Map advertisement

Along with pin ads Google map will also feature in-store promotions i.e when you expand a business page. Where you can see also see deals and coupon for sale items along with store hours and address. A small purple box with the word ‘Ad’ will highlight ad placements.

Google Map advertisement

Google Map advertisement would appear in a subtle manner:

When will the ads will be shown? While the relevancy of ads would be better applied when you are using the app and searching for some kind of location. For example if you search for a nearby hotels, Google Map can show a purple promoted pin or its company logo which will be more attractive than any other.

Also while you are driving and using google Navigation function, a purple pin may appear sometimes, which locates nearby restaurant or gas station. This ads may be definitely be useful sometimes as people or driver would get aware of the location of some place of a route. As Google takes care of user experience so you don’t need to worry if ads might distract the drivers attention from the navigation route shown.

Final words

Obviously Google this effort is to make more money, i.e as ads will be shown to users where they receive more than a billion visit on a Google Map.

Although according to Google their first priority is to make sure the advertisement should be useful to users. Also for now, voice direction won’t have any audio advertisement, so that’s a good news while the bad part is that user would not be able to turn off the promoted pins.

Have you seen any Google Map ads till now? If so, please share your experience by commenting here below.

Merge two or more polygons, points or polyline of Shapefile

Merge two or more polygons, points or polyline of Shapefile in QGIS. Do you want to merge features of to combine them into one feature and to maintain its database dbf values along with it. QGIS – Quantum Geographic information system is of the most important for geographers and with the help of this tool I would demonstrate you to merge features within same layer. You can also have a look on how to merge more than two shapefiles.

If you haven’t installed QGIS, lets install Latest Quantum GIS first and open it up. Here are the steps to merge features of shapefile in QGIS.

Merge two or more polygons, points or polyline of Shapefile in QGIS:

We can merge two features in Shapefile in QGIS easily. Let’s say I have a Shapefile states.shp and I want to merge two states. Open up your QGIS tool.

1.) Select the layer and click the toggle edit button from the toolbar.

Merge two or more polygons, points or polyline of Shapefile2.) Click on select tool from toolbar as indicated in the image.

Merge two or more polygons, points or polyline of Shapefile
Merge two or more polygons, points or polyline of Shapefile

3.) Press control (ctrl) key and click on the features you want to merge to select them.

Merge two or more polygons, points or polyline of Shapefile

4.) Click on the Edit option where you can find find merge selected features.

Merge two or more polygons, points or polyline of Shapefile
Merge two or more polygons, points or polyline of Shapefile

5.) You will see this window after selecting merge selected button.

Merge two or more polygons, points or polyline of Shapefile

6.) In the above dialogue box you can see there are three columns and four rows. In the first row you can select options for the fields so that what value you want to assign for the merged feature. Go ahead and try the given options.

7.) In the last row you can see the option you selected or you can delete that value by simply double clicking on the field and press delete from keyboard. After you are done you can click ok.

8.) You can see the features are merged. you can also check attribute table.

9.) click on save layer edits buttons and then click on toggle editing button if you are done.

Merge two or more polygons, points or polyline of Shapefile
Merge two or more polygons, points or polyline of Shapefile

That is all about merging two features of shapefile whether it is polygon, polyline or point features. If you are getting any problem in performing the above steps, do comment below, we would try to solve the problem by discussing over here.

Top 10 Map Direction API – Routing Libraries – Navigation free or paid

Routing and displaying direction on Map along with showing the instruction for navigation, physical distance, traffic etc is one of the important part of GIS (Geographical Information System), when working on Travel or tourism or logistic projects. Are you Looking for the best Map direction API to create Routes on Web map or map on App? Researching for best performance and list of alternatives routing libraries? There are dozens of Routing API which is either available as premium API, Free till a limit or a completely free Routing API.

Here you will find all the list of Map Routing libraries which I have gone through and researched while working on one of my project. Let me start listing first few free and open source direction Map API followed with API which is available for free till a particular hits limits.

Map Direction API
Map Direction API

Top 10 Map Direction API – Routing Libraries

1.) Open Source Routing Machine:

OSRM computes shortest path in a graph and was designed to run well with map data from OSM project.

  • Can either be self hosted
  • Very fast routing.
  • Method of contraction hierarchies to compute shortest path routing, in contrast to A* which makes it very fast.
  • highly portable.
  • Provides turn by turn navigation instruction
  • License: BSD

You can find the project code at github and also the working map project.

OSRM - Map Direction API

2.) YOURS navigation API:

Yet another OpenStreetMap Route Service (YOURS), uses OpenStreetMap data.

  • Generate fastest or shortest routes in modes available like car, pedestrians, bicycle.
  • Unlimited Via waypoints can be added easily
  • Generate routes altitude profiles.
  • Client side route caching
  • License : BSD

Wiki for YOURS map can be found here.

3.) Open Route Service Library: 

Routing service is based on open standards by the Open Geo-spatial Consortium with OSM data.

  • Gives Route summary like overall distance, units, overall needed time.
  • Way points can be added in between routes.
  • Step by step instruction is calculated and can be extracted as different languages.
  • License : MIT license

You may check libraries documentation from here.

4.) Graphhopper Direction Map API:

It is a fast and memory efficient Open source routing library and server using OpenStreetMap.

  • Can be Used for desktop, web or with mobile device application.
  • Dijkstra, A* and Contraction Hierarchies algorithm is used.
  • Can either be self hosted or you can choose a plan from graphhopper services website, which can either be available for free or paid.
  • Provides turn by turn navigation instruction
  • License : Apache License Version 2.0

Here is the Github code depository of Graphhopper.

Graphhopper Map Direction API

You can compare further maps from OpenStreetMap data routing section from here to get the detailed comparision of above listed API.

Premium Routing Libraries:

5.) Google Map Direction API:

We don’t need any introduction to Google Maps. Map with most data provides all roads in every mode whether it is for car, heavy vehicles, rails, bicycle or pedestrian. You just need to grab a key and use the API to get the directions.

  • Can access upto 2,500 free direction request per day.
  • Can add upto 23 waypoints
  • Can avoid route with tolls, highways, ferries and indoor.
  • Different languages are supported as an output result
  • Specify the units of result
  • Get live traffic and estimated time of travel for a route.
  • A detailed documentation along with tutorials.

Get the documentation link from here and get started with Google Map library.

6.) Bing Map Direction API :

Bing Map is another giant map service provider. You may look as an alternative of Google Map. You can customize, calculate and display direction and route on a Map with Direction API module or with Bing Map Rest Services. You need to get a Map key by registering in Bing Map. I didn’t found any figures of transaction which can be made free. But definitely if you over use the API either Microsoft will contact you or you may contact them either to upgrade the account as Enterprise.

Here are some features of Bing Map:

  • Calculate Route and get the walking, driving or transit route direction
  • Define way points
  • Get Road Shield images
  • Get Route data i.e Travel Distance, travel duration, estimated time of duration considering live traffic etc.
  • Turn by turn navigation instruction can be extracted.
  • You may also look at warning type i.e if there is a traffic accident, very slow traffic in the route, critical weather etc.

You can find the detailed document of the from here:

Bing Map Direction API
Bing Map Direction API

7.) ESRI Map Direction API:

ESRI is an international supplier of GIS software and databases and exist since 1969. ESRI Map provides AcrGIS API for JavaScript which helps you to get the Direction on Map. Register a developer account for free in ESRI direction and Routing Service website and get ready to use the library. You will get free development and testing subscription and also gets a 50 credits a month when you are ready to go to production. Yes they charge you according to credits, where each functionality have different credits for different number of hits. Here are some of the features:

  • Routes for pedestrian, light weight moving vehicle and heavy weight moving vehicle
  • Get optimized route considering traffic.
  • “Schedule stops, including people, pickups, work orders, and anything else, within a pre-defined time window.”
  • According to vehicle weight and height route will be calculated to clear restricted bridges and underpasses.
  • Get the distance and navigation instructions.

You can explore more over here.

8.) MapQuest Direction Map API:

MapQuest Map provides Direction API with help of OpenStreetMap data. Upto 15,000/month Transactions is allowed for free. Here are the feature of MapQuest :

  • Get routes for different modes like pedestrian, bicycle, multi-modal.
  • Routes can be calculated as both fastest and shortest.
  • Instruction turn by turn navigation.
  • Get Estimated time of duration for a Route considering real time traffic.
  • Get Alternate routes for same origin and destination points.
  • According to date and time, optimized routes will be created.

You can have a look more over here of its documentation.

MapQuest Map Direction API

9.) MapBox Direction Map API:

MapBox is another popular API which can be considered as the best in terms of pricing and performance too. Here are the list of features:

  • Calculate optimal driving, walking and cycling routes.
  • Get turn by turn direction instructions.
  • Route can be created incorporating upto 25 waypoints anywhere on earth.
  • Get the geometry as a geojson file
  • Is free till 50,000 mapview either for mobile or for web

Get started from here.

10.) Create Your Own Customized API:

Take either shapefile or OSM data. Create R tree and generate the network graph. Implement A* or any shortest path alogrithm. Fix all issues and improve the speed. You are done.

Note: The limitation and features of API is listed on 12-01-2016 and can be changed time to time. So please check the actual price from the concerned API official website. Also features listed of each API is not complete, but just to give you introduction of the same.

The above list I found to be useful and you can choose one by comparing prices and features to implement in your project. Certainly there may be other routing API’s too, which you may not found here. But if you like the same and think that it should be present in the list, then do comment below with the name and some brief description of the map routing library.

Download Free Shapefile Maps – Country Boundary Polygon, Rail-Road, Water polyline etc

Download Free Shapefile Maps – Shapefile is one of the most common and extensively use vector file format of GIS (Geographical Information System), developed by ESRI as an open Specification, which consist of collection of files viz .shp, .shx and .dbf extension with same prefix name. You might be hunting to Download free shapefile for completing either your small industrial work for POC or for academic project use or for any NGO work.

Download GIS Data From Here

Here you will find the links of best resources to Download Shapefile for free, either its polygon, polyline and point feature shapefile, covering different subjects like Administrative Area Boundaries, Roads, Railways, population etc across the world. You may also look to download Digital Terrain DEM.

Download Free Shapefile Maps - different sources

Note: The Data Shapefile Downloaded from provided below link here, may or may not be authentic, accurate or incomplete. To check data correctness and accuracy, you need to research and recheck before using it. Also Shapefiles are downloaded for free from different organization or websites link and should be used according to
their respective terms and conditions, so please read T&C before using it for any purpose.

Download GIS Data From Here

Shapefile download link

  1. World Country Shapefile
  2.  Australia Shapefile download
  3. Argentina
  4. Brazil
  5. Download Shapefile of Canada
  6. Denmark
  7. Fiji
  8. Germany
  9. India
  10. Indonesia
  11. Japan
  12. Kenya
  13. Lebanon
  14. Madagascar
  15. Malaysia Shapefile
  16. Mexico Shapefile
  17. Mongolia
  18. New Zealand
  19. Netherland
  20. Nigeria
  21. Papua New Guinea
  22. Philippines
  23. Poland
  24. Singapore
  25. South Africa Province Shapefile
  26. South Korea
  27. Tunisia
  28. United Kingdom Shapefile
  29. Download Shapefile of United States of America
  30. Vietnam

Download GIS Data of other states of the USA

If you are looking for any shapefile of country which is not listed above please comment below so that we can search in our pitara of shapefile. If we found we can upload it on the same.

Download Free Shapefile Maps – Country Boundary Polygon, Rail-Road, Water polyline etc

1.) Diva GIS

Website is developed by Robert Hijmans, which provides free Shapefile to download, covering around 244 countries. You can directly select the country and category of shapefile and press on OK button to start download. Subject Category option you will find here are Administrative Areas (Boundaries), Inland Water, Roads, RailRoads, Elevation, Land cover, population, Climate  and Gazetteer.

2.) GADM :

GADM is a spatial database of Global Administrative Areas, which covers all countries data defining boundaries such as provinces, taluk, departments, counties, krong etc. GADM listed around 253 countries currently, the different files formats are available along with shapefile such as Esri File Geodatabase, Geopackage(Spatial Lite), R(Spatial Polygon Dataframes), Google Earth .kmz and ESRI personal geodatabase. The coordinate reference system of each file is in longitude/latitude and the datum is WGS84.

3.) Natural Earth Data:

“Natural Earth is a public Domain Map data-set available at at 1:10m(Large scale data), 1:50m(medium scale data), and 1:110 million scales (Small Scale data).” Cultural, physical and raster category data can be downloaded from each scale. Data can be downloaded as shapefile (shp) or GeoDB or as SQLite. Natural Earth is maintained by Nathaneiel V. KELSO and Tom Patterson. Here is the screenshot of shapefile from QGIS (Quantum GIS) tool of 1:10m all shapefile layers uploaded at once.

Download Free Shapefile Maps
QGIS View – Download Free Shapefile Maps

4.) Geofabrik:

Geofabrik provides the current data from the Openstreetmap database, which is available either for free as well as premium shapefiles. Data can be downloaded as .osm and .shp.zip file. Select the continent from the link provided for which you need to download the data. Further you can either select the country for filtering out more and hit the .shp.zip link to download the data.

5.) Open Street Map data

This service is created by Jochen Topf and Christoph Hormann. Following data sets and its subcategories shapefiles can be downloaded from this website.
a.) Coastline Data processing: It covers land polygons of the world area i.e continents and islands, Water polygon i.e polygon for ocean, seas and other water bodies and coastlines as line strings.
b.) Generalized data sets: This section provides you to download Generalized coastline polygon shapefiles.
c.) Antarctic icesheet: Antarctic icesheet polygons and icesheet outlines can be obtained from here.

6.) Gis-Lab info:

World data shapefile can be downloaded from GIS lab. This global data are separated into 4 parts i.e Eur, Noa, Soa and Sas Zones, which you can see the image provided below. This data shapefile is in zipped with 7z compressor and all data are in Latitude / Longitude and WGS84 coordinate system.

Select different zone to Download Free Shapefile Maps
Select different zone to Download Free Shapefile Maps

7.) MapCruzin:

While the website does not look user friendly, you need to hunt over different country shapefiles at different area. Both free as well as paid Shapefile can be obtained and downloaded given.

8.) Sedac data:

SocioEconomic Data and Applications Center provides data as zipfile of ESRI File geodatabases or shapefiles, and have decimal degree geographic coordinates system with datum WGS84 (world Geodetic System spheroid of 1984). Continent based regional data is available as shown below. Before downloading the data, you need to register and sign in to their system.

Continent Based data - Download Free Shapefile
Continent Based data – Download Free Shapefile

9.) Marine Regions:

If you are working on Sea or marine related subject, this website may help you to get the direct data to link to the relevant website from which you can get the shapefile maps data.

It might be possible that the data which you might have downloaded from website provided here, can be of different format which was not required. For this, you can refer to following articles where you can convert different GIS data format to any of it.

Convert KML to shapefile

Convert Shapefile to KML

Convert Shapefile to GeoJSON

Convert GeoJSON to topojson

Merging two or more than two Shapefile

You may also find these links which makes you to download free shapefile map for particular region:

Is the above provided links are not fulfilling your need. Than the best option you can opt for is to create your own shapefile with the help of QGIS and openstreetmap. You can easily download the data from their and then edit it make it more clear according to your requirement. If you are new to QGIS then let me provide you some tutorial link which helps you to digitize the OSM data and create shapefile.

For what purpose you need to download shapefiles? Which project you are working on? Which website you to get the map data? Do share your valuable thoughts by commenting below. I hope that the above list have definitely helped you in finding the right website to get free shapefile download, while their might be possibilities that I have not listed some of the website which should be present in the list. Please help us by providing those links by commenting below.

Google Map track Near By Gas Station and Current Prices – Android and iOS App

Are you running short of fuel at unknown place, while traveling form A to B? Wanted to track Near By Gas Station when there is no one to ask? Well, Google cares about your problem and so, they rolled out Android and iOS Google Map app update to locate Near By Gas Station along with other nearby search point of interest location.

Track Near by gas station and price on Google Map App

The only requirement to search for Gas Station is to have Google Map app in your device and a internet connection or if you have an offline area saved, then their is no need to have an internet connection too. Just grab your mobile open up Google Map and type “Gas Station” in the search box provided, which results out the near by Gas Station to you on the Map with red indicators as seen below. You can also increase the search area by providing the city name followed by ‘gas station’ keyword for example ‘San Francisco gas stations’.

Google Map track Near By Gas Station and Current Prices - Android and iOS App

Not only this, but Google Map would also try to help you in providing current rate of Different Gas Station in real time, which will definitely helps you to save some bucks comparing prices and lets you decide where you should fill your vehicle tank.

If you are in navigating mode, then the user can tap on a search icon, then select the gas stations from the drop down menu list which also includes coffee shops, restaurants and grocery stores as indicated by official blog for Google Maps.

Google Map track Near By Gas Station and Current Prices - Android and iOS App
Google Map track Near By Gas Station and Current Prices – Android and iOS Appne

This feature will really helps in real time while on a trip, in finding Gas stations when you notice your vehicle gas tank indicating nearing empty. What you think about this Google Map Features? Are you travelling regularly and finding the way to find near by Gas Stations? Is this feature helpful for you? Do share your valuable thoughts by commenting below in the space provided.

Send Place location from Desktop Google Map to Android or iOS Google Map App

Sharing location is pretty easy in Google Maps, while Google also provided a method to directly send a location from Google Map Desktop user to the Android Mobile or iOS mobile device of Same user with pressing just one click on “SEND TO YOUR PHONE” option. Many times you might have searched the location or route on Desktop when planning for travel and then switch back to look on your mobile device while actually travelling.

Send Place location from Desktop Google Map to Android or iOS Google Map App

The place latitude longitude along with name will be received as a notification which directly open up in the Google map pointing to that location. Lets explore sending location form Desktop Google Map to Mobile App Google Map.

Looking for other features of Google Map:

Steps to Send Location from Laptop or Desktop Google Map to Android or iOS Google Map App:

1.) Open Google Map in Browser. Check whether the Google Map is not in Lite Mode, or otherwise switch back to full mode from Lite, as the option will not be available in Lite Mode.

2.) Sign in to the Map with your Gmail ID and Search the location which you want to send to yourself.

3.) You can find the details of the location with options to Save the location, find nearby point of interest, send and share. Select “Send to Your mobile” option and select one of your Android or iOS listed phone to which you want to send the notification, with which your Gmail Account is associated.

Send Place location from Desktop Google Map to Android or iOS Google Map App

4.) Once Selected, Google Map will send the location notification to your device without any delay.

Send Place location from Desktop Google Map to Android or iOS Google Map App

5.) As you click on notification info, it will directly open up Google Map, pointing to the location which you have send.

Getting problem, Lets troubleshoot it to Send Place location to Google Map App:

a.) Either your Android device or iPhone Device should be signed with the same Google Account, with which you are trying from Google Map browser.
b.) May be your mobile device internet is not working, test it.
c.) If you are using iPhone or iPad, follow this steps to give notification permission:

i.) Go to device setting and touch notification.
ii.) Scroll to Google Maps and switch on Allow notification.

You may also find send location to device from Apple Map, which may send the location data to Apple iPhone or iPad mobile device.

What you think about the Google Map Send to Your Phone option. How many times you have used this features? Are you getting problem in following above steps? Do comment below to share your thoughts.

Download Save Offline Google Map on app – Android and iOS

Download Save Offline Google Map on app. Map helps you to navigate and find the nearest point of Interest location when you are travelling and at unknown place. While Network service provider doesn’t guarantee you to provide full Network at each and every places you visit, which results in either no or slow internet. Keeping that in mind Google rolled out Offline Map to their user, by letting them to save and download a part of area into their device. This will not only solve the above stated problem but would surely going to help you save mobile data.

Download Save Offline Google Map

Google updated this feature in Mid 2015 for Android Application and in December 2015 for iOS application, which lets users to see live map offline. You may also see now the near by Gas station on Map. Both Search and direction Navigation feature would be supported even after having no internet connection if the Location Map area is downloaded. Below are the steps to know how to download offline Google Map in Android and iOS user.

You may also be interested to see following Google Map tips:

Download Save Offline Google Map on app – Android and iOS

1.) Open Google Map Application.

2.) If not signed in, then log in to the application. Click on mobile navigation button, to open up side bar.

3.) Check Offline area in the slidder. If offline Area option is not found, then click on Your Places and scroll down to bottom where it says to download the map area.

Download Save Offline Google Map
Download Save Offline Google Map

4.) Choose the area and click on download button to save the viewable area of Map. Enter the name of the Offline Map.

Download Save Offline Google Map

Note: You cannot select too large area. If you are attempting to do so, then app will ask you to further zoom in to reduce the area.

5.) Let download to get finished. You can see your offline map at “Your Places” option or at “Offline Area” option.

Once downloaded, you can view the saved area of map without internet connection.

Download Save Offline Google Map  – Some Important points to keep in Mind

Following are some conditions which you need to keep in mind while downloading and using Google Map offline:

  • The biggest size which can be downloaded for an offline area is 120,000 square kilometer. This area is more than enough to acquire a single city.
  • Downloading offline area may not be available in some area or region due to some limitation as per Google.
  • Data downloaded will be expired after 30 days
  • Offline area is free to download, but your mobile data charges will apply.

You would get the options to rename, update or delete the offline Map saved, at “Your location” or “Offline Area” Panel. What you think about this Offline Google Map feature? Do comment below with your views.

Image Classification in QGIS – Supervised and Unsupervised classification

Image Classification in QGIS: Image classification is one of the most important tasks in image processing and analysis. It is used to analyze land use and land cover classes. With the help of remote sensing we get satellite images such as landsat satellite images. But these images are not enough to analyze, we need to do some processing on them. So to use these images for analysis we need image classification. In this post we will see how to download a Landsat satellite image and image classification in QGIS.

There are many software tools available for image classification such as ArcGIS, ERDAS IMAGIN, but these are not open source software. QGIS(Quantum GIS) is very powerful and useful open source software for image classification. QGIS 3.2.1 for beginners

The basic requirement for image classification is image itself but the other important thing is knowledge of the region for which we are going to classify the image.  For this either you need to do manual survey or else you can use google earth. Definitely Manual survey leads to better result.

There are two types of image classification methods..

  1. Supervised classification
  2. Unsupervised classification

Unsupervised classification is not preferred because results are completely based on software’s knowledge of recognizing the pixel. For unsupervised classification you can use KMeansclassification. In this post we will see Supervised classification only.

Download the Sample Image data for classification

Let us see how to download a satellite image first to take out sample image. One of the source is Earth Explorer  and register. If you already have an account then sign in.

Note: Please read terms and condition and usages of data.

Image classification in QGIS

Here you will see search criteria tab on your left hand side, select it. Enter date and month in the options provided, so that if you want to download image for specific season we can get that image. In rainy season cloud cover is more so it is recommended that we download a image free from cloud cover and mostly of summer of winter season to yield good results.

After zooming in to the location of interest on map click on data sets. And then search for landsat archive. Expand landsat archive option. Depending on our criteria of image we can select more than one option here. We can also set additional criteria based on our requirement.

After setting the criteria click on results. It may take some time to get the results.

Image classification in QGIS
Image classification in QGIS

Now analyze the results available on your screen. There are some options given for our convenience. Click on show browse overlay and check if your location comes within the image or not. An image on your screen will appear. It will take some time to display depending on your internet speed as shown below in image.

Image classification in QGIS

When you find image of your choice click on download button. Click on the download button of the file which have largest size. Don’t download other data. The download file in the folder is with extension .tar. extract that file and you will get a folder containing all the images and a text document.

Image classification in QGIS
Image classification in QGIS

You can see there are 12 images and one MTL text document. This text file is very necessary if this file is not downloaded then image classification will not be possible. We need only 7 images B1 to B7 for image classification, however we can use all the images but it will be very bulky for QGIS to handle and as you start image classification you will understand why we have used 7 images only. You may also consider to look more tutorial on QGIS.

Image Classification in QGIS :

1.) Now open QGIS and install SEMI AUTOMATIC CLASSIFICATION plug-in from the plugin option. After installation of the plugin if toolbox on the screen of the same is not showing by default then, then click view and click panels. And Check both the panels SCP: ROI creation and SCP: classification.

Image classification in QGIS

2.) Now click toolbar and activate SCP toolbar.

Image classification in QGIS3.) Your Desktop QGIS screen will look like this below image.

Image classification in QGIS
Image classification in QGIS

4.) Now Click on pre-processing tool and Select the folder in which all the images and MTL file is present.

5.) Check these two options i.e Apply DOS1 Atmospheric Correction and  Create Virtual Raster as shown below.

Image classification in QGIS

6.) Now click on perform conversion. The processing may take too much time. Be patient

Image classification in QGIS
Image classification in QGIS

7.) All the images are loaded into Layers and virtual raster with name landsat.vrt is also created.

Image classification in QGIS

8.) We can remove image 8,9, 10 and 11. Click on band set icon and select all raster.

Image classification in QGIS

9.) Add rasters to band set.

Image classification in QGIS

10.) Select landsat 8 only because we have downloaded a landsat 8 image.

Image classification in QGIS

11.) Observe the changes in center wavelength.

Image classification in QGIS
Image classification in QGIS

12.) Click close. Now Right click on landsat virtual raster and click properties.

Image classification in QGIS

 13.) Switch to style tab.

Image classification in QGIS

14.) Change the band set as shown in the image.

Image classification in QGIS

15.) Click apply and observe the changes in the image.

Image classification in QGIS
Image classification in QGIS

16.) You can set band set as per your convenience. Set the band set such that you can easily identify land cover and land use classes. For this example we are selecting the above band set. You may also set band set by zooming into your desired location and then load current value of canvas and then click apply. We can do this until we get proper colour for our image.

Image classification in QGIS

17.) Now in SCP: ROI creation panel click on new shp. ROI means Region of Interest.

Image classification in QGIS

18.) Create a shape file in the same folder with name roi or as per your wish. Click on ‘+’ sign and then Click on create a ROI.

Image classification in QGIS

19.) Now as per your knowledge of the location zoom in and create a polygon. We are creating polygon because it will take pixels of same colour with slightly difference in the value. Right click to end the polygon.

Image classification in QGIS
Image classification in QGIS

20.) Give Macroclass name and class name.

Image classification in QGIS

21.) Click on save ROI and check add sigg. List.

Image classification in QGIS

22.) The roi is added to the signature list.

Image classification in QGIS

23.) Save this signature list in the same folder, and create new ROI’s for different classes. You can also change the color. Within same class you can have different Macroclass so that you can classify precisely. You can see the color convention for classes that are used generally on internet.

Image classification in QGIS

24.) Save all the roi. Select algorithm for classification.

Image classification in QGIS

25.) Before going for classification you can see a preview with the option provided as classification preview. Now Click on the plus sign and click on the area where you want to see the preview.

Image classification in QGIS
Image classification in QGIS

26.) Take a look at the preview. If this is the output you want you can go for final classification or you can make other ROI. Click on perform classification for final classification. This process will take time for classification. After the classification is done. Click on post processing tool icon and generate classification report.

Image classification in QGIS

Explore this plugin for more option. You will have a good classified image after practicing. Hope this tutorial helps you to explore the tool for classification with the help of QGIS software. If you want to share or have doubts or facing difficulty in implementing the steps, do comment below in the space provided below.

More on QGIS:

Export and Select features of layer using QGIS

Layer labeling in QGIS