Skip to content

Instantly share code, notes, and snippets.

View connormanning's full-sized avatar

Connor Manning connormanning

View GitHub Profile

Keybase proof

I hereby claim:

  • I am connormanning on github.
  • I am connormanning (https://keybase.io/connormanning) on keybase.
  • I have a public key whose fingerprint is B454 45BA 3AA2 6DEC 940D 16C8 77AA 55DA C202 4F0E

To claim this, I am signing this object:

@connormanning
connormanning / curl_jsoncpp_example.cpp
Last active August 11, 2022 04:35
Curl HTTP GET and JsonCpp parsing - basic functionality
#include <cstdint>
#include <iostream>
#include <memory>
#include <string>
#include <curl/curl.h>
#include <json/json.h>
namespace
{
@connormanning
connormanning / bufferReaderStats.cpp
Last active August 29, 2015 14:20
Get stats from pdal::BufferReader pipeline
#include <memory>
#include <iostream>
#include <pdal/BufferReader.hpp>
#include <pdal/PointView.hpp>
#include <pdal/StageFactory.hpp>
#include <pdal/StageWrapper.hpp>
#include <pdal/StatsFilter.hpp>
int main()
@connormanning
connormanning / pdal-chunk-sample.cpp
Created September 3, 2015 00:15
PDAL chunked reader-only pipeline - API sample
#include <chrono>
#include <iostream>
#include <memory>
#include <pdal/BufferReader.hpp>
#include <pdal/PointView.hpp>
#include <pdal/StageFactory.hpp>
#include <pdal/StageWrapper.hpp>
#include <pdal/StatsFilter.hpp>
@connormanning
connormanning / missing.cpp
Created October 25, 2015 04:37
Missing dimensions from QuickInfo
#include <pdal/Reader.hpp>
#include <pdal/StageFactory.hpp>
namespace
{
const std::string path("autzen.las");
}
int main()
{
@connormanning
connormanning / no-srs.cpp
Last active October 29, 2015 02:46
No SRS after Reader::prepare
#include <pdal/PointTable.hpp>
#include <pdal/Reader.hpp>
#include <pdal/StageFactory.hpp>
namespace
{
const std::string path("autzen.las");
}
std::unique_ptr<pdal::Reader> makeReader(const std::string f)
@connormanning
connormanning / log.txt
Created February 16, 2016 19:32
Greyhound log
ç^Cubuntu@ip-10-169-250-114:~$ docker exec -it greyhound-dock greyhound log
Tue Feb 16 2016 19:27:45 GMT+0000 (UTC) LOG controller::read
Active size: 0 Idle size: 128 This query: 1
Read 47208 bytes. Done? 1
Done. NP: 3934
GET /resource/nyc/read?schema=%5B%7B%22name%22%3A%22X%22%2C%22size%22%3A4%2C%22type%22%3A%22floating%22%7D%2C%7B%22name%22%3A%22Y%22%2C%22size%22%3A4%2C%22type%22%3A%22floating%22%7D%2C%7B%22name%22%3A%22Z%22%2C%22size%22%3A4%2C%22type%22%3A%22floating%22%7D%5D&bounds=%5B-8266112.375%2C4943058.453125%2C0%2C-8265128.75%2C4944032.34375%2C968.75%5D&depthBegin=13&depthEnd=14&compress=true&normalize=true 200 21.494 ms - -
Tue Feb 16 2016 19:27:45 GMT+0000 (UTC) LOG controller::read
Active size: 0 Idle size: 128 This query: 1
Read 411060 bytes. Done? 1
Done. NP: 34255
@connormanning
connormanning / inconsistency.cpp
Last active March 21, 2016 19:53
PDAL reader behavior
#include <iostream>
#include <stdexcept>
#include <string>
#include <pdal/BufferReader.hpp>
#include <pdal/Filter.hpp>
#include <pdal/GlobalEnvironment.hpp>
#include <pdal/Options.hpp>
#include <pdal/PointTable.hpp>
#include <pdal/QuickInfo.hpp>
@connormanning
connormanning / stream.cpp
Last active April 27, 2016 14:40
ArbiterStream
#include <fstream>
#include <memory>
#include <string>
#include <arbiter/arbiter.hpp>
class ArbiterStream : public std::ofstream
{
public:
ArbiterStream(std::string remotePath, std::ios::openmode mode)
@connormanning
connormanning / go.cpp
Created April 29, 2016 15:36
PDAL getSpatialReference
#include <pdal/PointTable.hpp>
#include <pdal/Reader.hpp>
#include <pdal/StageFactory.hpp>
namespace
{
const std::string path("/Users/connor/data/autzen-full.laz");
pdal::StageFactory factory;
}