This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>GeoServer WMTS with Mapbox Vector Tile in OpenLayers</title> | |
<link rel="stylesheet" href="https://unpkg.com/ol/ol.css" /> | |
<script src="https://unpkg.com/ol/dist/ol.js"></script> | |
</head> | |
<body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import laspy | |
import numpy as np | |
import rasterio | |
from rasterio.transform import from_bounds | |
from scipy.spatial import cKDTree | |
mycrs = 'EPSG:26985' | |
las_file = 'data/1120.las' | |
# 1. Read Bounds from LAZ File | |
def read_laz_bounds(filename): | |
las = laspy.read(filename) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM llama3 | |
# Set parameters | |
PARAMETER temperature 0.8 | |
PARAMETER stop Result | |
# Sets a custom system message to specify the behavior of the chat assistant | |
# Leaving it blank for now. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### This file will require you to give path of folder in which all GeoJSONs are present | |
## Author : [email protected] | |
## !pip install geopandas | |
### | |
import os | |
import geopandas as gpd | |
from shapely.geometry import Point | |
import json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Set the variables | |
PGHOST="" | |
PGDATABASE="" | |
PGUSER="" | |
PGPASSWORD="" | |
PGPORT="" | |
TABLE_NAME="" | |
GEOJSON_FILE="" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GDAL==3.4.3 | |
odc-stac==0.3.8 | |
pystac-client==0.7.5 | |
rasterio==1.3.9 | |
numpy==1.26.3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from datetime import date, timedelta | |
import requests | |
import pandas as pd | |
import geopandas as gpd | |
from shapely.geometry import shape | |
copernicus_user = os.getenv("copernicus_user") # copernicus User | |
copernicus_password = os.getenv("copernicus_password") # copernicus Password | |
ft = "POLYGON((0 0, 0 1, 1 1, 1 0, 0 0))" # WKT Representation of BBOX | |
data_collection = "SENTINEL-2" # Sentinel satellite |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo add-apt-repository ppa:ubuntugis/ppa && sudo apt-get update | |
sudo apt-get update | |
sudo apt-get install gdal-bin | |
sudo apt-get install libgdal-dev | |
export CPLUS_INCLUDE_PATH=/usr/include/gdal | |
export C_INCLUDE_PATH=/usr/include/gdal | |
pip install GDAL |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Add the PostgreSQL APT repository for the latest version | |
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' | |
# Import the repository signing key | |
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - | |
# Update the package list | |
sudo apt update |
NewerOlder