2,925 reputation
421
bio website atlefren.net
location Trondheim, Norway
age 30
visits member for 3 years, 2 months
seen 20 hours ago

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


Jan
21
comment Spatial Database Development?
what are you asking exactly?
Jan
21
comment OpenLayers: png as external graphic marker
are you sure that the directory ../img is available from your browser?
Jan
20
comment How would I get number of tiles loaded, and total number loading?
This trick is worth noting though: groups.google.com/forum/#!msg/ol3-dev/ScE0A8L6-oc/_107oB8fRu0J
Jan
19
comment A mistake in very easy python code (Buffer 1 - Buffer 2- Erase 2 fom 1)
could you tag this with a less general tag than python in addition? This seems to be arcpy, so tag accordingly
Jan
16
comment How to request group of layers from Geoserver with turn off/on capabilities? Geoserver layer organizer
No, I do not think Geoserver has a notion of "right rendering order"
Jan
16
comment Setting properties of geoJSON in OpenLayers
Well, there where several issues with your jsfiddle: here is my try: jsfiddle.net/9vtxch36
Jan
16
comment Setting properties of geoJSON in OpenLayers
Setting a new property on a vector feature is done with set(): openlayers.org/en/v3.1.1/apidoc/…
Jan
16
comment Setting properties of geoJSON in OpenLayers
As for problem 2: I missed your first defition of feature, but renaming it should be easy..
Jan
16
comment Setting properties of geoJSON in OpenLayers
For problem 1) these objects are not copied when assigned to a new variable, the reference is passed. That means that if i loop through Layer2Source, extract feature i, assign it to a variable, push that variable into a new array, and then get it back out from that array and assign it to a new variable it's still the same object as the original one
Jan
15
comment Using raw_input python to accept string with a dash (-)
Consider adding a less generic tag in addition to Python here, this looks like some sort or arcpy-thing?
Jan
14
comment Files generated with QGIS are invisibles for my system (windows 8.1) How can I Solve this?
Welcome to GIS SE. While I cannot help you directly I feel that there is a bit too little context here. Are you sure you are looking in the right folder?
Jan
14
comment OpenLayers FrameCloud does not find JavaScript functions
Ah, i didn't expect to find an onclick event in there. FYI: onClick should be avoided, and given the state your code is in I cannot really give a better answer than look up jQuery or some other sane frameworks.
Jan
13
comment Selection instead of click for display of features in openlayers
What you are asking is simply not possible with WMS, regardless of whether you set a bounty or not. If you want to query individual features using a BBOX you have to use something vector-based, WFS seems like the easiest solution for you
Dec
9
comment ogr2ogr window closes after termination
When you have such questions you shouldn't assume that people know that you are on Windows (but again, most do, because this is a windows-issue). But again: as AndreJs answer illustrates, stating what windows version you are using would be helpful
Oct
7
comment How do the equations/algorithms behind buffering tools actually work?
Just to be smirky: jsjts is really java implemented using javascript, so it's about the same ;)
Sep
1
comment How to calculate the Azimuth between two points in PostGIS?
Not an actual answer to your question, but since you mentioned "computing azimuth" and "JavaScript" I thought you want to look at github.com/atlefren/holsenjs, a port of Geodetic Fortran code to JavaScript. To compute asimuth between the points mentioned below: var holsen = new Holsen(); holsen.setEllipsoid('wgs84'); var asimuth = holsen.lgeo2(-0.730, 55.578, 37.062, 55.578).A1;
Aug
28
comment Is there a good GPS track analysis library?
Just a follow-up here: I've started porting this project to Python, using Shapely and GeoAlchemy (and Flask), it works but is rather slow at the moment. Code at github.com/atlefren/mineturer2 for the curious
Jun
4
comment How to insert coordinates to url
thanks for noticing! No, not really, I'm not an expert on this, so maybe pushState would be better?
May
12
comment Function to add layer with button click
Learn Javascript. Understand why global variables is a bad thing, provide a minimal example. Study the docs.
May
12
comment Geoserver WFS POST and format_options=PRJFILEFORMAT
Regarding the namespace issue: as long as you go to the WFS-settings page for your namespace and check "Use ESRI WKT format for SHAPE-ZIP generated .prj files" box in the WFS-page in the geoserver GUI" there it's fine to use the namespace in the url