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.

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

Georeference a map with the help of another georeferenced map

Here we will see how to georeference a map with the help of another georeferenced map in QGIS (Quantum GIS). Georeference is a process to associate geographic location coordinates to any kind of physical object which is physically present over a Raster image map or to a physical map, with help of other georeferenced data or with know location coordinates of some points of image which is effectively called as control points. It is one of the important concept of GIS (Geographical Information System). We have already discussed about how to Georeference Map with the help of know control points.

New to QGIS – Check other tutorial in QGIS.

Georeference a map with the help of another georeferenced map:

1.) Open QGIS and Load the georeferenced map, by selecting Layer -> Add Layer -> Add Raster Layer or by directly selecting Add Raster Layer from Layer panel as shown below.

Georeference a map with the help of another georeferenced map

2.) After loading the file, from the menu select Raster and click on Georeferencer to select Georeferencer.

Georeference a map with the help of another georeferenced map

3.) In the Georeferencer window which is open up by above step, select Add Raster Layer icon to load non georeference map.

Georeference a map with the help of another georeferenced map

4.) Click add point and select a point on your map. In the pop up window click from map canvas.

Georeference a map with the help of another georeferenced map

Georeference a map with the help of another georeferenced map
Georeference a map with the help of another georeferenced map

5.) Select location in the georeferenced map same as the location you selected in non-georeferenced map. You will see it will load the coordinates.

Georeference a map with the help of another georeferenced map

6.) Click ok.

7.) Likewise select at least four points in different direction. Click transformation setting icon button as shown below in image.

Georeference a map with the help of another georeferenced map

8.) Select any one Transformation Type and provide your output raster name.

Georeference a map with the help of another georeferenced map
Georeference a map with the help of another georeferenced map

9.) Click start Georeferencing button from the Georeferencer window.

Georeference a map with the help of another georeferenced map

10.) Select CRS same as the georeferenced map. In our case it is WGS 84. Close georeferencer. You will see georeferenced image in canvas. Note the coordinates.

Georeference a map with the help of another georeferenced map
Georeference a map with the help of another georeferenced map

I hope this article would be helpful for you to know the basics of how to georeference raster image with the help of another georeferenced map. If you are facing problem in implementing the process do comment below, so that we can discuss over it.

You May Like :

Geo – Referencing raster image in QGIS w.r.t. vector file

Raster Data File Formats

 

Different ways to convert Shapefile to GeoJSON – Online or Offline or API

Convert Shapefile to GeoJSON. Shapefile, ESRI made a standard vector file format which is largely adopted in the field of GIS by programmers and geographers . While GeoJSON is also an open standard format designed for Web which largely supported with GIS JavaScript API, other programming API and with GIS (Geographic Information System) software tools too, for easily rendering. GeoJSON is based on JavaScript Object Notation. Here we will explore different methods to convert the files online, or offline or with the help of API which programmers can make use of.

Convert shapefile to geojson

You may be interested to refer following articles:

Different ways to convert Shapefile to GeoJSON

I.) Online Method : Convert Shapefile to GeoJSON:

The simplest and fast way to access the internet is through the online method, as you don’t need to install and configure any tool on your PC. Just drag the Shapefile files, one click on button and convert to GeoJSON. There are many website which provides the tool to convert the files by browsing them to server side and convert and also some client side conversion too. Lets explore the list, which is only client side as client side conversion will secure your file and doesn’t take your data pack for uploading the file:

A.) MAPOG Converter Tool :

IGIS Map tool is one stop solution for all GIS data analysis and conversion.

 Shapefile to Geojson Conversion

  •  Go to the tool MapOG Converter Tool.
  •  If you are already registered then login otherwise sign up.
  • Once get register tap on Converter Button Shown in figure.

Convert shapefile to geojson

  • Upload the Shapefile from data set or Google Drive or Drop Box or already added in drive then choose the file. Lets we want to convert already uploaded file from My Drive then select the file.

Convert shapefile to geojson

  • Tap the file and new window will appear shown below.

Convert shapefile to geojson

  • Select the desired Output in our case choose Geojson. You can also change CRS. Now tap on Convert file button.

Convert shapefile to geojson

  • It will so the table in the next step. You can directly download the converted file or you can check it through clicking on publish button.

Convert shapefile to geojson

  • Below is the screen of published Geojson file.

Convert shapefile to geojson

Whole process is same from new uploaded file from data set or from google drive or from drop box. If you face any problem ping us at website.

