#include <Debug/logstream.hxx>
-#include "names.hxx"
+#include <Polygon/index.hxx>
+#include <Polygon/names.hxx>
#include "shape.hxx"
if ( argc != 3 ) {
FG_LOG( FG_GENERAL, FG_ALERT, "Usage: " << argv[0]
- << " <shapefile> <workdir>" );
+ << " <shape_file> <work_dir>" );
exit(-1);
}
FG_LOG( FG_GENERAL, FG_DEBUG, "Opening " << argv[1] << " for reading." );
+ // initialize persistant polygon counter
+ string counter_file = argv[2];
+ counter_file += "/polygon.counter";
+ poly_index_init( counter_file );
+
// initialize structure for building gpc polygons
shape_utils_init();
exit(-1);
}
- for ( i = 16473; i < sf->numRecords(); i++ ) {
+ for ( i = 0; i < sf->numRecords(); i++ ) {
//fetch i-th record (shape)
sf->getShapeRec(i, &shape);
FG_LOG( FG_GENERAL, FG_DEBUG, "Record = " << i << " rings = "
<< shape.numRings() );
- AreaType area = get_area_type(dbf, i);
- FG_LOG( FG_GENERAL, FG_DEBUG, "area type = " << (int)area );
+ AreaType area = get_shapefile_type(dbf, i);
+ FG_LOG( FG_GENERAL, FG_DEBUG, "area type = " << get_area_name(area)
+ << " (" << (int)area << ")" );
FG_LOG( FG_GENERAL, FG_INFO, " record = " << i
<< " ring = " << 0 );
// $Log$
+// Revision 1.5 1999/03/01 15:36:28 curt
+// Tweaked a function call name in "names.hxx".
+//
+// Revision 1.4 1999/02/25 21:31:05 curt
+// First working version???
+//
// Revision 1.3 1999/02/23 01:29:04 curt
// Additional progress.
//