Locations Cloud Scraping

1 month ago · 3 min. reading time · visibility ~10 ·

chat Contact the author

thumb_up Relevant message Comment

How To Plot Location Data From A CSV File As A Points On QGIS?

How-to-Plot-Location-Data-from-a-CSV-File-as-a-Points-on-QGISPH Locations

Xi Info@locationscloud com www locationscloud com

 

p08 encore aes

i me 4 L === How to Plot Location

ois

wens we Data from a CSV File
we — verso as a Points on QGIS?

 

What Is QGIS?

QGIS also known as Quantum GIS, is a free and open-source application for desktop Geographic information that supports viewing, editing, and monitoring of Geospatial information. It can be downloaded for free for Windows, Mac, Linux, BSD, and mobile devices. It also enables a wide range of multiple spatial data analyses through various tools and plugins.

Location Data For Visualization

We will use Subway store location datasets in United States from the Locationscloud store.

Visualizing Point Data Over The Base Map

isualizing-Point-Data-Over-the-Base-Map254s Nw gave

198 tow 700 hn
301 wr th seek

1055 we Tun Ave

B83 Biscayne she

{ Bs .

294 We dea Street
Prveazeae 104 Em Fogler Street

172 west Magtey Strpet Regi

ye

590 South Miseni Avene

2211 Ponce Ga Loon hive
2301 Corst way 109 Corsi way

The simplest method to know the store location data more is to plot it on the map. When we map points on a 2D surface, we can easily see their spatial relationships, such as closeness or aggregation. By just visually analyzing the data points plotted above a topographic map, we can learn more about the data points. You may find out the locations of the stores in the city and nearby towns, roads, lakes, and other geographical locations.

The following are the steps of placing position information over a region/base country’s map:

• Import the default map.
• As just a point vector, import the CSV file from the Locationscloud shop.
• Modify the symbology and label everything correctly.
• QGIS allows you to save the map as an image or a PDF.

Importing The Base Map

The Base map layer gives background details like roads, points of interest, building footprints, rivers, etc. Because Open Street Maps (OSM) is indeed the default in QGIS, we’ll employ it as our foundation map. You can also utilize Google Maps, Mapbox, Bing Maps, and other similar base maps.

Select Layers tab from the main toolbar, select AddLayer>AddXYZLayer>Select OpenStreetMap>Add.

Importing-the-Base-Mapsw
I Cope 1390 Lpcesssy 83 Bhan 337 Poms Crossing Tome Cancer
499 ar 03) Bar Pace en Sat £2065

3 Sows 2 17 Be 3

85 Ambar 0 Amst 6 Sut 300 Cot ves Vale Fass

3736 Baer 1720 bain Sewet

1133 best 112) sate

Sens Pan mais rime ©

975 Geum 47 5 Geenty Duis Pre
61 Con 2439 { Om 4

$99 re 4 185 Tost re we
1217 Boch 1337 Raciidge 4 Jure $19 Sachin Vibe hamping C1
3 west 5G wast 8 Corts 84 0p
7499 Caren T498 Sart ast ke 430 Coane Pa Cover
13607 wm £3437 wo 0

Et r—
103 South 1512 Sows Mn row wma me 0
Setamces A tres 5 rvs Cans
£760 cy £2 cps ot Ske
1232 wen 31) west Bom Po Rend
$714 10871 Lb Pace ke A 2
HO Un 21995 Tat 9h Swe

2am
35: tree

HIN Gunes sree
Suro 4 Burson Hass
ohms he Drive Lamse Socging C1

5
sue

proses
pe
anne 0
Same sao 34
oon TX
Sun fats $0
open
Gren a
feet wa
caer 4

‘
Do Cote
sc
wn
5
soe
ra
ns
on
a3
ra
soe
aon?
wn
ma
i
sie?
ws:
on
wae)
anes
ey
ren
aor

an
waren
wom 470
wine:
© Tivo
70 125 com
[rie
1 48m
Yi 3 200
204460
oem sm
£90555 041
are
ean
320 po
se sap 1200
re sae
wr am
Ser ari
sar ries
71290 ww
ou 523 mez?
rac 34 cant

o
rate
wn
unm
su
vn
new
free
fr
om
nan
ne
ns
we
ro
em
an
em

 

wangrate

oven
2.3901 130 pessmy £3 Maan 267 Pam Crossing Toms Cancer Mohn T
BETS 40 % Maree Pace wa Mat 42089, Lavin, 0. GDL
T1047 17 Bate 1 esten, CT. 4085
33553 00 Amar Wd Sue 100 Cnr ew Vile Pi, Wai, 4, 534
55003 1720 benim Swe, Porn TL TS4D
S490 £12) Bao, Commis GA DIET
5428 to Pocky Kamat Space Conta 33090
544 97 3 Sven Dui Pavan, Gatoeshocs. TH, W342
2.537% 24301 Om 30 wea. 1A i001
77 912) 390 is Lowe a, Watiegeon, X. 39001
84.1323 1227 Rockrtge 88 Sue £10 buco brdge Vikage Shang CL 3150 Mamata, GA KOH U4
79790 wnt 54 Charis 84 8. 0h Pah. 8,485
544823 TI Gath and be 430 Coin Mase Conver Rogbama, TX TP531
3103 53607 We 75 he Mami D300
PTT 4165 bras Sead. St Fh.
55934 532 Sout be reat Hemet