You might be interested in Query on Geojson data file then try our tool IGIS Map tool.

This is presented by Engineer Philosophy pvt. ltd, working in GIS Sector an IT company. What you need to do is to just Register, login and upload only .shp and .dbf file and then export the uploaded layer to GeoJSON file by just selecting the option which appear at upper right corner in Navigation bar. You can also explore the attribute table from the website directly and filter the same which no other online tool provides.

different ways to convert Shapefile to Geojson - Online or Offline or API
different ways to convert Shapefile to Geojson – Online or Offline or API

Not only this, but you can classify the Map according to the shapefile dbf attributes and automatically classify and color it. The classified map can be exported as Scalable Vector Graphics i.e svg file.

Disclaimer: The above project is handled by me and my team and the project is in beta phase while you can definetly convert the shapefile to GeoJSON at client side securing your shapefile data. I would welcome your suggestion to improve the tool by commenting below or contacting me.

B.) Map Shapper : 

Map Shapper is the best tool which we should refer first. It is the best online tool which also handles large shapefiles and renders it quickly. Its an open source project and is licensed under MPL 2.0. Just drag the shapefile or zipped shapefile which will render the shapefile on map and can be further exported as geojson file with the option provided in tool itself.

different ways to convert Shapefile to Geojson - Online or Offline or API

With No doubt Map Shaper is much more better than any other tool for now, while the only reason why I placed this tool in second place just because the first tool was my own tool which provides more option for classifying the map, see all attributes in the data table and also exported as svg file.

2.) Offline Method – Convert Shapefile to GeoJSON in QGIS:

You must have installed QGIS  (Quantum GIS) before performing the provided steps. You may also look over other tutorial in QGIS.

1.) Open QGIS Desktop and Select Layer -> Add Layer -> Add Vector Layer or click on Add Vector layer icon appears at the upper left in the application.

different ways to convert Shapefile to Geojson - Online or Offline or API
different ways to convert Shapefile to Geojson – Online or Offline or API

2.) Select the zipped shapefile or any of file i.e .shp or .dbf or .shx by browing the folder. Note, that all the three files i.e .shp, .dbf and .shx file should be present in the same foder with same name.

3.) Once uploaded, the map will be rendered and showed in QGIS application. Now navigate to Layer menu and select Save As option or just from the layers panel select the layer and right click from it to select Save As option.

4.) A window pop up will opne up. From the window just select the GeoJSON format and provide the name of the file in the input box as shown in the image provided below. Save the file. It will export the file in GeoJSON format.

different ways to convert Shapefile to Geojson - Online or Offline or API

3.) Offline Method – Convert Shapefile to GeoJSON with command line ogr2ogr tool:

Firstly you need to install an ogr2ogr tool of GDAL which is a GIS utlitly command line tool so as to convert one file to another. Now if the ogr2ogr is installed globally check by simple tying the ogr2ogr in command line if it is working or not. Or if it residing in some file system you need to navigate to ogr2ogr file and type in the same in command line. Now Just type in the following:

  • “ogr2ogr -f GeoJSON -t_srs crs:84 [name].geojson [name].shp”

To get more option list and format you may see this gdal org link.

This tool will be helpful if you want to convert bulk files from shapefile to geojson. You can refer the .sh script found at github.

4.) Convert Shapefile to GeoJSON -API or library:

Shapefile is a binary file and cannot be viewed directly in notepad or textpad as like with GeoJSON file. So if you want to create your own API, to convert Shapefile to GeoJSON you should first have a knowledge of how to read the binary shapefile. You may refer to some of the articles which I have written some post which would help you to get the basic knowledge to know the format of files and read.

You may further refer to some of the best Shapefile to GeoJSON converter API which is open source project:

https://github.com/wavded/js-shapefile-to-geojson :  This is dedicated library to convert to GeoJSON, created by Marc Harter and Licensed with MIT.

https://github.com/gipong/shp2geojson.js : This library is also MIT Licensed and is inspired by the above wavded library which uploads zipped file of shapefile. The library provided an example to use with leaflet js.

https://github.com/mbloch/mapshaper : Map Shaper as desricbed above is licensed under MPL 2.0 and can be very useful if you want to convert to GeoJSON as well as TopoJSON.

Hope this article helped you. If are facing some problem in converting the shapefile to geojson do comment below with the problem statement. We will definitely look over that. Also you can provide your valuable comment below if you are using any other library or tool to cover the same.