SlideShare a Scribd company logo
How to Create a BLN
file from SHP
Muhammad Jazman
jazman@uin-suska.ac.id
Golden Software Surfer
• Create
• base map
• contour
• post and classed post
• Images
• shaded relief
• viewshed
• 3D wireframe
• 3D surface
• Calculate
• length
• area
• profile
• volume
Base Map
• Surfer support ESRI Shapefile SHP as your
basemap
Base Map (cont.)
• Base Map is better
suited as an overlay
base layer for your
contour
Base Map + Contour
Problems
• Blanking Grid
• Original Grid is Equally spaced area
• No “BLANK” Shape
Original Grid
Golden Software Blanking
BLN
• BLN file is used to blank grid
• convert area outside specified BLN file to “BLANK
value”,
Surfer Training Guide - by Tom Bresnahan and Kari
Dickenson page 18
But, how to create a BLN from
SHP?
• Do it online
• Golden Software online converter
• failed me almost every time
BLN formats
• It’s just a simple ASCII file, you can edit it with
notepad in Windows!
• First Line is number of rows (vertex) and
comma and 0 or 1
• 0 if you blank area outside polygon
• 1 if you blank area inside polygon
• The rest is x and y coordinates
notepad
number of rows
0 or 1
x, y coordinates
ogr2ogr
• open source tool to convert between various
vector format file in GIS
• Support almost every format in GIS
• but not Golden Software BLN
• ogr2ogr --long-usage
PCIDSK netCDF PDF DB2ODBC ESRI
Shapefile MapInfo File S57 DGN Memory
BNA CSV GML GPX LIBKML KML
GeoJSON Interlis 1 Interlis 2 OGR_GMT
GPKG SQLite ODBC WAsP
MSSQLSpatial PostgreSQL MySQL DXF
Geoconcept GeoRSS GPSTrackMaker
PGDUMP GPSBabel GFT CouchDB
Cloudant ODS XLSX ElasticSearch Carto
AmigoCloud Selafin JML VDV TIGER
KML
• KeyHole Markup Language store x and y
coordinates in plain text
• ogr2ogr -f KML out.kml myoriginal.shp
• now, open your out.kml with your text editor,
preferable is Notepad++
• clean all areas but coordinates , before and after
replace space with n
• convert space character into newline
• use extended search mode in Notepad++
space
extended
Count the Coordinates
• Ctrl + End
Add a new line on top of file
• number of coordinates, 0
original grid
Blank
0 blank outside
1 blank inside
Q/A
Mobile: +62 812 1012 7812
Email: kampar@gmail.com <primary>
Email: jazman@uin-suska.ac.id <office>
The hard way
Draw your own BLN
Draw your blank
• Create a new Plot Document in Surfer
• Import your shp
• DON’T thick / check convert to curve (Polyline)
• Export it again as BLN
The hardest part
• Change BLN rectangle to suit your SHP
extents
• How to know your shape extent?
• ogrinfo
• QGIS layer properties
ogrinfo
• ogrinfo yourshape.shp
ogrinfo 1473_dumai.shp
INFO: Open of '1473_dumai.shp'
using driver 'ESRI Shapefile' successful.
1: 1473_dumai (Polygon)
file name
layer name
ogrinfo yourshape.shp layer
• whilst you know your layer name, ogrinfo it
again
• ogrinfo -geom=NO filename.shp layer
ogrinfo -geom=NO 1473_dumai.shp 1473_dumai
INFO: Open of '1473_dumai.shp'
using driver 'ESRI Shapefile' successful.
Layer name: 1473_dumai
Metadata:
DBF_DATE_LAST_UPDATE=2017-11-05
Geometry: Polygon
Feature Count: 1
Extent: (101.009292, 1.431062) - (101.728169, 2.275318)
ogrinfo
• skip –geom=NO to see all coordinates in
specified layer
QGIS
• Open your SHP in QGIS
• Double-click to open Layer Property
• Navigate into Metadata
• Scroll down to extent (provided here is Batas,
extent in Bahasa/Indonesian)
Now go back to Export
• Change BLN Rectangle using provided extent
the results are almost identical
• from KML
• drawing
Muhammad Jazman, S.Kom.,MInfoSys
• Serjana Komputer (S.Kom) / Bachelor of Science
in Computer from Universitas Indonesia (2007)
• Lecturer in Politeknik Kampar, a regency owned
polytechnic in Kampar regency (district), Riau
province, Indonesia (2007-2015)
• Master of Information Systems (MInfoSys) from
University of Wollongong, NSW, Australia (2010)
• Civil Servant (2015), serve as lecturer in GIS in
faculty of sciences and technologies, Universitas
Islam Negeri / UIN (state-owned Islamic university)
Sultan Syarif Kasim Riau

