Use Case: PostGIS and Agribotics
-
Upload
pgday-asia -
Category
Software
-
view
203 -
download
1
Transcript of Use Case: PostGIS and Agribotics
![Page 1: Use Case: PostGIS and Agribotics](https://reader031.fdocuments.in/reader031/viewer/2022030307/58e603c81a28ab44778b47cb/html5/thumbnails/1.jpg)
PostGIS and Agribotics
Gary Evans
![Page 2: Use Case: PostGIS and Agribotics](https://reader031.fdocuments.in/reader031/viewer/2022030307/58e603c81a28ab44778b47cb/html5/thumbnails/2.jpg)
Agriculture in Australia
Interest grew in Agribotics from my hobbies where spatial awareness is very important:
![Page 3: Use Case: PostGIS and Agribotics](https://reader031.fdocuments.in/reader031/viewer/2022030307/58e603c81a28ab44778b47cb/html5/thumbnails/3.jpg)
Outline
Agriculture in Australia
Potential of RPASs in Agriculture
Current capabilities (imaging)
An example scenario that utilises PostgreSQL:
JSON
Import capabilities (Geospatial Data Abstraction Library)
Vector Geometry functions
Raster functions
![Page 4: Use Case: PostGIS and Agribotics](https://reader031.fdocuments.in/reader031/viewer/2022030307/58e603c81a28ab44778b47cb/html5/thumbnails/4.jpg)
Agriculture in Australia
Australian farmers produce enough food to feed 80 million people
93% of the domestic food supply is meet by Australian farmers
Export market is valued at $42 Billion per annum
Agriculture and related services represent 12% of Australia's GDP
Significant new investment in this sector
![Page 5: Use Case: PostGIS and Agribotics](https://reader031.fdocuments.in/reader031/viewer/2022030307/58e603c81a28ab44778b47cb/html5/thumbnails/5.jpg)
Challenges
Climate change resulting in unpredictable rainfall
Falling/Unpredictable commodity prices
Skill shortages
Lower dollar resulting in higher cost of fertilisers and farming machinery
High wastage in the supply chain (estimated > 30%)
![Page 6: Use Case: PostGIS and Agribotics](https://reader031.fdocuments.in/reader031/viewer/2022030307/58e603c81a28ab44778b47cb/html5/thumbnails/6.jpg)
Common Direction
Natural Resources
Agriculture Within Society
Competitiveness
Innovation, Research, Development
![Page 7: Use Case: PostGIS and Agribotics](https://reader031.fdocuments.in/reader031/viewer/2022030307/58e603c81a28ab44778b47cb/html5/thumbnails/7.jpg)
Drones in Agriculture
Use of Remotely Piloted Aircraft Systems (RPAS) is not really new:
Radio controlled target drones were used in the military in the 1930’s
Electronic information gathering and dropping of propaganda leaflets was utilised in the 1960’s
The availability of hobby grade kits has accelerated use of RPAS in commercial applications
![Page 8: Use Case: PostGIS and Agribotics](https://reader031.fdocuments.in/reader031/viewer/2022030307/58e603c81a28ab44778b47cb/html5/thumbnails/8.jpg)
Scout Aerial and Media
![Page 9: Use Case: PostGIS and Agribotics](https://reader031.fdocuments.in/reader031/viewer/2022030307/58e603c81a28ab44778b47cb/html5/thumbnails/9.jpg)
Drones in Agriculture
Why RPAS in agriculture?
![Page 10: Use Case: PostGIS and Agribotics](https://reader031.fdocuments.in/reader031/viewer/2022030307/58e603c81a28ab44778b47cb/html5/thumbnails/10.jpg)
Drones in Agriculture
Why RPAS in agriculture?
Large and remote
Largest = 23,677sq km 50th largest = 5,334 sq km
![Page 11: Use Case: PostGIS and Agribotics](https://reader031.fdocuments.in/reader031/viewer/2022030307/58e603c81a28ab44778b47cb/html5/thumbnails/11.jpg)
Drones in Agriculture
![Page 12: Use Case: PostGIS and Agribotics](https://reader031.fdocuments.in/reader031/viewer/2022030307/58e603c81a28ab44778b47cb/html5/thumbnails/12.jpg)
Types of Systems
Fixed Wing
Multirotor
![Page 13: Use Case: PostGIS and Agribotics](https://reader031.fdocuments.in/reader031/viewer/2022030307/58e603c81a28ab44778b47cb/html5/thumbnails/13.jpg)
Current Capabilities
Data - Detailed information Sensor information
Temperatures
Moisture
Co2
Payloads
Cameras
![Page 14: Use Case: PostGIS and Agribotics](https://reader031.fdocuments.in/reader031/viewer/2022030307/58e603c81a28ab44778b47cb/html5/thumbnails/14.jpg)
Current Capabilities
Data:
Flight plans
Flight tracks
Telemetry data
Sensor/Imaging data:
• Obstacle mapping • Yield estimates • Ground cover profiling • Temp/Pressure profiling • Spore, pollen counts • C02, ammonia sensing • Data capture from ground sensors • Water quality/survey
• Vegetation status • Pest damage • Dam/Drainage survey • Topography • Pathogen/weed tracking • Wind/shear profiles • Detassel assessment
![Page 15: Use Case: PostGIS and Agribotics](https://reader031.fdocuments.in/reader031/viewer/2022030307/58e603c81a28ab44778b47cb/html5/thumbnails/15.jpg)
Capabilities - Next
Protection – Protecting crops from harm Precision herbicides, pesticides and fungicides
Disease detection and tracking
Identification of wildlife threats and thwarting them
Birds
Rabbits
Insect/worm identification
![Page 16: Use Case: PostGIS and Agribotics](https://reader031.fdocuments.in/reader031/viewer/2022030307/58e603c81a28ab44778b47cb/html5/thumbnails/16.jpg)
Capabilities - Future
Seeding and Harvesting Crop planting
Feeding
Harvesting
![Page 17: Use Case: PostGIS and Agribotics](https://reader031.fdocuments.in/reader031/viewer/2022030307/58e603c81a28ab44778b47cb/html5/thumbnails/17.jpg)
Why is PostgreSQL/PostGIS useful
Organisation of lots of information
Integrated toolset
Flexibility and extensibility
![Page 18: Use Case: PostGIS and Agribotics](https://reader031.fdocuments.in/reader031/viewer/2022030307/58e603c81a28ab44778b47cb/html5/thumbnails/18.jpg)
A scenario
Import a mission plan into PostgreSQL for future use
Find stored mission plans that are within a distance of where I need to collect data from on next trip
Importing logged track, telemetry data, sensor data and images after performing a survey flight
Process a set of collected images to extract useful data
Identify and export waypoints of problem areas requiring further investigation by agricultural consultants
![Page 19: Use Case: PostGIS and Agribotics](https://reader031.fdocuments.in/reader031/viewer/2022030307/58e603c81a28ab44778b47cb/html5/thumbnails/19.jpg)
Flight Plans and Tracks
![Page 20: Use Case: PostGIS and Agribotics](https://reader031.fdocuments.in/reader031/viewer/2022030307/58e603c81a28ab44778b47cb/html5/thumbnails/20.jpg)
Flight Plans and Tracks
Tracking information – GPS exchange format
![Page 21: Use Case: PostGIS and Agribotics](https://reader031.fdocuments.in/reader031/viewer/2022030307/58e603c81a28ab44778b47cb/html5/thumbnails/21.jpg)
Flight Plans and Tracks
OGR2OGR
-lco GEOMETRY_NAME – sets column name
-lco LAUNDER – makes more PostgreSQL compatible
-nln tablename – Sets the table name to be created
-f “PostgreSQL” (or “TIGER” “ESRI Shapefile” “GML”
OGRInfo
![Page 22: Use Case: PostGIS and Agribotics](https://reader031.fdocuments.in/reader031/viewer/2022030307/58e603c81a28ab44778b47cb/html5/thumbnails/22.jpg)
Imagery
The combination of Drones and todays digital camera is enabling smaller organisation to offer NDVI services
Much higher resolution
Cloudy days aren’t so much an issue
Reflected radiation doesn’t have to travel so far
(NIR-VIS)/(NIR+VIS)
![Page 23: Use Case: PostGIS and Agribotics](https://reader031.fdocuments.in/reader031/viewer/2022030307/58e603c81a28ab44778b47cb/html5/thumbnails/23.jpg)
Imagery
Layers found on the back of healthy leaves reflect higher levels of near infrared
NIR
NIR
Unhealthy leaves
Healthy leaves
![Page 24: Use Case: PostGIS and Agribotics](https://reader031.fdocuments.in/reader031/viewer/2022030307/58e603c81a28ab44778b47cb/html5/thumbnails/24.jpg)
Landsat Program
Longest running program for acquiring satellite imagery of the earth
Landsat 1: Visible light (RGB) & near infrared
Landsat 8: GeoTIFF with pixel size to 30 meters
![Page 25: Use Case: PostGIS and Agribotics](https://reader031.fdocuments.in/reader031/viewer/2022030307/58e603c81a28ab44778b47cb/html5/thumbnails/25.jpg)
NDVI Image
Band values from -1 to 1 High levels of reflected NIR closer to 1 Low levels of reflected NIR closer to -1 -1 to 0 normally non living material Colour coded image with legend is often the final
representation
![Page 26: Use Case: PostGIS and Agribotics](https://reader031.fdocuments.in/reader031/viewer/2022030307/58e603c81a28ab44778b47cb/html5/thumbnails/26.jpg)
Rasters
Landsat8 handbook
Raster2pgsql
Import single or multiple rasters
Break up rasters
Create thumbnails/overviews
Gdal_translate
Modify resolution
Gdalwarp
Modify spatial reference system
![Page 27: Use Case: PostGIS and Agribotics](https://reader031.fdocuments.in/reader031/viewer/2022030307/58e603c81a28ab44778b47cb/html5/thumbnails/27.jpg)
Index Accuracy
Variations during the year…..
Canola Corn
![Page 28: Use Case: PostGIS and Agribotics](https://reader031.fdocuments.in/reader031/viewer/2022030307/58e603c81a28ab44778b47cb/html5/thumbnails/28.jpg)
NDVI Image from a multi spectral camera
![Page 29: Use Case: PostGIS and Agribotics](https://reader031.fdocuments.in/reader031/viewer/2022030307/58e603c81a28ab44778b47cb/html5/thumbnails/29.jpg)
Image from a multi spectral camera
![Page 30: Use Case: PostGIS and Agribotics](https://reader031.fdocuments.in/reader031/viewer/2022030307/58e603c81a28ab44778b47cb/html5/thumbnails/30.jpg)
ndvi
CCDs in cameras capture
frequencies up to around 1300 nm (Near Infrared)
(Channel 1) Red
(Channel 2) Blue
(Channel 3) Green
IR filter blocks 700nm upwards
![Page 31: Use Case: PostGIS and Agribotics](https://reader031.fdocuments.in/reader031/viewer/2022030307/58e603c81a28ab44778b47cb/html5/thumbnails/31.jpg)
Camera Modification
![Page 32: Use Case: PostGIS and Agribotics](https://reader031.fdocuments.in/reader031/viewer/2022030307/58e603c81a28ab44778b47cb/html5/thumbnails/32.jpg)
(Channel 1) NIR
(Channel 2) Blue
(Channel 3)
ndvi
(NIR-VIS) (NIR+VIS)
NIR = Channel 1 VIS = Channel 2
![Page 33: Use Case: PostGIS and Agribotics](https://reader031.fdocuments.in/reader031/viewer/2022030307/58e603c81a28ab44778b47cb/html5/thumbnails/33.jpg)
Image processing
Generate OrthoMosaic
![Page 34: Use Case: PostGIS and Agribotics](https://reader031.fdocuments.in/reader031/viewer/2022030307/58e603c81a28ab44778b47cb/html5/thumbnails/34.jpg)
Image Processing
![Page 35: Use Case: PostGIS and Agribotics](https://reader031.fdocuments.in/reader031/viewer/2022030307/58e603c81a28ab44778b47cb/html5/thumbnails/35.jpg)
Beyond NDVI
![Page 36: Use Case: PostGIS and Agribotics](https://reader031.fdocuments.in/reader031/viewer/2022030307/58e603c81a28ab44778b47cb/html5/thumbnails/36.jpg)
Map Algebra
ST_MapAlgebra
ST_Colormap
ST_PixelAsPoint
ST_Contains
ST_Intersection
ST_Histogram
ST_AsJPEG
![Page 37: Use Case: PostGIS and Agribotics](https://reader031.fdocuments.in/reader031/viewer/2022030307/58e603c81a28ab44778b47cb/html5/thumbnails/37.jpg)
Summary
Main capability of RPASs in Agriculture (imaging)
Typical image processing
Current features of PostgreSQL that are useful
Next:
How to capture and represent the data required to produce useful results
Automation of the process