2,693 reputation
219
bio website atlefren.net
location Trondheim, Norway
age 30
visits member for 2 years, 4 months
seen Apr 14 at 13:02

Background: masters in Geomatics and ICT from Norwegian University of Science and Technology (2009). Works as a GIS software/web developer. JavaScript and Python ninja, web mapping in OpenLayers and Leaflet. Knowledgeable about PostGIS and Geoserver


Mar
21
comment Why are map scales not used instead of Zoom-levels in web mapping clients such as OSM or Google Maps?
I think this is a legit question. The scales you get from the tile-based schemes that googlemaps and osm uses does not in fact resolve to "nice" scales. If this question is unclear then a lot of the "this is my code, please fix for me"-questions should be put on hold as well
Mar
11
comment Switch coordinates in linestring
I would strongly recommend an upgrade!
Mar
6
comment Formula to Check Latitude & Longitude is within Area without Google Maps Api
Do you want to do this in python or javascript?
Mar
5
comment How to draw 3d objects from .kml file on gwt-openlayers map?
Well, for me the strange thing is that someone is using gwt-openlayers
Mar
5
comment How to draw 3d objects from .kml file on gwt-openlayers map?
Not that I know much about gwt-openlayers, but OpenLayers itself does not work with files pr se, so I doubt that gwt-openlayers does so
Mar
3
comment How to use paths with non ASCII characters for subprocess calls with ArcGIS
file paths should be without spaces, special chars or non-ascii-characters, but that's maybe just the view of a grumpy linux-user. As to your original question: i'm sorry, no idea
Feb
26
comment ST_Transform not converting from utm to lat/lon
check out postgis.org/docs/ST_SetSRID.html
Feb
26
comment ST_Transform not converting from utm to lat/lon
do you have a srid set on your geometry?
Feb
26
comment How do you export features in OpenLayers 2.13?
To be completely honest: Learn JavaScript before you try to make a solution like this by following tutorials and such. There is a ton of bad map applications made by people that doesn't know JavaScript (or web development). Do invest the time (or hire someone who knows) if you are making something that should be used as more than a one-off for your own personal use.
Feb
26
comment OpenLayers add a json layer to existing map on load
Consider looking at the OpenLayers docs the next time, all this information is readily there
Feb
26
comment Create Tiles for a raster(georeferenced) to use in leaflet
I guess mapnik is the way to go then?
Feb
26
comment WMSGetFeatureInfo Not Returning Results
If things work in the console (firefox) but not in a webpage, then cross-origin is my first bet. Have you tried this in chrome with dev toolbar net tab open? That usually warns when there are cross-origin issues
Feb
25
comment Problem with loading GeoJSON file in OpenLayers generated by PHP
You're welcome.
Feb
25
comment Problem with loading GeoJSON file in OpenLayers generated by PHP
not exactly sure if it's case sensitive, but in most sane computing environments 'A' and 'a' is two different things, so I would guess. id should be fine. Your problem is the geometry: none fields and the feature with just a geometry (quoted as a string)
Feb
25
comment Problem with loading GeoJSON file in OpenLayers generated by PHP
geojson.org/geojson-spec.html
Feb
25
comment Libraries and/or ideas for navigating WMS time-parameter
Not really decided on how much screen estate. I guess the answer is "as little as possible, but without sacrificing efficiency". I also think there should be prior art, but my google-fu isn't as strong as I thought, hence this question.
Jun
4
comment Can't read returned geojson
I see your problem. What I would suggest is to call your jsp with just the point, sanitize the point in jsp and build the SQL query there.
Jun
4
comment Python select by attribute using a variable counter
what are you trying to do? Loop over something? What are the bounds for x? Is this the whole program?
Jun
4
comment Can't read returned geojson
a sidenote, but: you are aware of the Sql-injection risks here?
Jun
3
comment Creating nanoscale DEM with GDAL
My code so far can be found here: github.com/atlefren/AFMParser Seems to work for me, does this seem sane? (see especially test.py) Sorry for the lack of test data, difficult to publish data that's part of ongoing research.