More Related Content

What's hot

Advanced surveying equipment ppt
Advanced surveying equipment pptAdvanced surveying equipment ppt
Advanced surveying equipment ppt
Naufil Sayyad
 
Total station .pptx
Total station .pptxTotal station .pptx
Total station .pptx
AlwandBarzani
 
Distance measuring techniques
Distance measuring techniquesDistance measuring techniques
Distance measuring techniques
WisalHasnain
 
coulomb's theory of earth pressure
 coulomb's theory of earth pressure coulomb's theory of earth pressure
coulomb's theory of earth pressure
SANJEEV Wazir
 
Tunnel’s
Tunnel’sTunnel’s
Tunnel’s
Javed Syed
 
Determination of reservoir storage capacity
Determination of reservoir storage capacityDetermination of reservoir storage capacity
Determination of reservoir storage capacity
chingtony mbuma
 
Clipping
ClippingClipping
Clipping
AMIT VIRAMGAMI
 
Log acquisition and processing
Log acquisition and processingLog acquisition and processing
Log acquisition and processing
OYLex LMS
 
Saurav_BEARING CAPACITY OF BED ROCK AND SOIL DEPOSITS.pptx
Saurav_BEARING CAPACITY OF BED ROCK AND SOIL DEPOSITS.pptxSaurav_BEARING CAPACITY OF BED ROCK AND SOIL DEPOSITS.pptx
Saurav_BEARING CAPACITY OF BED ROCK AND SOIL DEPOSITS.pptx
Tribhuwan University
 
Control surveying
Control surveyingControl surveying
Control surveying
Prakash Kumar Sekar
 
Theodolite angle measurement
Theodolite angle measurementTheodolite angle measurement
Theodolite angle measurement
Mujeeb Muji
 
Presentation on Parallel projection.pptx
Presentation on Parallel projection.pptxPresentation on Parallel projection.pptx
Presentation on Parallel projection.pptx
GoutamSharma33
 
tacheometry surveying
tacheometry surveyingtacheometry surveying
tacheometry surveying
Jayachandra Jitendra
 
hidden surface elimination using z buffer algorithm
hidden surface elimination using z buffer algorithmhidden surface elimination using z buffer algorithm
hidden surface elimination using z buffer algorithmrajivagarwal23dei
 
Well logging
Well loggingWell logging
Well logging
PE Mahmoud Jad
 
Information About Contour And its charecteristics
Information About Contour And its charecteristicsInformation About Contour And its charecteristics
Information About Contour And its charecteristics
Ashraf Sayyed
 
Trigonometric levelling
Trigonometric levellingTrigonometric levelling
Trigonometric levelling
Rajendra Prasad
 
Tunnels surevey
Tunnels sureveyTunnels surevey
1392741020 traverse survey
1392741020 traverse survey1392741020 traverse survey
1392741020 traverse survey
anjali adabala
 
Curves and surfaces
Curves and surfacesCurves and surfaces
Curves and surfaces
Mohammed Mahmoud
 

What's hot (20)

Advanced surveying equipment ppt
Advanced surveying equipment pptAdvanced surveying equipment ppt
Advanced surveying equipment ppt
 
Total station .pptx
Total station .pptxTotal station .pptx
Total station .pptx
 
Distance measuring techniques
Distance measuring techniquesDistance measuring techniques
Distance measuring techniques
 
coulomb's theory of earth pressure
 coulomb's theory of earth pressure coulomb's theory of earth pressure
coulomb's theory of earth pressure
 
Tunnel’s
Tunnel’sTunnel’s
Tunnel’s
 
Determination of reservoir storage capacity
Determination of reservoir storage capacityDetermination of reservoir storage capacity
Determination of reservoir storage capacity
 