ns

1 betes de
15825 108 % thc Rant So 151 Geert AZ $120)
747008 £112 Wnt ovr Pr Ao, Marmaris, WT
it Bos Pe So Ske 4 3, Davee. wh 4328
710092 40 nt 230 Street fev, NT 13048

950 Gem Street. Lnnter, 14, $40)
261 borrnn $ Baromne Maan, New Orme, LA, 412
hems Phe Deir ee Snes Shipping C1. etpmace, Oo, 41533.

Throughout the QGIS layers tab, OSM has been included as a layer and it can be viewed in the map canvas area.

Throughout-the-QGIS-layers-tab-OSM-has-been-included-as-a-layer-and-it-can-be-viewed-in-the-map-canvas-areautled Project — QGIS

gd View [EH] settings Plugins Vector Raster Database Web Mesh Processing Help
% Data rce Manager CrrieL (Oo
« 9 J J y ~

Create Layer Van oan B
V; Add Vector Layer CtrieShifteV =
Embed Layers and Groups B®, Add Raster Layer CtrieShifteR
Add from Layer Definition File. B® Add Mesh Layer
Copy Style
Favorites Paste Sty RB, Add PostGIS Layers CtrieShifteD
Spatie] Bock: 35 Copy Layer dd Spatalite Layer CtrivShiftel
dd MSSQL Spatial Layer
8, Add DB2 Spatial Layer Ctrl«Shifte2
@, Add Oracle Spatial Layer Cirle Shifts O
8 Add/Edit Virtual Layer
8) Add WMS/WMTS Layer Ctrie Shifts W
Add XYZ Layer

Home
cA

@ GeoPackage

/ spata Save As
a a

@ rosiGis Save As Layer Definition File @ Ad ArcGIS Map Service Layer

P mssal Remove Layer/Group . @ Add WCS Layer

Oracle Duplicate Layer(s) & sd Wr Layer

@ce2 > -
s ; J dd ArcGIS Feature Service La
@® WMSAWMTS Set Scale Visibility of Layer(s) yer

B8 vector Tiles Set CRS of Layers)
iy Set Project CRS from Layer

dd Vector Tile Layer.

Layers
CART Layer Properties

~ Vv I Openstree
Li ing

©2 Show in Overview
©0 Show All in Overview
OZ Hide All from Overview

sording 18762226,21039364 RY 2257461856 ~ | @ agnih 100%

Importing The CSV File As A Point Vector

Importing-the-CSV-File-as-a-Point-VectorData Source Manager | Defimuted Text

Fie rama C\Usars marc Donrioeds subway amo cov

Layer nama subway apie
© Pile Format
© CSV (comma separated values)
Regular expression deme:
Cuntorn cakmstars
+ Record and Fields Options

a Nombar of hander nat 10 dacard Decimal separator is comma
Spatialite

V Fist record has fad names Tren fics
Detect fd types Duscard emgty fekds

+ Geometry Definition

