A]Advanced GIS Operations 1: Nearest Neighbor Analysis, Sampling Raster Data using Points or Polygons, Interpolating Point Data
Ans)

Nearest Neighbor Analysis
Step 1:Layer->Add Layer->Add vector layer
 
Step 2:Vector->vector dataset(s)->select populated places file
 
Step 3:The file added to the project
 
Step 4:Layer->Add Layer->Add Delimited text layer
 

Step 5:Delimited Text->select earthquake file->file format(CSV)->point coordinates(no geometry)->add
 
Step 6:The file added to the project
 


Step 7:Vector->Analysis Tools->Distance matrix


Step 8:Distance matrix->Parameters->select input point layer(earthquakes file)->input unique ID Field(select populated places)->taget points(1)
 
Step 9:Distance matrix->Logs
 

Step 10:The file added to the project
 


Step 11:Distance matrix->open attribute table
 
Step 12:Disatnce matrix->Atrribute table
 

Step 13:earthquakes(right click)->properties->Joins->click(+)->select join layer(distance matrix)->join field(inputID) and target field(location.name)
 


Step 14:earthquakes->open attribute table
 
Step 15:Attribute table
 

Step 16: earthquakes(right click)->properties->source->click query builder
 



Step 17:query builder->select location.name->Japan
 
Step 18:Output of selected field
 
Step 19:Repeat same steps and add sov0name and place Japan

Step 20: Output of selected field
 
Step 21:MMQGIS->create->Hub Lines/Distance
 
Step 22:Hub Lines->hub layer(earthquake file)->Hub name field(id)->spoke layer(populated places file)->apply
 
Step 23:Output

B. Sampling Raster Data using Points or Polygons


Step 1:Layer->Add layer->Add Raster layer
 
Step 2:Raster->raster dataset(select the file tmax_nohads_float)->add
 
Step 3:The file added to the project
 
Step 4:layer->add layer->add delimited text layer
 
Step 5:Delimited text ->select the file(Gaz ua national)->file format(custom delimeters->Tab)->Geometry definition(point coordinates->x field=INTPTLONG->y field=INTPTLAT)->add
 

Step 6:The file is added to the project
 
Step 7:open the attribute table of 2013_Gaz_ua_national by right clicking the file
 
Step 8:Plugins->Analyses->Point Sampling Tool
 
Step 9:Point Sampling Tool->select fields(GEOID,NAME,tmax_nohads file)
 
Step 10:The new_layer file is added to the project
 
Step 11:open the attribute table of the new_layer 
    
Step 12:Layer->Add Layer->Add vector layer
 
Step 13:Vector->vector dataset(select the 2013_us_county file)->add
 
Step 14:The file added to the project
 

Step 15:Processing->Toolbox
 

Step 16:Select zonal statistics
 

Step 17:Raster Analysis->parameters->input layer(select the us_county file)->raster layer(select the tmax_mohads file)->output prefix(ZS_)->Run


Step 18:Raster Analysis->logs
 
Step 19: The file added to the project
 
Step 20:Open the Attribute table of zonal statistics by right clicking the file.


Step 21:layer properties of zonal statistics->symbology->Graduated->value(ZS_mean)->color ramp (spectral)->classify->apply
 

Step 22:Output

C. Interpolating Point Data
Step 1:Layer->Add Layer->Add vector layer
 
Step 2: Vector->vector dataset(select the Shapefiles file)->add
 
Step 3:Select items to add->Arlington_soundings and Boundary2004 layers->add layers
 
Step 4:The file added to the project
 
Step 5:Processing->Toolbox
 


Step 6:Processing toolbox->TIN interpolation
 

Step 7:parameters->vector layer(select the Arlington_soundings file)->interpolation attribute(ELEVATION)->method(linear)->click(+)->select output raster size pixel size x= y=3.1000->run


Step 8:TIN interpolation->logs
 

Step 9:The file added to the project
 

Step 10:Raster->extraction->clip raster by mask layer

Step 11:extraction->parameters->input layer(interpolated)->mask layer(shapefiles)->run
 

Step 12:extraction->logs
 

Step 13:The file clipped by removing the extra surface from the sides.


Step 14:layer properties of clipped layer file->symbology->singleband pseudocolor->select the color ramp and click classify->run
 

Step 15:The properties are applied to the file
 

Step 16:Raster->extraction->contour


Step 19:extraction->contour->input layer(clipped file)->interval(10)->attribute name(ELEV)->run
 

Step 20:extraction->contour->logs
 

Step 21:The contour file is added to the project


Step 22:properties of the contour layer file->labels->single labels->value(ELEV)->run
