Skip to content

Instantly share code, notes, and snippets.

View ismailsunni's full-sized avatar

Ismail Sunni ismailsunni

View GitHub Profile
@ismailsunni
ismailsunni / LSZR_TIN_aggr-kml4-clean.kml
Created June 23, 2024 00:04
KML with and without nested multigeometry
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:gx="http://www.google.com/kml/ext/2.2"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns="http://www.opengis.net/kml/2.2">
<Document>
<name>LSZR_TIN_aggr clean</name>
<visibility>1</visibility>
<Schema name="ICAO_TIN_aggr.kml" id="kml_schema_ft_ICAO_TIN_aggr.kml">
<SimpleField type="xsd:int" name="OBJECTID">
@ismailsunni
ismailsunni / sandcastle.md
Last active June 12, 2024 06:17
Cesium Sandcastle Collection
<gpx xmlns="http://www.topografix.com/GPX/1/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd" version="1.1" creator="OpenLayers"><rte><type>linepolygon</type><rtept lat="46.86320014566652" lon="7.641911319995647"/><rtept lat="46.87584597647381" lon="7.923993141503594"/><rtept lat="47.02396595535065" lon="7.991102749093106"/><rtept lat="47.10979606091352" lon="7.90634733415903"/><rtept lat="47.07408848704795" lon="7.833620496192845"/></rte></gpx>
@ismailsunni
ismailsunni / old-geoadmin-label.kml
Created May 21, 2024 03:55
KML from the Old Geoadmin
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/kml/2.2 https://developers.google.com/kml/schema/kml22gx.xsd"><Document><name>Drawing</name><Placemark id="marker_1715912961995"><ExtendedData><Data name="type"><value>marker</value></Data></ExtendedData><name>Old Label</name><description></description><Style><IconStyle><Icon><href>https://api3.geo.admin.ch/color/255,0,0/marker-24@2x.png</href><gx:w>48</gx:w><gx:h>48</gx:h></Icon><hotSpot x="24" y="4.799999999999997" xunits="pixels" yunits="pixels"/></IconStyle><LabelStyle><color>ff0000ff</color></LabelStyle></Style><Point><tessellate>1</tessellate><altitudeMode>clampToGround</altitudeMode><coordinates>8.161491779847474,46.97804233732786</coordinates></Point></Placemark></Document></kml>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
isunni@wrk136:~/dev/cpp/valhalla (chinesepostman)$ ./scripts/format.sh
* Already installed at /home/isunni/dev/cpp/valhalla/mason_packages/linux-x86_64/clang-format/11.0.0
* Linking /home/isunni/dev/cpp/valhalla/mason_packages/linux-x86_64/clang-format/11.0.0
* Links will be inside /home/isunni/dev/cpp/valhalla/mason_packages/.link/
* Using 'cp' for symlinking
* Done linking /home/isunni/dev/cpp/valhalla/mason_packages/linux-x86_64/clang-format/11.0.0
Using clang-format 11.0.0 from /home/isunni/dev/cpp/valhalla/mason_packages/.link/bin/clang-format
Requirement already satisfied: black==22.10.0 in /home/isunni/.local/lib/python3.8/site-packages (22.10.0)
Requirement already satisfied: flake8==5.0.4 in /home/isunni/.local/lib/python3.8/site-packages (5.0.4)
Requirement already satisfied: mypy-extensions>=0.4.3 in /home/isunni/.local/lib/python3.8/site-packages (from black==22.10.0) (0.4.3)
@ismailsunni
ismailsunni / boost_within.cpp
Created February 15, 2023 10:45
Bug boost::geometry::within
#include <iostream>
#include <list>
#include <string>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/geometries/polygon.hpp>
typedef boost::geometry::model::d2::point_xy<double> point_type;
typedef boost::geometry::model::polygon<point_type> polygon_type;
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.