[x hoc Long. ~
® Point coordinates 2d is Ee
¥ fait Latituce Ll

Well known text (WKT) pe——

0 grormatry (attritn rly table) [Georetry CRS Project CRS: EPSGIA126 - WGS 84

= Layer Settings.
Use spatial index:
Sample Data

Name Street City Zp Code Pho
13300 Expressway 83 3300 Expressway 83 Room D7 Palms Crossing Town Center Mcallen 78501 9% 992

2 409 N Market Place 409 N Market Place Wal Mart 82869 Lansing 48917 517.627
3 37 Route? 37 Route 2 Preston 6365 860-892

480 Amber AN Bmhorct Bd Sst A) Cocdar Rims Vins Dias Nacho woken marae”
‘ »

We’ll import the shop location data as just a point vector layer after we include the base map. The CSV file picked up from Locationscloud will appear as shown below. The data will be fetched in an excel sheet. Each entry present in the table has Latitude and Longitude, depending on which we can plot the points.

The latitudes and longitudes are the types of coordinates and every entry in the table will be inserted as a point vector. Here, we will assign Longitude as the X-coordinate and latitude as Y-coordinate to a fresh ‘Delimited Text Layer’.

Go to the Layers tab from the main toolbar then select AddLayer> Add Delimited Text layer.

Go-to-the-Layers-tab-from-the-main-toolbar-then-select-AddLayer-Add-Delimited-Text-layerv © Marker
® Simple Marker

topo hospital 10po pop caprtal

Browse for the Locationscloud CSV file in the ‘Data Source Manager’ box that appears. Choose X and Y fields for latitude and longitude respectively. Also, choose the related Geometry CRS (Coordinate reference system) depending on the area or country you are living. For the United States, EPSG 4326 – WGS 84 is considered.

For-the-United-States,-EPSG-4326-–-WGS-84-is-considered.(QQ Layer Properties — subway_usa_mainland — Labels

@i Single Labels
Value 5 Name
~ Text Sample

Lorem Ipsum

Lorem Ipsum

we Text Text

ormatt Font

o
3% Placer

J Renden Color

Allow HTML formatting

Favortes
Rendering

Add button must add various points to a layer of Subway store locations over the base map. Then, Right-click on the data layer and choose ‘Zoom to layer’ option, you will see the below image:

Then,-Right-click-on-the-data-layer-and-choose-‘Zoom-to-layer’-option,-you-will-see-the-below-image263 rence Se esa vw
{ 29 corns 2100 Conia

Edit The Symbology And Label Properly

To make the map more attractive, let’s alter the symbology of both the point vector layers. The size, color, shape, and other attributes of the symbols used in each point are referred to as symbology.

Right-clicking the point data layer, choose properties, and go to the symbology tab.

Edit-the-Symbology-and-label-properlyQ “Untitled Project — QGIS
Daa] Edit View Layer Settings Plugins Vector Raster Database Web Mesh Processing Help

"New CirieN D ) 1 on QFE

~ wt =v 1

New from Template

NE yg mgy @

Open Cule0
Open From
Open Recent
Close
3 save Cirle ) | ot
B® save As Ctrl + Shifts i

Cove To , 12545 Nw 42 "Ave

. rst 738 pet
/ Properties Ctrie Shifts P
Snapping Options pee
Bl; Export Map to Image
) New Print Layout
2 New Report Export Project to DXF
3) Layout Manager Import Layers from DWG/DXF
Layouts
Ext QGIS CtrleQ
JJG
@ GeoPackage
/ Spatialite
§ rostols
P mssaL
@ Oracle

& os2

@® wms/wMmTS
BE vector Tiles

A wes
&) WFS / OGC API - Features

Choose the ‘Single Symbol’ option from the symbology box. Make any necessary changes to the symbol’s size, color, and type.

Make-any-necessary-changes-to-the-symbol's-size,-color,-and-type

To assign a label to every other point of data, right-click the layer, pick properties, and then the Label option. Here we may choose the field to be used as the label and change the label’s other characteristics.

Here-we-may-choose-the-field-to-be-used-as-the-label-and-change-the-label's-other-characteristics

Choose ‘Single Label’ and then ‘Value’ entry from the table as the label. Each store’s location name is labeled here. Set the font, font color, font size, opacity, and other parameters to your preference.

Set-the-font,-font-color,-font-size,-opacity,-and-other-parameters-to-your-preference

The map after editing the symbology, and labels will be somewhat

The-map-after-editing-the-symbology,-and-labels-will-be-somewhat

Exporting Map As An Image Or PDF

We can save the map we’re looking at in QGIS’ Image canvas area as a PDF or an Image (png). We’re only exporting a portion of the map in this report. Right-click the image layer and select the ‘Zoom to Layer ‘option to export the complete map. In that scenario, you can disable the labels for a more professional appearance.

For the time being, we’ll just export a basic map without any additional map elements. If necessary, you can use QGIS to include legends, scale, north arrows, and other map components.

Firstly, zoom and slide the image across the canvas to export it in PDF or PNG format.

Go to the project>Import/Export>Export as Image for png format or Export as PDF to receive the final map in PDF format.

For any queries, contact Locationscloud, today!!

thumb_up Relevant message Comment
Comments

More articles from Locations Cloud Scraping

View blog
3 weeks ago · 4 min. reading time

How To Scrape Data From A Website’s Store Locator?

Web Scraping Store Locator Can Help You: · Obtain ...

1 month ago · 3 min. reading time

Which Are The Largest Discount Stores In The US?

Discount retailers are distinguished by their pric ...

1 month ago · 3 min. reading time

Largest Auto Parts Stores In The US – Location Analysis

The online automotive aftermarket worldwide, despi ...