X

NV5 Geospatial Blog

Each month, NV5 Geospatial posts new blog content across a variety of categories. Browse our latest posts below to learn about important geospatial information or use the search bar to find a specific topic or author. Stay informed of the latest blog posts, events, and technologies by joining our email list!



Monitor, Measure & Mitigate: Integrated Solutions for Geohazard Risk

Monitor, Measure & Mitigate: Integrated Solutions for Geohazard Risk

9/8/2025

Geohazards such as slope instability, erosion, settlement, or seepage pose ongoing risks to critical infrastructure. Roads, railways, pipelines, and utility corridors are especially vulnerable to these natural and human-influenced processes, which can evolve silently until sudden failure occurs. Traditional ground surveys provide only periodic... Read More >

Geo Sessions 2025: Geospatial Vision Beyond the Map

Geo Sessions 2025: Geospatial Vision Beyond the Map

8/5/2025

Lidar, SAR, and Spectral: Geospatial Innovation on the Horizon Last year, Geo Sessions brought together over 5,300 registrants from 159 countries, with attendees representing education, government agencies, consulting, and top geospatial companies like Esri, NOAA, Airbus, Planet, and USGS. At this year's Geo Sessions, NV5 is... Read More >

Not All Supernovae Are Created Equal: Rethinking the Universe’s Measuring Tools

Not All Supernovae Are Created Equal: Rethinking the Universe’s Measuring Tools

6/3/2025

Rethinking the Reliability of Type 1a Supernovae   How do astronomers measure the universe? It all starts with distance. From gauging the size of a galaxy to calculating how fast the universe is expanding, measuring cosmic distances is essential to understanding everything in the sky. For nearby stars, astronomers use... Read More >

Using LLMs To Research Remote Sensing Software: Helpful, but Incomplete

Using LLMs To Research Remote Sensing Software: Helpful, but Incomplete

5/26/2025

Whether you’re new to remote sensing or a seasoned expert, there is no doubt that large language models (LLMs) like OpenAI’s ChatGPT or Google’s Gemini can be incredibly useful in many aspects of research. From exploring the electromagnetic spectrum to creating object detection models using the latest deep learning... Read More >

From Image to Insight: How GEOINT Automation Is Changing the Speed of Decision-Making

From Image to Insight: How GEOINT Automation Is Changing the Speed of Decision-Making

4/28/2025

When every second counts, the ability to process geospatial data rapidly and accurately isn’t just helpful, it’s critical. Geospatial Intelligence (GEOINT) has always played a pivotal role in defense, security, and disaster response. But in high-tempo operations, traditional workflows are no longer fast enough. Analysts are... Read More >

1345678910Last
«September 2025»
SunMonTueWedThuFriSat
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011
11254 Rate this article:
No rating

Accessing 3-D point cloud data in IDL using the ENVI PointCloud API

Anonym

The following is an example of using the new PointCloud API included in ENVI 5.3. This allows easy access to 3-D data stored in LAS format. The data and metadata becomes accessible from IDL. The new API includes ability to read as well as write 3-D point cloud data in LAS format (there is also much more functionality included beyond that). There are 2 fundamentally different ways to get read access. One method is to simply read the points in the order they were stored in the LAS file. This would normally be the order the points were collected by the LiDAR sensor, although point cloud data could also be derived from other sources. The second way to access the point cloud data is by creating an ENVIPointCloud project, which means that the points will be spatially sorted such that they can be indexed quickly based on spatial tiles. The sorting process takes a little time initially, but once that is done, points can be retrieved quickly based on spatial querying methods.

This first example shows how to access point cloud data using the simple, non-sorted API calls.

ENVI> nv = envi(/current)

ENVI> pc=nv.QueryPointCloud('C:\Users\borsholm\Downloads\Lincoln.laz')

ENVI> print,pc

ENVIPOINTCLOUDQUERY <717772>

  DATA_RANGE                = 692204.97,       4519668.7,       340.79242,       695331.36,       4522642.4,       485.24673

  NPOINTS                   = 9278073

  SPATIALREF                = !NULL

  URI                       = 'C:\Users\borsholm\Downloads\Lincoln.laz'

ENVI> pc.metadata

ENVIPOINTCLOUDMETADATA <718218>

  File Creation Day         = 0

  File Creation Year        = 0

  File Source ID            = 0

  Generating Software       = 'Lidar Explorer by ProLogic, Inc.'

  Global Encoding           = 0

  Max X                     = 695331.36

  Max Y                     = 4522642.4

  Max Z                     = 485.24673

  Min X                     = 692204.97

  Min Y                     = 4519668.7

  Min Z                     = 340.79242

  Number Of Point Records   = 9278073

  Number Of Variable Length = 3

  Point Data Format         = 0

  Point Data Record Length  = 20

  Project ID GUID Data 1    = 0

  Project ID GUID Data 2    = 0

  Project ID GUID Data 3    = 0

  Project ID GUID Data 4    = 0,   0,   0,   0,   0,   0, ...

  System Identifier         = ''

  Version Major             = 1

  Version Minor             = 0

  X Scale Factor            = 1.4558386e-006

  X Offset                  = 692204.97

  Y Scale Factor            = 1.3847266e-006

  Y Offset                  = 4519668.7

  Z Scale Factor            = 6.7266782e-008

  Z Offset                  = 340.79242

ENVI> pts=pc.GetPointsInRange(0,pc.npoints,intensity=i)

ENVI> help,pts,i

PTS             DOUBLE    = Array[3, 9278073]

I               UINT      = Array[9278073]

ENVI> pc.Close

This shows how get access to metadata associated with the file, and to return the points as a 3xN array, in the original order that they were stored in the file.

This second example shows how to spatially sort the points in a new project, and access points in a given rectangle.

ENVI> pc = nv.OpenPointCloud('C:\Users\borsholm\Downloads\Lincoln.laz')

ENVI> pts = pc.GetPointsInRect(694000, 4520000, 695000, 4521000)

ENVI> help,pts

PTS             DOUBLE    = Array[3, 1000002]

ENVI> pc.Close

 

 

 

Please login or register to post comments.