<html><head></head><body><div dir="auto">I'm didn't load into geometry, I used ogr2ogr to load into geography. All work to date has been ok except now I want to aggregate union the polygon parts of bounties with multiple polygon parts. ST_Union is not geographic aware hence all the trouble.<br><br></div>
<div dir="auto">Using geometry as the load target does not appear to help me because of the geodetic vs projected linestring issue. <br><br></div>
<div dir="auto">There are other situations eg ST_Wdithin, that return incorrect results when points fall on boundaries (I had to hack a solution to get correct within results for geographic data.)<br><br></div>
<div dir="auto">I don't my just do the processing for Ireland but also Australia and the USA, the common factor being 4326. So the solution has to be geography not geometry.<br><br></div>
<div dir="auto">Well for as much as I understand all these things?<br><br></div>
<div dir="auto">PS I need a common framework when training across PostGIS, SQL Server Spatial and Oracle Spatial. I also want the math to be correct for the geography data, as it should.<br><br></div>
<div dir="auto">Regards<br></div>
<div dir="auto">Simon<br><br><br></div>
<div dir="auto"><!-- tmjah_g_1299s -->Sent from <!-- tmjah_g_1299e --><a href="http://www.bluemail.me/r?b=14063"><!-- tmjah_g_1299s -->BlueMail<!-- tmjah_g_1299e --></a><!-- tmjah_g_1299s --> <!-- tmjah_g_1299e --></div>
<div class="gmail_quote" >On 22 Jan. 2019, at 09:41, Paul Ramsey <<a href="mailto:pramsey@cleverelephant.ca" target="_blank">pramsey@cleverelephant.ca</a>> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="blue"><br><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"> On Jan 21, 2019, at 1:46 PM, Simon Greener <simon@spatialdbadvisor.com> wrote:<br> <br> Thanks Paul.<br> <br> However, I get the same number of distinct st_isvalidreason results.<br></blockquote><br>Something is awry here, because I get only 'Valid Geometry’ as a validity check result… I loaded your shape file, I have 42 irish counties, I didn’t even try to use geography, just used geometry and they are all valid to start with.<br><br>I can even push them through a couple casts and they remain valid (as I would hope they would, since the coordinates shouldn’t change) <br><br>select distinct st_isvalidreason(geom::geography::geometry) from county;<br><br>P<br><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"> <br> Is there anything I can do with ogr2ogr when loading to help?<br> <br> Simon<br> <br> On Tue, 22 Jan 2019 08:34:02 +1100, Paul Ramsey <pramsey@cleverelephant.ca> wrote:<br> <br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #ad7fa8; padding-left: 1ex;"> +proj=gnom +lat_0=53.35 +lon_0=-6.26 +x_0=0 +y_0=0 +ellps=WGS84 +units=m +no_defs<br></blockquote> <br> <br> -- <br> Regards<br> Simon<br><hr><br> Spatial Advice & Solutions Architecture<br> Database Spatial Stored Procedure Designer<br> Oracle Spatial, SQL Server, PostGIS, MySQL, ArcSDE FME<br> Awarded "2011 Oracle Spatial Excellence Award for Education and Research"<br> A: 39 Cliff View Drive, Allens Rivulet, 7150, Tas, Aust<br> W: <a href="http://www.spdba.com.au">www.spdba.com.au</a><br> E: simon@spdba.com.au<br> V: +61 362 396 397<br> M: +61 418 396 391<br> GITC Supplier: T1005<br> Skype: sggreener<br> Long: 147.20515 (147° 12' 18" E)<br> Lat: -43.01530 (43° 00' 55" S)<br> GeoHash: r22em9r98wg<br> NAC:W80CK 7SWP3<br></blockquote><br></pre></blockquote></div></body></html>