Clipping
ClippingClipping
Clipping
 
Log acquisition and processing
Log acquisition and processingLog acquisition and processing
Log acquisition and processing
 
Saurav_BEARING CAPACITY OF BED ROCK AND SOIL DEPOSITS.pptx
Saurav_BEARING CAPACITY OF BED ROCK AND SOIL DEPOSITS.pptxSaurav_BEARING CAPACITY OF BED ROCK AND SOIL DEPOSITS.pptx
Saurav_BEARING CAPACITY OF BED ROCK AND SOIL DEPOSITS.pptx
 
Control surveying
Control surveyingControl surveying
Control surveying
 
Theodolite angle measurement
Theodolite angle measurementTheodolite angle measurement
Theodolite angle measurement
 
Presentation on Parallel projection.pptx
Presentation on Parallel projection.pptxPresentation on Parallel projection.pptx
Presentation on Parallel projection.pptx
 
tacheometry surveying
tacheometry surveyingtacheometry surveying
tacheometry surveying
 
hidden surface elimination using z buffer algorithm
hidden surface elimination using z buffer algorithmhidden surface elimination using z buffer algorithm
hidden surface elimination using z buffer algorithm
 
Well logging
Well loggingWell logging
Well logging
 
Information About Contour And its charecteristics
Information About Contour And its charecteristicsInformation About Contour And its charecteristics
Information About Contour And its charecteristics
 
Trigonometric levelling
Trigonometric levellingTrigonometric levelling
Trigonometric levelling
 
Tunnels surevey
Tunnels sureveyTunnels surevey
Tunnels surevey
 
1392741020 traverse survey
1392741020 traverse survey1392741020 traverse survey
1392741020 traverse survey
 
Curves and surfaces
Curves and surfacesCurves and surfaces
Curves and surfaces
 

More from Muhammad Jazman

Fundamental concepts of future city
Fundamental concepts of future cityFundamental concepts of future city
Fundamental concepts of future city
Muhammad Jazman
 
Pohl & van genderen 2017p5 figure 1.2 electromagnetic spectrum with wavelengt...
Pohl & van genderen 2017p5 figure 1.2 electromagnetic spectrum with wavelengt...Pohl & van genderen 2017p5 figure 1.2 electromagnetic spectrum with wavelengt...
Pohl & van genderen 2017p5 figure 1.2 electromagnetic spectrum with wavelengt...
Muhammad Jazman
 
Pohl & van genderen 2017 pp.8-13 table 1.2 popular optical remote sensing pla...
Pohl & van genderen 2017 pp.8-13 table 1.2 popular optical remote sensing pla...Pohl & van genderen 2017 pp.8-13 table 1.2 popular optical remote sensing pla...
Pohl & van genderen 2017 pp.8-13 table 1.2 popular optical remote sensing pla...
Muhammad Jazman
 
Textbooks on remote sensing
Textbooks on remote sensingTextbooks on remote sensing
Textbooks on remote sensing
Muhammad Jazman
 
Polarization of microwaves
Polarization of microwavesPolarization of microwaves
Polarization of microwaves
Muhammad Jazman
 
Chapter 01 introduction to security
Chapter 01 introduction to securityChapter 01 introduction to security
Chapter 01 introduction to security
Muhammad Jazman
 
Graham et.al, 2008, Foundations of Software Testing ISTQB Certification. Chap...
Graham et.al, 2008, Foundations of Software Testing ISTQB Certification. Chap...Graham et.al, 2008, Foundations of Software Testing ISTQB Certification. Chap...
Graham et.al, 2008, Foundations of Software Testing ISTQB Certification. Chap...
Muhammad Jazman
 
Graham et.al, 2008, Foundations of Software Testing ISTQB Certification. Chap...
Graham et.al, 2008, Foundations of Software Testing ISTQB Certification. Chap...Graham et.al, 2008, Foundations of Software Testing ISTQB Certification. Chap...
Graham et.al, 2008, Foundations of Software Testing ISTQB Certification. Chap...
Muhammad Jazman
 
