- Code: Select all
CLIPPED row 1 of 1 - center lat is 53.6875
Saving to buckets
Error reading Index file ../../Projects/Ireland/work/w010n50/w010n51/chop.idx abort
All done!
Every time I try to run ogr-decode on my osm landmass, I get this. Any ideas?
CLIPPED row 1 of 1 - center lat is 53.6875
Saving to buckets
Error reading Index file ../../Projects/Ireland/work/w010n50/w010n51/chop.idx abort
All done!
../../Projects/Ireland/work/w010n50/w010n51/chop.idx
What tool creates the .idx, is it made by ogr-decode itself?
long int tgChopper::GenerateIndex( std::string path )
{
std::string index_file = path + "/chop.idx";
long int index = 0;
//Open or create the named mutex
boost::interprocess::named_mutex mutex(boost::interprocess::open_or_create, "tgChopper_index2");
{
boost::interprocess::scoped_lock<boost::interprocess::named_mutex> lock(mutex);
/* first try to read the file */
FILE *fp = fopen( index_file.c_str(), "r+" );
if ( fp == NULL ) {
/* doesn't exist - create it */
fp = fopen( index_file.c_str(), "w" );
if ( fp == NULL ) {
SG_LOG(SG_GENERAL, SG_ALERT, "Error cannot open Index file " << index_file << " for writing");
boost::interprocess::named_mutex::remove("tgChopper_index2");
exit( 0 );
}
} else {
fread( (void*)&index, sizeof(long int), 1, fp );
if (ferror(fp))
{
perror ("The following error occurred");
SG_LOG(SG_GENERAL, SG_ALERT, "Error reading Index file " << index_file << " abort");
boost::interprocess::named_mutex::remove("tgChopper_index2");
exit(0);
}
}
index++;
rewind( fp );
fwrite( (void*)&index, sizeof(long int), 1, fp );
fclose( fp );
}
boost::interprocess::named_mutex::remove("tgChopper_index2");
return index;
}
legoboyvdlp wrote in Mon Sep 17, 2018 7:27 pm:But ogr-decode failed on Default
ogr-decode.exe --area-type Default work/Default data/land_polygons
ogr-decode.exe --area-type Default ../../Projects/Ireland/work/Default ../../Projects/Ireland/data/land_polygons
CLIPPED row 1 of 1 - center lat is 53.6875
Saving to buckets
Error reading Index file ../../Projects/Ireland/work/Default/w010n50/w010n52/chop.idx abort
legoboyvdlp wrote in Fri Sep 21, 2018 9:35 am:I looked in the folder work/Default/w010n50/w010n52, and there is only one chop.idx file.
legoboyvdlp wrote in Fri Sep 21, 2018 9:35 am:Perhaps I need to run the tools from the beginning (hgtchop, terrafit, etc)?
Users browsing this forum: No registered users and 0 guests