Reputation
307
Top tag
Next privilege 500 Rep.
Access review queues
Badges
2 13
Impact
~4k people reached

Aug
28
comment If/else statement in arcgis
Google's style guide explicitly discourages it. Additionally, it's something I've picked up on as uncommon. Take a look at this example. Obviously, in cases where the operator precedence isn't obvious (mixed or/and), they add clarity. In this case, it's well known that or has a higher precedence than ==, so the inner parentheses don't add any clarity, especially since it's one condition per line.
Aug
28
comment If/else statement in arcgis
The inner parentheses are unnecessary here. It is usually regarded as poor style to include unnecessary parentheses in Python, since they make the code look more cluttered and somewhat more difficult to read. (The outer ones are only necessary to simplify the line continuation, which is good style for a statement this long.)
Aug
20
comment Problem with PostgreSQL View layer in QGIS
@Meklen Triggers are very useful when you need them, but they do come with some overhead. So use them sparingly. When possible, it's better to avoid them. In this case, I don't see a way around them until 9.5 comes out with row level permissions.
Aug
20
answered Problem with PostgreSQL View layer in QGIS
Aug
11
revised Using PyQGIS, ArcPy, NumPy, SciPy Together in Windows Command Prompt
added 22 characters in body
Aug
11
comment Using PyQGIS, ArcPy, NumPy, SciPy Together in Windows Command Prompt
I wonder if this would be more appropriate on SuperUser. This really doesn't have anything to do with GIS, beyond tangentially involving a runtime used commonly in GIS. Certainly, I think you'd be more likely to get the best answer on SuperUser than you would here.
Aug
11
answered Using PyQGIS, ArcPy, NumPy, SciPy Together in Windows Command Prompt
Aug
3
comment ST_Intersects incorrectly returning false in PostGIS
@PaulRamsey No. It seems PostGIS isn't verifying the compatibility of the geometries before trying to process. I definitely have SRIDs on all my geometries involved (one is a UTM coordinate system and the other is lat/long), but it just merrily reports that they don't intersect. At least in 2.1.4.
Jul
31
comment What are the implications of invalid geometries
ST_MakeValid can also be useful, but examine the results to ensure it succeeded and didn't produce a geometry collection.
Jun
25
awarded  Popular Question
Apr
29
comment How to model a graveyard - one point per deceased or one per grave?
That's not complicated. That's properly modeling your data! +1 for good relational design.
Mar
13
comment Numbers containing e in ArcGIS?
Commonly known as E notation.
Feb
26
comment Split one field into 3 fields?
Some explanation of how Python slicing works: stackoverflow.com/a/509295/1394393.
Jan
24
revised Where can I find PostGIS error codes?
added 13 characters in body
Jan
24
answered Where can I find PostGIS error codes?
Nov
21
comment How to calculate polygon length and width using open source GIS?
@ThomasG77 That's a Python wrapper around something written in Java.... That makes me sad. =(
Nov
18
comment Specify geoprocessing service connection at publish
@Smalis That sounds like it warrants another question. Why not post what you're doing and the behavior you're seeing? You can leave me a comment and I'll look at it.
Nov
5
comment Why is PostGIS query not using spatial index?
Since 16000 is much greater than 360, I think we would have to assume it encompasses the entire Earth (if the behavior is even defined for a degree that large).
Oct
14
answered Delete all data from a PostGIS topology
Oct
14
comment Delete all data from a PostGIS topology
@Mapperz I'm looking into fiddling with the underlying topology tables manually, but I've noticed that at least the face table has a row in it when you create a new topology. Since the topology tables are something PostGIS is supposed to manage for me, I'm a bit cautious about just truncating them.