83 reputation
18
bio website
location
age
visits member for 2 years
seen Aug 7 at 3:02

Jul
23
comment Openlayers redraw layers: consecutive redraw calls not working
If you check the Option 2 section, the tempLayer variable gets the Layer object ie., getLayersByName works and the first element is present in the result array which implies the bldg_logical layer is present. So why should it throw an undefined error in that case?
Jul
19
comment Arrow labels not rendered correctly
@DevdattaTengshe they are just hexadecimal color codes like "#ff0000","#ab34f4" etc..
May
2
comment Why won't GeoServer render my SVG symbols?
Here you go: imgh.us/treatment_unit.svg
Apr
30
comment Why won't GeoServer render my SVG symbols?
I found instructions here. But still I am not able to see the symbols. Any idea what might be going wrong?
Apr
30
comment Why won't GeoServer render my SVG symbols?
Have the same problem.. Thank god I saw this soon. @Xavier: Any quick ways of making 'real svgs' from the png assets I have currently other than this?
Feb
21
comment Which is better for storage? Geometry column or varchar?
@Mapperz thank you. I have proceeded with the same. I suppose the AddGeometryColumn command adds a spatial index by itself?
Feb
20
comment Which is better for storage? Geometry column or varchar?
I am asking in terms of database storage,performance etc. For my use case, I have no need of any Postgis functionality on the stored geometries. But if storing as GEOMETRY datatype would result in lesser space(of course I would have to use St_AsText to retrieve them for using with OpenLayers) I could use that OR go ahead and store them as just normal text strings.
Feb
14
comment Openlayers remove previously drawn polygon on starting to draw next one
The direct answer to my question is the one above. Myself being a lazy bum, usually look for the direct answers to questions before going into the details. Likewise this will help people who are searching for a quick answer. If they do want to know in detail, they can always refer to your helpful answer. Thanks again.
Feb
13
comment Openlayers remove previously drawn polygon on starting to draw next one
Thanks a lot for this. point in Polygon Handler did the trick. And I used create for RegularPolygon Handler.
Feb
12
comment Openlayers remove previously drawn polygon on starting to draw next one
And one thing I missed, the draw control is always active. So can't use first solution. Regarding 1a) my existing code removes the feature AFTER the second one is done., don't you think removeAllFeatures() would remove them both in that case? As for 2) beforefeatureadded kicks in only just before featureadded and not when I place/draw the first vertex of the second polygon.
Feb
12
comment Openlayers remove previously drawn polygon on starting to draw next one
I want to remove the 1st feature as SOON as the user starts drawing a new feature.
Feb
11
comment Intersection of drawn polygon with WMS layer features. Better of two methods?
So looking at the other option, could you elaborate on what you meant by 'using WFS and/or WPS to handle transfer and validation'? As you can see currently I run PostGIS queries (in PHP) to validate the polygon. Secondly, for client side validation (maybe a bit hackish) assuming I have the coordinates for all the WMS features could you suggest me a OpenLayers/JavaScript only way? say.. something like construct all the features(objects) from the coordinates using OpenLayers and use appropriate functions to find the intersection of the polygon.
Feb
11
comment Intersection of drawn polygon with WMS layer features. Better of two methods?
1. In my case, switching to WFS would take quite a bit work.
Feb
5
comment SELECT DISTINCT from table in Geoserver SQL view
@iant I just found out the source of the problem. It was a mismatched sql statement in my code that nullified the geom column for those entries whenever a certain function was executed. I suspected this since there wasn't anything wrong in the logs and also only those two elements disappeared every time.