November 2024 M T W T F S S 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
Category Archives: Data
Hiding the map= parameter from a map server application
In the mapserver documentation, one is told to use a cgi-wrapper script to hide the map= parameter. Then there is shown a script to use on ‘any system having a /bin/sh’ I tried to rewrite that as a php-script to … Continue reading
How to make a bar graph with a split Y axis in R
There is a function, gap.barplot for doing that in the plotrix package, but I was not happy with the way the result looked, so I started out making my own way using subplot in the TeachingDemos library. I have gutted … Continue reading
Setting up a mysql database for spatial data
I would prefer to use postgis, but have to resign to mysql. I want to create a table with spatial information and be able to access it from mapserver. As I am going to store a lot of datapoints, they … Continue reading
Posted in mapserver
Comments Off on Setting up a mysql database for spatial data
Query a layer in mapscript php
When learning to use mapserver and mapscript, the first steps have been to display, zoom and pan. Zooming and panning is quite easy, it is just a line like $map->zoompoint($zoomfactor,$clickpoint,$map->width,$map->height,$mapextent); where $map is a mapboject, $zoomfactor is a number telling … Continue reading
Posted in mapserver
Comments Off on Query a layer in mapscript php
Selection from a mysql/ogr layer in php mapscript
A little phpsnippet for filtering out items from a layer. I have a layer “mobil” which may be on or off. This layer consists of a number of dataset collected at various times. There is one field ‘visible’ that is … Continue reading
Posted in mapserver
Comments Off on Selection from a mysql/ogr layer in php mapscript
svn copy problem
Being a bit to eager when cleaning up a repository, I managed to remove a file too many from revision control. I still had the file sitting around, so I just readded it – but then the revision history had … Continue reading
Posted in Data
Comments Off on svn copy problem
Snøpakking…
Snøfreseren gav opp i går formiddag, dvs var nok sikkerhetssplit som røyk, men jeg har ikke funnet ut av hvor den sitter, men fant ut at kryddervogna (spice, eeh, space wagon 4×4) hånderte 30 cm våt snø overraskende bra og … Continue reading
Posted in Data
Comments Off on Snøpakking…
Parsing json array using uLkjson
Back into delphi7… Needing to transfer some data over the net from a server to my delphi application, it seemed like a good idea to use JSON and according to json.org there are no less than three libraries for parsing … Continue reading
Posted in Data
3 Comments
ECEF – lat/lon conversion
I needed to do a ecef (earth centered earth fixed) to lat lon conversion in delphi. Following the formulaes found in Wikipedia the following procedure was made: procedure ecef2latlon(X,Y,Z : extended; var lat,lon,h : real); // returns lat with 6 … Continue reading
Posted in Data
Comments Off on ECEF – lat/lon conversion
Undeleting in Linux
På Norsk I accidentially deleted a lot of files from a memory card (xd-card, but the type shouldn’t matter). As I am only running Linux at home, the commersial solutions for windows that turned up on google were not usable, … Continue reading
You must be logged in to post a comment.