<div>Hello Frank and lists,</div>
<div> </div>
<div>what i am trying is to create is a validation program for a linestring 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 validate them (ie linestring geometry records of A) for dangle and 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 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 validation program (ie a separate process and use a batch approach due bulk processing of shapefiles).
</div>
<div> </div>
<div>hence this is when i faced the problem will extraction.</div>
<div> </div>
<div>
<div>hope i cleared my intention of my problem.</div></div>
<div> </div>
<div>but my real problem now is this process is toooo. slow, first to extract and then to validate...</div>
<div> </div>
<div>hence i trying to write a program using ogr api. to fetch the record from the database and validating on the fly. </div>
<div>for this I wanted to know does OGRGeometryCollection and OGRGeometryFactory be used for finding open polygon error(or dangle) and duplicate lines thru 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> </div>
<div>-- <br>Best Regrads<br><br>Abhay Menon<br><br> </div>
<div><span class="gmail_quote">On 5/26/06, <b class="gmail_sendername">Frank Warmerdam</b> <<a href="mailto:warmerdam@pobox.com">warmerdam@pobox.com</a>> 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. Are you
<br>wanting to split a single table in Oracle into many individual shapefiles<br>based size, or some attribute value? 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. That should avoid the "too many files open" problem.
<br><br>Best regards,<br>--<br>---------------------------------------+--------------------------------------<br>I set the clouds in motion - turn up | 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 | President OSGF, <a href="http://osgeo.org">http://osgeo.org
</a><br><br></blockquote></div>