Re: [postgis-users] Invalid Geometry

2015-12-28 Thread Joseph Spenner
Did you try ST_MakeValid, and compare the before/after?   Might provide some info. http://postgis.org/documentation/manual-svn/ST_MakeValid.html If life gives you lemons, keep them-- because hey.. free lemons. "~heart~ Sticker"  fixer:  http://microflush.org/stuff/stickers/heartFix.html

Re: [postgis-users] Trouble with returning MultiPolygon on psql query

2015-09-12 Thread Joseph Spenner
why a query with a point from the lower polygon won't return the MultiPolygon row?  I've done this with other MultiPolygons and have not had an issue like this. Any help would be great. Thanks! Joseph Spenner From: Joseph Spenner <joseph85...@yahoo.com> To: PostGIS Users Discuss

Re: [postgis-users] polygons/geometry files for European provinces?

2015-04-10 Thread Joseph Spenner
Thanks for all the great replies! I've got some good info now. Appreciated! Regards,Joseph Spenner If life gives you lemons, keep them-- because hey.. free lemons. ~heart~ Sticker  fixer:  http://microflush.org/stuff/stickers/heartFix.html From: David Haynes hayne...@gmail.com

Re: [postgis-users] polygons/geometry files for European provinces?

2015-04-10 Thread Joseph Spenner
Walter:  Fabulous site!  That's pretty impressive..   From: Walter Nordmann walter.nordm...@web.de To: Joseph Spenner joseph85...@yahoo.com; PostGIS Users Discussion postgis-users@lists.osgeo.org Sent: Friday, April 10, 2015 2:46 PM Subject: Re: [postgis-users] polygons/geometry

Re: [postgis-users] polygons/geometry files for European provinces?

2015-04-10 Thread Joseph Spenner
Nathan and Stephan:  The  Admin 1 – States, Provinces option at:  http://www.naturalearthdata.com/downloads/10m-cultural-vectors/ Is exactly what I needed! Thanks for all the replies.  I got some great, useful, interesting sites now! Cheers.. Joseph Spenner   If life gives you lemons, keep them

Re: [postgis-users] TopologyException: geom is invalid

2015-02-28 Thread Joseph Spenner
Roxanne:  Thanks for the help!  I was able to find a solution, but knowing it was the ST_Area piece giving me the problem was a great help.I'll play around with the suggestions you offered, too. ( Yes, free Beer, Tucson.   :) Cheers..Joseph Spenner  If life gives you lemons, keep them-- because

Re: [postgis-users] TopologyException: geom is invalid

2015-02-26 Thread Joseph Spenner
intersects it? 2) I was able to plot the offending county described above in the GeoJSONLint validation page:   http://geojsonlint.com/  There didn't appear to be any issues. Thanks! Regards,Joseph Spenner   From: Rémi Cura remi.c...@gmail.com To: PostGIS Users Discussion postgis-users

Re: [postgis-users] TopologyException: geom is invalid

2015-02-26 Thread Joseph Spenner
, and was able to get errors-- such as: DBD::Pg::st execute failed: ERROR:  geometry contains non-closed rings So, it would seem my geoms are ok. I've not yet tried the ST_MakeValid.   But wouldn't the above indicate they're already valid? Thanks! From: Joseph Spenner joseph85...@yahoo.com

Re: [postgis-users] TopologyException: geom is invalid

2015-02-26 Thread Joseph Spenner
, Joseph Spenner wrote: I ran the following against all 4 of my GeoJSON files: SELECT ST_IsSimple(ST_GeomFromGeoJSON('@poly')) SELECT ST_IsValid(ST_GeomFromGeoJSON('@poly')) SELECT ST_IsValidDetail(ST_GeomFromGeoJSON('@poly')) SELECT ST_IsValidReason(ST_GeomFromGeoJSON('@poly')) where @poly

[postgis-users] TopologyException: geom is invalid

2015-02-25 Thread Joseph Spenner
California using http://geojsonlint.com/ The state of Californina, which I got from NWS, can be found here:  http://microflush.org/stuff/json/CA.json Can anyone see why this one nwsZone.json polygon is returning the error? Any help would be great. Thanks! Regards,Joseph Spenner

