2,810 reputation
320
bio website atlefren.net
location Trondheim, Norway
age 30
visits member for 2 years, 11 months
seen Oct 26 at 11:43

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


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
May
12
comment Geoserver WFS POST and format_options=PRJFILEFORMAT
The WFS-POST returns the same result when specifying version=1.1.0.
May
12
comment Geoserver WFS POST and format_options=PRJFILEFORMAT
Nice catch. I'm rather certain that I've tried version=1.1.0 in the non-working case as well, but i'll re-test
May
8
comment Shapefile output customization via WFS in Geoserver?
Thanks, that worked, also found it in the source: github.com/geoserver/geoserver/blob/…
May
8
comment Shapefile output customization via WFS in Geoserver?
Thanks, I'll give that a try, but that page says: "For example given the content.ftl template used to generate WMS GetFeatureInfo content", so I'm guessing that the filename for the template used for wfs shapefile should be something else than content.ftl?
Apr
24
comment How to Add (+) up integers in a field and print a total count in pyhton 2.7
I don't know anything about the arcpy-library, so there might be better ways to do this ;)
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.