Graham et.al, 2008, Foundations of Software Testing ISTQB Certification. Chap...
Graham et.al, 2008, Foundations of Software Testing ISTQB Certification. Chap...Graham et.al, 2008, Foundations of Software Testing ISTQB Certification. Chap...
Graham et.al, 2008, Foundations of Software Testing ISTQB Certification. Chap...
Muhammad Jazman
 
Graham et.al, 2008, Foundations of Software Testing ISTQB Certification. Chap...
Graham et.al, 2008, Foundations of Software Testing ISTQB Certification. Chap...Graham et.al, 2008, Foundations of Software Testing ISTQB Certification. Chap...
Graham et.al, 2008, Foundations of Software Testing ISTQB Certification. Chap...
Muhammad Jazman
 

More from Muhammad Jazman (10)

Fundamental concepts of future city
Fundamental concepts of future cityFundamental concepts of future city
Fundamental concepts of future city
 
Pohl & van genderen 2017p5 figure 1.2 electromagnetic spectrum with wavelengt...
Pohl & van genderen 2017p5 figure 1.2 electromagnetic spectrum with wavelengt...Pohl & van genderen 2017p5 figure 1.2 electromagnetic spectrum with wavelengt...
Pohl & van genderen 2017p5 figure 1.2 electromagnetic spectrum with wavelengt...
 
Pohl & van genderen 2017 pp.8-13 table 1.2 popular optical remote sensing pla...
Pohl & van genderen 2017 pp.8-13 table 1.2 popular optical remote sensing pla...Pohl & van genderen 2017 pp.8-13 table 1.2 popular optical remote sensing pla...
Pohl & van genderen 2017 pp.8-13 table 1.2 popular optical remote sensing pla...
 
Textbooks on remote sensing
Textbooks on remote sensingTextbooks on remote sensing
Textbooks on remote sensing
 
Polarization of microwaves
Polarization of microwavesPolarization of microwaves
Polarization of microwaves
 
Chapter 01 introduction to security
Chapter 01 introduction to securityChapter 01 introduction to security
Chapter 01 introduction to security
 
Graham et.al, 2008, Foundations of Software Testing ISTQB Certification. Chap...
Graham et.al, 2008, Foundations of Software Testing ISTQB Certification. Chap...Graham et.al, 2008, Foundations of Software Testing ISTQB Certification. Chap...
Graham et.al, 2008, Foundations of Software Testing ISTQB Certification. Chap...
 
Graham et.al, 2008, Foundations of Software Testing ISTQB Certification. Chap...
Graham et.al, 2008, Foundations of Software Testing ISTQB Certification. Chap...Graham et.al, 2008, Foundations of Software Testing ISTQB Certification. Chap...
Graham et.al, 2008, Foundations of Software Testing ISTQB Certification. Chap...
 
Graham et.al, 2008, Foundations of Software Testing ISTQB Certification. Chap...
Graham et.al, 2008, Foundations of Software Testing ISTQB Certification. Chap...Graham et.al, 2008, Foundations of Software Testing ISTQB Certification. Chap...
Graham et.al, 2008, Foundations of Software Testing ISTQB Certification. Chap...
 
Graham et.al, 2008, Foundations of Software Testing ISTQB Certification. Chap...
Graham et.al, 2008, Foundations of Software Testing ISTQB Certification. Chap...Graham et.al, 2008, Foundations of Software Testing ISTQB Certification. Chap...
Graham et.al, 2008, Foundations of Software Testing ISTQB Certification. Chap...
 

Recently uploaded

Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
informapgpstrackings
 
Enhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfEnhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdf
Globus
 
Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024
Globus
 
2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx
Georgi Kodinov
 
Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024
Paco van Beckhoven
 
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume MontevideoVitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke
 
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data AnalysisProviding Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Globus
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns
 
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus
 
Lecture 1 Introduction to games development
Lecture 1 Introduction to games developmentLecture 1 Introduction to games development
Lecture 1 Introduction to games development
abdulrafaychaudhry
 
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
XfilesPro
 
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Globus
 
Designing for Privacy in Amazon Web Services
Designing for Privacy in Amazon Web ServicesDesigning for Privacy in Amazon Web Services
Designing for Privacy in Amazon Web Services
KrzysztofKkol1
 
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Globus
 
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Globus
 
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBrokerSOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar
 
