1,536 reputation
830
bio website
location
age 31
visits member for 3 years, 6 months
seen Oct 16 at 19:15

Mar
26
awarded  Notable Question
Mar
11
answered CORS lets one ArcGIS JavaScript (REST) request through but not the other
Mar
7
awarded  Notable Question
Mar
5
awarded  Popular Question
Feb
27
comment ArcGis Javascript api detect one second hover
hmm good point, I figured because you weren't creating a closure the scope would be lost
Feb
27
comment ArcGis Javascript api detect one second hover
There doesn't seem to be a standard for the return value of setTimeout or setInterval, so I don't think there's any guarantee it won't be 0. So you probably want to do something other than a coercive truthy check in if(timeOutAction), e.g. don't define timeOutAction and check if(typeof window.timeOutAction === 'undefined'). Also (and more importantly) var timeOutAction won't be in scope when your onMouseMove handler is executed - it's tied to the function but your handler will have global scope
Feb
27
comment Given a lat/long point, determine if it's land or water?
you don't say how your users will interact with the data (will that be QGIS too?). Depending on your application you might just colour water blue and land green, then inspect the colour of the pixel under the mouse pointer. Also, why can't your users answer this question themselves?
Feb
26
comment Moveable ESRI / ArcGIS Identify Popup Window (Dojo)
I previously thought about doing something similar, but making the popup moveable is only part of the problem - the window points to the location it references using one of these images: serverapi.arcgisonline.com/jsapi/arcgis/3.3/js/esri/dijit/… Unless you want to get into a rather sticky problem you will have to live with the popup no longer pointing to the correct location
Feb
26
comment Can I download a layer displayed on the google api?
I'd guess you're dealing with a WMS. A quick trawl through the site's JS source should give enough clues on how to reference it within a desktop GIS suite. However assuming they are only providing WMS (or similar) and not WFS (or similar) you won't be downloading raw data, only its styled representation in image tiles.
Feb
20
comment Using Query Layers with ArcGIS Server 10.0 for Java on Linux
I don't envy you - you really picked the most difficult ESRI configuration scenario ever! I had some problems with query layers in 10.0 that never got resolved (e.g. gis.stackexchange.com/questions/34789/…) but when I moved to 10.1 everything magically worked. Is that an option?
Feb
19
comment Geoserver 2.1.3 no GetFeatureInfo-Response when multiple Features found on same location within same layer
Is this a custom freemarkers template? If yes what happens when you don't use it, or use a different template? Do you get a different result if you change your layer's symbology?
Feb
8
comment ajax not working with postgresql
it being the same file makes no difference, you're still just dealing with client requesting from server over HTTP. Did you use Fiddler or another network debugger? You need to first verify that your request is being sent and that the POST body is what you expect. Fiddler has plenty of tutorials
Feb
6
comment ajax not working with postgresql
do you know for sure that the value is sent? Get Fiddler running and check that your request is indeed a POST and that the value you expect is being passed. Also do you know for sure that the correct PHP script is being called? Change the PHP script to always echo 'something' and check that this gets back to the browser. These kinds of simple steps will turn your big ambiguous problem into one or two small and well-defined problems.
Jan
31
comment WFS Layer in OpenLayers queries server for data but doesn't display the data
I notice your WFS source is localhost - is your JS application also running on localhost, on the same (default) port? If not, and you've no proxy (you don't specify), the all-too-familiar cross-domain issue could be the reason. In that scenario data will still be downloaded but then discarded by the client.
Jan
28
answered GML, KML, GeoJSON - Speed rendering 3109 polygons?
Jan
28
comment GML, KML, GeoJSON - Speed rendering 3109 polygons?
IE8 will be almost as bad. OpenLayers has several renderers and for browsers that don't support Canvas or SVG is will resort to VML, which IE7 does support. The different renderers give better and worse performance in different places, e.g. rendering vs. mouse-over & click detection
Jan
23
comment How do I center Openlayers map over New Mexico
I think providing only a single layer (OSM) makes that the base layer, and that in turn sets your map's spatial reference to the base layer's (someone please correct me if I'm wrong). In this case your centre coordinate needs to be in 3857 / 900913 - try @GeoSteve's numbers below. -105,35 in metres from 0,0 will be somewhere close to Africa.
Jan
18
comment Send WMS Request as JSON
even if it were possible JSON will not make the request any shorter. As @Jamie noted POST is a good option. See here: openlayers.org/dev/examples/wms-long-url.html I think there may be some cross-browser issues with POST but can't find anything right now
Jan
15
comment how to check if a wms layer has no features
here is a starting point: stackoverflow.com/q/6816565/519575 I generally try to avoid giving suggestions and saying "... but this is a bad idea" - depending on your use case, browser platform, and data this could be appropriate but it seems to me like a last resort. It already smells a bit and I haven't even looked closely at it yet.
Jan
15
comment how to check if a wms layer has no features
you say "if no features are rendered" but is this really what you want? Nothing rendered could mean there are results but scale-dependencies prevent them from being shown, or some features are outside the current viewing area. If you really just want to know when nothing is rendered you might be able to use some JavaScript (and maybe Canvas) trickery to check colour variation across the returned png.