[postgis-users] Possible for ST_Intersects to not include the perimeter?

2015-01-21 Thread Joseph Spenner
task. Any help would be great. Thanks! Regards,Joseph Spenner ___ postgis-users mailing list postgis-users@lists.osgeo.org http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users

Re: [postgis-users] ST_Intersects ST_GeomFromGeoJSON syntax

2015-01-07 Thread Joseph Spenner
. -- Any help would be great. Thanks! From: Hugues François hugues.franc...@irstea.fr To: Joseph Spenner joseph85...@yahoo.com; PostGIS Users Discussion postgis-users@lists.osgeo.org Sent: Wednesday, January 7, 2015 1:17 AM Subject: Re: [postgis-users] ST_Intersects ST_GeomFromGeoJSON

Re: [postgis-users] ST_Intersects ST_GeomFromGeoJSON syntax

2015-01-07 Thread Joseph Spenner
string as the input instead, and return all stored polys which intersect. Is this possible? Thanks! Regards,Joseph Spenner From: Hugues François hugues.franc...@irstea.fr To: Joseph Spenner joseph85...@yahoo.com; PostGIS Users Discussion postgis-users@lists.osgeo.org Sent: Wednesday

Re: [postgis-users] Returning polygons if any of a polygon input points lie in the polygons

2014-11-18 Thread Joseph Spenner
that for the 2nd query without too much difficulty. Thanks again for the responses! Regards,Joseph Spenner  If life gives you lemons, keep them-- because hey.. free lemons. ~heart~ Sticker  fixer:  http://microflush.org/stuff/stickers/heartFix.html From: Rémi Cura remi.c...@gmail.com

Re: [postgis-users] Returning polygons if any of a polygon input points lie in the polygons

2014-11-18 Thread Joseph Spenner
mean they intersect, but one does not completely contain another. I do need the polygons which are completely contained as well.  Can this be done? Thanks again for the help.  I'm getting there! Regards,Joseph Spenner   From: Joseph Spenner joseph85...@yahoo.com To: Rémi Cura remi.c

Re: [postgis-users] Returning polygons if any of a polygon input points lie in the polygons

2014-11-18 Thread Joseph Spenner
://microflush.org/stuff/stickers/heartFix.html From: Joseph Spenner joseph85...@yahoo.com To: PostGIS Users Discussion postgis-users@lists.osgeo.org Sent: Tuesday, November 18, 2014 8:44 AM Subject: Re: [postgis-users] Returning polygons if any of a polygon input points lie in the polygons

Re: [postgis-users] Returning polygons if any of a polygon input points lie in the polygons

2014-11-18 Thread Joseph Spenner
Hugues:  Yes, you are quite right.  The ST_Intersects does exactly what I need.    Good stuff here. Thanks again everyone for your patience!   I probably should have tried a few more of these before posting. Cheers!Joseph Spenner  If life gives you lemons, keep them-- because hey.. free lemons

[postgis-users] Returning polygons if any of a polygon input points lie in the polygons

2014-11-17 Thread Joseph Spenner
,state,name,ST_Asgeojson( geom ) from polys where ST_Intersects(ST_PointFromText('POINT(-109 42)', 4269), geom); But now I have a need to use polygons as input. Any help would be great. Thanks! Regards,Joseph Spenner ___ postgis-users mailing list postgis

[postgis-users] Accessing NWS poly data with lat/lon input

2014-08-08 Thread Joseph Spenner
Hello, I've just got postgresql93-server installed, with postgis21-postgresql93 on a CentOS system. I then used shp2pgsql to load in some shape files using this procedure: http://suite.opengeo.org/docs/latest/dataadmin/pgGettingStarted/shp2pgsql.html The shapefiles were obtained from NWS:

Re: [postgis-users] Accessing NWS poly data with lat/lon input

2014-08-08 Thread Joseph Spenner
Doug:   That was it! polydata=# select zone,gid,state,name,ST_AsKML( geom ) from polys where ST_Intersects(ST_PointFromText('POINT(-109 42)', 4269), geom); Thanks for the help and links! Regards, Joseph Spenner From: Newcomb, Doug doug_newc...@fws.gov