Skip to content

Instantly share code, notes, and snippets.

Uroš Preložnik uprel

Block or report user

Report or block uprel

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View WMTS.md

How to calculate MaxResolution for WMTS given info in GetCapabilities

For using an arbitrary WMTS-server in OpenLayers you need two values:

  • The MaxResolution
  • A bounds object

Given a WMTS response with a TileMatrixSet defined as:

@uprel
uprel / .gitignore
Created Mar 28, 2018 — forked from tschaub/.gitignore
OpenLayers + Webpack
View .gitignore
/node_modules/
bundle.js
@uprel
uprel / search_views.sql
Created Jan 6, 2018
Postgis example to enable WSGI search in EQWC
View search_views.sql
CREATE OR REPLACE VIEW public.search_pop_places AS
SELECT pop_places.name AS searchstring,
(pop_places.type::text || ' '::text) || pop_places.name::text AS displaytext,
'01_pop_places'::text AS search_category,
pop_places.geom AS the_geom,
st_geometrytype(pop_places.geom) AS geometry_type,
'pop_places'::text AS showlayer
FROM pop_places;
CREATE OR REPLACE VIEW public.search_airports AS
@uprel
uprel / maptip.html
Created May 8, 2017
QGIS Layer Display Maptip
View maptip.html
<a target='_blank' href='http://www.google.com#q=[% country %]'>
<img src='http://test.level2.si/files/public-docs/EQWC/demo/country_flags/png250px/[% lower(iso_cc) %].png' width='150'>
</a>
@uprel
uprel / eu_demo.json
Last active Nov 19, 2018
Example of project settings for Extended QGIS Web Client. Features: search with project data with WMS standard using search panels and external services (MapBox) for geocoding, reverse geocoding and getting elevation data.
View eu_demo.json
{
"search": [{
"title": "Places",
"useWmsRequest": true,
"queryLayer": "pop_places",
"formItems": [{
"xtype": "textfield",
"name": "name",
"fieldLabel": "Name",
"allowBlank": true,
@uprel
uprel / demo.html
Last active Apr 18, 2017
Leaflet multi map with sync plugin for showing MapQuest and MapBox tiles
View demo.html
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Leaflet Sync Demo</title>
<link rel="stylesheet" href="../leaflet/leaflet.css" />
<link rel="stylesheet" href="../leaflet/plugins/zoomdisplay/dist/leaflet.zoomdisplay.css" />
<style type="text/css">
html, body { width: 100%; height: 100%; margin: 0; }
You can’t perform that action at this time.