Skip to content

Instantly share code, notes, and snippets.

View steko's full-sized avatar
💭
I may be slow to respond.

Stefano Costa steko

💭
I may be slow to respond.
View GitHub Profile
@steko
steko / README.markdown
Last active September 29, 2015 20:48
XSL to extract data from a msGMLOutput XML response

This XSL tries to force the response from a WMS server and get a complete XML instead of a styled HTML page.

Why this works

The URL is like

http://www.cartografiarl.regione.liguria.it/CartoWebNet/CwGetFeatureInfo.aspx?FILE=E:\\Progetti\\MapServer\\tmp\\2053ebdc-2f9f-4adc-99d8-7feae362e11e.gml&XslUrl=http://steko.ominiverdi.org/elettro.xsl

(and lots of other useless bloat parameters that I removed for my own sanity). The XSL can be changed as a parameter, and the server will accept any valid URL (so silly, you say).

@steko
steko / gist:451579
Created June 24, 2010 15:26
Procedura per Bundler e PMVS2
# Portarsi nella directory dove si trovano le immagini.
cd foto
# Ridimensionare le immagini con ImageMagick
for i in *.JPG; do mogrify -geometry 50% $i; done
## Bundler