I'm going through the code execution of featuresAt in Mapbox GL JS. This is to take notes and understand how all of this works.
Initiating the feature search based on the example on Mapbox GL API Docs...
map.on('click', function(e) {| # docker build -t kiss-icp -f Dockerfile . | |
| # rocker --x11 --nvidia kiss-icp --volume /home/michal/Downloads/:/data/ | |
| # kiss_icp_pipeline --visualize --topic /os1_cloud_node/points /data/rooster_2020-03-10-10-36-30_0-006.bag | |
| ARG ROS_DISTRO=noetic | |
| FROM ros:$ROS_DISTRO-ros-core | |
| SHELL ["/bin/bash", "-c"] | |
| RUN apt-get update && apt-get install -y \ |
I'm going through the code execution of featuresAt in Mapbox GL JS. This is to take notes and understand how all of this works.
Initiating the feature search based on the example on Mapbox GL API Docs...
map.on('click', function(e) {| # Compile/install GEOS. Taken from: | |
| # http://grasswiki.osgeo.org/wiki/Compile_and_Install_Ubuntu#GEOS_2 | |
| cd /tmp | |
| wget http://download.osgeo.org/geos/geos-3.4.2.tar.bz2 | |
| bunzip2 geos-3.4.2.tar.bz2 | |
| tar xvf geos-3.4.2.tar | |
| cd geos-3.4.2 |
| import subprocess | |
| import sys, re | |
| MERC = '+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs' | |
| infile = sys.argv[1] | |
| info_output = subprocess.Popen(['gdalinfo', infile], stdout=subprocess.PIPE).communicate()[0] | |
| size_is_re = re.compile('Size is (?P<width>\d+), (?P<height>\d+)') | |
| size_is = filter(lambda x: x, map(lambda x: size_is_re.match(x), info_output.split('\n'))) |