A Comprehensive Look at Generative AI in Retail App Testing.pdf
A Comprehensive Look at Generative AI in Retail App Testing.pdfA Comprehensive Look at Generative AI in Retail App Testing.pdf
A Comprehensive Look at Generative AI in Retail App Testing.pdf
kalichargn70th171
 
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Shahin Sheidaei
 
Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
Max Andersen
 
Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...
Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...
Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...
Hivelance Technology
 

Recently uploaded (20)

Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
 
Enhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfEnhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdf
 
Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024
 
2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx
 
Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024
 
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume MontevideoVitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume Montevideo
 
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data AnalysisProviding Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
 
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024
 
Lecture 1 Introduction to games development
Lecture 1 Introduction to games developmentLecture 1 Introduction to games development
Lecture 1 Introduction to games development
 
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
 
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
 
Designing for Privacy in Amazon Web Services
Designing for Privacy in Amazon Web ServicesDesigning for Privacy in Amazon Web Services
Designing for Privacy in Amazon Web Services
 
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
 
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
 
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBrokerSOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBroker
 
A Comprehensive Look at Generative AI in Retail App Testing.pdf
A Comprehensive Look at Generative AI in Retail App Testing.pdfA Comprehensive Look at Generative AI in Retail App Testing.pdf
A Comprehensive Look at Generative AI in Retail App Testing.pdf
 
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
 
Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
 
Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...
Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...
Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...
 

How to create a bln file from shp

  • 1. How to Create a BLN file from SHP Muhammad Jazman jazman@uin-suska.ac.id
  • 2. Golden Software Surfer • Create • base map • contour • post and classed post • Images • shaded relief • viewshed • 3D wireframe • 3D surface • Calculate • length • area • profile • volume
  • 3. Base Map • Surfer support ESRI Shapefile SHP as your basemap
  • 4. Base Map (cont.) • Base Map is better suited as an overlay base layer for your contour
  • 5. Base Map + Contour
  • 6.
  • 7. Problems • Blanking Grid • Original Grid is Equally spaced area • No “BLANK” Shape
  • 9. Golden Software Blanking BLN • BLN file is used to blank grid • convert area outside specified BLN file to “BLANK value”, Surfer Training Guide - by Tom Bresnahan and Kari Dickenson page 18
  • 10. But, how to create a BLN from SHP? • Do it online • Golden Software online converter • failed me almost every time
  • 11. BLN formats • It’s just a simple ASCII file, you can edit it with notepad in Windows! • First Line is number of rows (vertex) and comma and 0 or 1 • 0 if you blank area outside polygon • 1 if you blank area inside polygon • The rest is x and y coordinates
  • 12. notepad number of rows 0 or 1 x, y coordinates
  • 13. ogr2ogr • open source tool to convert between various vector format file in GIS • Support almost every format in GIS • but not Golden Software BLN • ogr2ogr --long-usage PCIDSK netCDF PDF DB2ODBC ESRI Shapefile MapInfo File S57 DGN Memory BNA CSV GML GPX LIBKML KML GeoJSON Interlis 1 Interlis 2 OGR_GMT GPKG SQLite ODBC WAsP MSSQLSpatial PostgreSQL MySQL DXF Geoconcept GeoRSS GPSTrackMaker PGDUMP GPSBabel GFT CouchDB Cloudant ODS XLSX ElasticSearch Carto AmigoCloud Selafin JML VDV TIGER
  • 14. KML • KeyHole Markup Language store x and y coordinates in plain text • ogr2ogr -f KML out.kml myoriginal.shp • now, open your out.kml with your text editor, preferable is Notepad++ • clean all areas but coordinates , before and after
  • 15.
  • 16. replace space with n • convert space character into newline • use extended search mode in Notepad++ space extended
  • 18. Add a new line on top of file • number of coordinates, 0
  • 20. Blank
  • 23. Q/A Mobile: +62 812 1012 7812 Email: kampar@gmail.com <primary> Email: jazman@uin-suska.ac.id <office>
  • 24. The hard way Draw your own BLN
  • 25. Draw your blank • Create a new Plot Document in Surfer • Import your shp • DON’T thick / check convert to curve (Polyline) • Export it again as BLN
  • 26.
  • 27. The hardest part • Change BLN rectangle to suit your SHP extents • How to know your shape extent? • ogrinfo • QGIS layer properties
  • 28. ogrinfo • ogrinfo yourshape.shp ogrinfo 1473_dumai.shp INFO: Open of '1473_dumai.shp' using driver 'ESRI Shapefile' successful. 1: 1473_dumai (Polygon) file name layer name
  • 29. ogrinfo yourshape.shp layer • whilst you know your layer name, ogrinfo it again • ogrinfo -geom=NO filename.shp layer ogrinfo -geom=NO 1473_dumai.shp 1473_dumai INFO: Open of '1473_dumai.shp' using driver 'ESRI Shapefile' successful. Layer name: 1473_dumai Metadata: DBF_DATE_LAST_UPDATE=2017-11-05 Geometry: Polygon Feature Count: 1 Extent: (101.009292, 1.431062) - (101.728169, 2.275318)
  • 30. ogrinfo • skip –geom=NO to see all coordinates in specified layer
  • 31. QGIS • Open your SHP in QGIS • Double-click to open Layer Property • Navigate into Metadata • Scroll down to extent (provided here is Batas, extent in Bahasa/Indonesian)
  • 32. Now go back to Export • Change BLN Rectangle using provided extent
  • 33. the results are almost identical • from KML • drawing
  • 34.
  • 35. Muhammad Jazman, S.Kom.,MInfoSys • Serjana Komputer (S.Kom) / Bachelor of Science in Computer from Universitas Indonesia (2007) • Lecturer in Politeknik Kampar, a regency owned polytechnic in Kampar regency (district), Riau province, Indonesia (2007-2015) • Master of Information Systems (MInfoSys) from University of Wollongong, NSW, Australia (2010) • Civil Servant (2015), serve as lecturer in GIS in faculty of sciences and technologies, Universitas Islam Negeri / UIN (state-owned Islamic university) Sultan Syarif Kasim Riau

