<div>Hello Frank and lists,</div>
<div>&nbsp;</div>
<div>what i am&nbsp;trying is to create is a validation program for a linestring&nbsp;dataset store in Oracle (say TABLE A). i am trying to polygonize the data and check if these create polygon or not so that i can&nbsp;validate them (ie linestring geometry records of A) for&nbsp;dangle and&nbsp;duplicate lines. for this i am also refering to another data (say TABLE B) which also stored in oracle db, this contains the unique attribute value based on&nbsp;which i am trying to extract the data from A. for this i wrote a program in c++ to fetch unique id and create a shapefile of linestring from A for each unique attribute record in B, using ogr2ogr as a external program to create shapefile. by process this i get a list of shapefile(s) as a input for my&nbsp;validation&nbsp;program&nbsp;(ie a&nbsp;separate process and use a batch approach due bulk processing of shapefiles).
</div>
<div>&nbsp;</div>
<div>hence this is when i faced the problem will extraction.</div>
<div>&nbsp;</div>
<div>
<div>hope i cleared my intention of my problem.</div></div>
<div>&nbsp;</div>
<div>but my real&nbsp;problem now is&nbsp;this process is toooo. slow, first to extract and then to validate...</div>
<div>&nbsp;</div>
<div>hence i trying to write a program using ogr api. to fetch the record from the database and&nbsp;validating on the fly. </div>
<div>for this&nbsp;I wanted to know&nbsp;does OGRGeometryCollection and OGRGeometryFactory&nbsp;be used for&nbsp;finding&nbsp;open polygon error(or dangle)&nbsp;and duplicate lines&nbsp; thru&nbsp;ogr api for my validation part in my main process itself, as i am unable to find a method in this by which especially in OGRGeometryFactory for validating these error will insertion of linestring geometry. if you could put some light on this problem it would great help for me.
</div>
<div>&nbsp;</div>
<div>-- <br>Best Regrads<br><br>Abhay Menon<br><br>&nbsp;</div>
<div><span class="gmail_quote">On 5/26/06, <b class="gmail_sendername">Frank Warmerdam</b> &lt;<a href="mailto:warmerdam@pobox.com">warmerdam@pobox.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">abhay menon wrote:<br>--snipped--<br>Abhay,<br><br>I'm afraid I am not clear on what you are doing or asking.&nbsp;&nbsp;Are you
<br>wanting to split a single table in Oracle into many individual shapefiles<br>based size, or some attribute value?&nbsp;&nbsp;This would normally require a<br>distinct ogr2ogr call for each output shapefile produced.<br><br>If you wanted to streamline the operation, it would likely be best to look
<br>at writing a python script.<br><br>If you are only producing one shapefile at a time currently, you might want<br>to use the specific shapefile as the output filename instead of the directory<br>with many shapefiles.&nbsp;&nbsp;That should avoid the &quot;too many files open&quot; problem.
<br><br>Best regards,<br>--<br>---------------------------------------+--------------------------------------<br>I set the clouds in motion - turn up&nbsp;&nbsp; | Frank Warmerdam, <a href="mailto:warmerdam@pobox.com">warmerdam@pobox.com
</a><br>light and sound - activate the windows | <a href="http://pobox.com/~warmerdam">http://pobox.com/~warmerdam</a><br>and watch the world go round - Rush&nbsp;&nbsp;&nbsp;&nbsp;| President OSGF, <a href="http://osgeo.org">http://osgeo.org
</a><br><br></blockquote></div>