414 reputation
612
bio website geojason.info
location Charlotte, NC
age 31
visits member for 4 years, 5 months
seen Dec 17 at 19:46

Nov
8
comment Google maps kml and polygon eventclick error
Do you have a sample page so we can test something live or try to reproduce the problem ourselves?
Sep
25
comment Algorithm for finding irrregular polygon centroid (label point)
While my solution (rays from false centroid) will work most of the time, I think this solution would probably work best because of its simplicity and the fact that you're guaranteed to find a point at least on the edge, and could easily shift it to be inside the polygon with very little effort.
Sep
24
comment Algorithm for finding irrregular polygon centroid (label point)
It can be selected by a mouse click or non-spatial query, so this wouldn't always work.
Sep
23
comment Algorithm for finding irrregular polygon centroid (label point)
I hadn't thought about this. Ideally I'd like this point in the polygon and not on the edge, but this might be what I fall back to.
Sep
23
comment Algorithm for finding irrregular polygon centroid (label point)
Yeah, I probably should have added that I already have the code to determine if my "calculated" centroid is within the polygon or not. What I actually want is some way to create a centroid that is within the polygon.
Jul
23
comment Calculate length and area with Google Maps API v3
Nice find. I saw the line length but couldn't find any polygon.getArea(). Maybe it's on the way.
Jul
23
comment Separate polygons based on intersection using PostGIS
Wouldn't ST_Intersects return boolean if they intersect or not? I think ST_Intersection would work.
Jul
23
comment Separate polygons based on intersection using PostGIS
Hmmm, I think see what you're getting at but a simple graphic might do wonders to help me (and others) see exactly what you want.