Editor's Notes

  1. please cc to kampar@gmail.com (my another email, frequently used) if you email me
  2. provided here is Riau Province, in Indonesia
  3. provided here is Riau Province, in Indonesia
  4. the excerpt is taken from Surfer Training Guide - by Tom Bresnahan and Kari Dickenson page 18
  5. PCIDSK netCDF PDF DB2ODBC ESRI Shapefile MapInfo File S57 DGN Memory BNA CSV GML GPX LIBKML KML GeoJSON Interlis 1 Interlis 2 OGR_GMT GPKG SQLite ODBC WAsP MSSQLSpatial PostgreSQL MySQL DXF Geoconcept GeoRSS GPSTrackMaker PGDUMP GPSBabel GFT CouchDB Cloudant ODS XLSX ElasticSearch Carto AmigoCloud Selafin JML VDV TIGER
  6. \n is LineFeed character or VbLf remember VbCrLf in VisualBasic? Cr  Carriage Return Lf  Line Feed
  7. Put number of coordinates followed by 0
  8. Scroll save as type to Golden Software Blanking BLN
  9. ogrinfo -geom=NO 1473_dumai.shp 1473_dumai INFO: Open of '1473_dumai.shp' using driver 'ESRI Shapefile' successful. Layer name: 1473_dumai Metadata: DBF_DATE_LAST_UPDATE=2017-11-05 Geometry: Polygon Feature Count: 1 Extent: (101.009292, 1.431062) - (101.728169, 2.275318) Layer SRS WKT: GEOGCS["GCS_WGS_1984", DATUM["WGS_1984", SPHEROID["WGS_84",6378137,298.257223563]], PRIMEM["Greenwich",0], UNIT["Degree",0.017453292519943295]] id_provins: String (20.0) nm_provins: String (50.0) id_kabkota: String (20.0) nm_kabkota: String (50.0) OGRFeature(1473_dumai):0 id_provins (String) = 14 nm_provins (String) = Riau id_kabkota (String) = 1473 nm_kabkota (String) = DUMAI
  10. if you want to open BLN file in notepad.exe, MS. Windows is using CrLF as newline character, so … instead of \n, use \r\n as replace character in your notepad++ 5 digit after decimal point is considered not significant
  11. now you know why I put kampar as my gmail account :D