[fdo-dev] SHP UnitTest Failures on win32

Pierre Dalcourt pierre.dalcourt at autodesk.com
Thu Sep 28 13:13:51 EDT 2006


Frank,

You might want to wipe out your '..\..\TestData\Testing' folder and
restart the SHP unit tests.  Sometimes this directory gets left in a
corrupt state if a unit test didn't complete successfully.  All the data
in that folder are generated by the unit test at runtime so no harm in
wiping it out.

Pierre

-----Original Message-----
From: Frank Warmerdam (External) 
Sent: September 28, 2006 1:06 PM
To: FDO Developers
Subject: [fdo-dev] SHP UnitTest Failures on win32

Folks,

Yesterday and today I updated fdo from svn on my win32 builds.  My
fdogdal unittests are passing fine, but I'm getting quite a few failures
in the SHP provider unittest.  The problems seem to be somehow related
to
opening the TestData\Testing files in update mode, but I checked there
and things seem to be present with appropriate permissions.  Does the
following log suggest any particular problem to others?

0.891 seconds
locale= English_Canada.1252
..locale: .28591
..locale: English
..locale: French
..locale: Japanese
Seconds to read SpatialExtents from SHP file containing 4000 records,
using 
optimization: 0
Seconds to read SpatialExtents from SHP file containing 4000 records,
using no 
optimization: 1.015
0. = (189831.187500, 11641577.000000)(1587270520.000000,
1640228167.000000)
0. NAD_1983_HARN_UTM_Zone_17N= (-146758.464000,
2773606.502000)(596256.145000, 
3452202.304000)
0. NAD_1983_HARN_UTM_Zone_17N= (-146758.464000,
2773606.502000)(596256.145000, 
3452202.304000)
0. WGS84 Lat/Long's, Degrees, -180 ==> +180= (-97.200447, 
41.771564)(-87.636185, 43.810032)
0. WGS84 Lat/Long's, Degrees, -180 ==> +180= (-97.200447, 
41.771564)(-87.636185, 43.810032)
Expected error 'Duplicate field name 'STATESP020' in 
'..\..\TestData\States\statesp020.dbf'. '


Shape file ../../TestData/Zones/ZONES has the following statistics:
    0 true FDO multipolygons
    508 SHP polygons with 1 ring
    16 SHP polygons with 2+ rings
    0 SHP polygons with non-closed rings
    0 outer rings with wrong vertex order
    51 inner rings with wrong vertex order
    0 polygons with incorrect ring order

Shape file ../../TestData/World/world_adm0 has the following statistics:
    0 true FDO multipolygons
    132 SHP polygons with 1 ring
    77 SHP polygons with 2+ rings
    0 SHP polygons with non-closed rings
    0 outer rings with wrong vertex order
    769 inner rings with wrong vertex order
    0 polygons with incorrect ring order

Shape file ../../TestData/Sheboygan/BuildingOutlines has the following
statistics:
    0 true FDO multipolygons
    30336 SHP polygons with 1 ring
    0 SHP polygons with 2+ rings
    0 SHP polygons with non-closed rings
    0 outer rings with wrong vertex order
    0 inner rings with wrong vertex order
    0 polygons with incorrect ring order

Shape file ../../TestData/Sheboygan/CityLimits has the following
statistics:
    0 true FDO multipolygons
    3 SHP polygons with 1 ring
    0 SHP polygons with 2+ rings
    0 SHP polygons with non-closed rings
    0 outer rings with wrong vertex order
    0 inner rings with wrong vertex order
    0 polygons with incorrect ring order

Shape file ../../TestData/Sheboygan/HydrographicPolygons has the
following 
statistics:
    0 true FDO multipolygons
    91 SHP polygons with 1 ring
    0 SHP polygons with 2+ rings
    0 SHP polygons with non-closed rings
    0 outer rings with wrong vertex order
    0 inner rings with wrong vertex order
    0 polygons with incorrect ring order

Shape file ../../TestData/Sheboygan/Islands has the following
statistics:
    0 true FDO multipolygons
    5 SHP polygons with 1 ring
    0 SHP polygons with 2+ rings
    0 SHP polygons with non-closed rings
    0 outer rings with wrong vertex order
    0 inner rings with wrong vertex order
    0 polygons with incorrect ring order

Shape file ../../TestData/Sheboygan/LandUse has the following
statistics:
    0 true FDO multipolygons
    4979 SHP polygons with 1 ring
    0 SHP polygons with 2+ rings
    1 SHP polygons with non-closed rings
    0 outer rings with wrong vertex order
    0 inner rings with wrong vertex order
    0 polygons with incorrect ring order

Shape file ../../TestData/Sheboygan/Parcels has the following
statistics:
    0 true FDO multipolygons
    17563 SHP polygons with 1 ring
    0 SHP polygons with 2+ rings
    2 SHP polygons with non-closed rings
    0 outer rings with wrong vertex order
    0 inner rings with wrong vertex order
    0 polygons with incorrect ring order

Shape file ../../TestData/Sheboygan/Soils has the following statistics:
    0 true FDO multipolygons
    794 SHP polygons with 1 ring
    0 SHP polygons with 2+ rings
    0 SHP polygons with non-closed rings
    0 outer rings with wrong vertex order
    0 inner rings with wrong vertex order
    0 polygons with incorrect ring order

Shape file ../../TestData/Sheboygan/VotingDistricts has the following
statistics:
    0 true FDO multipolygons
    11 SHP polygons with 1 ring
    0 SHP polygons with 2+ rings
    0 SHP polygons with non-closed rings
    0 outer rings with wrong vertex order
    0 inner rings with wrong vertex order
    0 polygons with incorrect ring order

Shape file ../../TestData/Ontario/lakes has the following statistics:
    0 true FDO multipolygons
    79 SHP polygons with 1 ring
    17 SHP polygons with 2+ rings
    0 SHP polygons with non-closed rings
    0 outer rings with wrong vertex order
    3 inner rings with wrong vertex order
    0 polygons with incorrect ring order

Shape file ../../TestData/Ontario/ontario has the following statistics:
    0 true FDO multipolygons
    1 SHP polygons with 1 ring
    0 SHP polygons with 2+ rings
    0 SHP polygons with non-closed rings
    0 outer rings with wrong vertex order
    0 inner rings with wrong vertex order
    0 polygons with incorrect ring order

Shape file ../../TestData/Oahu/coundist01_n83 has the following
statistics:
    0 true FDO multipolygons
    32 SHP polygons with 1 ring
    0 SHP polygons with 2+ rings
    0 SHP polygons with non-closed rings
    0 outer rings with wrong vertex order
    0 inner rings with wrong vertex order
    0 polygons with incorrect ring order

Shape file ../../TestData/Hawaii/coast_n83 has the following statistics:
    0 true FDO multipolygons
    12 SHP polygons with 1 ring
    1 SHP polygons with 2+ rings
    0 SHP polygons with non-closed rings
    0 outer rings with wrong vertex order
    0 inner rings with wrong vertex order
    0 polygons with incorrect ring order

Shape file ../../TestData/Florida/plss24 has the following statistics:
    0 true FDO multipolygons
    55731 SHP polygons with 1 ring
    41 SHP polygons with 2+ rings
    0 SHP polygons with non-closed rings
    0 outer rings with wrong vertex order
    0 inner rings with wrong vertex order
    0 polygons with incorrect ring order

!!!FAILURES!!!
Test Results:
Run:  159   Failures: 19   Errors: 0


1) test: InsertTests.insert (F) line: 62 
c:\warmerda\fdocore\providers\shp\src\unittest\shptests.cpp
  "(c:\warmerda\fdocore\utilities\common\src\fdocommonfile.cpp: 309)
Failed to 
open file '..\..\TestData\Testing\Test.cpg' with access modes: 
'IDF_OPEN_UPDATE|IDF_CREATE_NEW'. "

2) test: InsertTests.insert_with_locale (F) line: 299 
c:\warmerda\fdocore\providers\shp\src\unittest\inserttests.cpp
  "incorrect value for ESRI codepage"

3) test: SchemaTests.apply (F) line: 62 
c:\warmerda\fdocore\providers\shp\src\unittest\shptests.cpp
  "(c:\warmerda\fdocore\utilities\common\src\fdocommonfile.cpp: 309)
Failed to 
open file '..\..\TestData\Testing\Test.cpg' with access modes: 
'IDF_OPEN_UPDATE|IDF_CREATE_NEW'. "

4) test: SchemaTests.add_class (F) line: 62 
c:\warmerda\fdocore\providers\shp\src\unittest\shptests.cpp
  "(c:\warmerda\fdocore\utilities\common\src\fdocommonfile.cpp: 309)
Failed to 
open file '..\..\TestData\Testing\Test.cpg' with access modes: 
'IDF_OPEN_UPDATE|IDF_CREATE_NEW'. "

5) test: SchemaTests.apply_three (F) line: 62 
c:\warmerda\fdocore\providers\shp\src\unittest\shptests.cpp
  "(c:\warmerda\fdocore\utilities\common\src\fdocommonfile.cpp: 309)
Failed to 
open file '..\..\TestData\Testing\Test.cpg' with access modes: 
'IDF_OPEN_UPDATE|IDF_CREATE_NEW'. "

6) test: SchemaTests.add_class_no_identity (F) line: 62 
c:\warmerda\fdocore\providers\shp\src\unittest\shptests.cpp
  "(c:\warmerda\fdocore\utilities\common\src\fdocommonfile.cpp: 309)
Failed to 
open file '..\..\TestData\Testing\Test.cpg' with access modes: 
'IDF_OPEN_UPDATE|IDF_CREATE_NEW'. "

7) test: SchemaTests.non_ascii_property_name (F) line: 62 
c:\warmerda\fdocore\providers\shp\src\unittest\shptests.cpp
  "(c:\warmerda\fdocore\utilities\common\src\fdocommonfile.cpp: 309)
Failed to 
open file '..\..\TestData\Testing\Test.cpg' with access modes: 
'IDF_OPEN_UPDATE|IDF_CREATE_NEW'. "

8) test: UpdateTests.update (F) line: 62 
c:\warmerda\fdocore\providers\shp\src\unittest\shptests.cpp
  "(c:\warmerda\fdocore\utilities\common\src\fdocommonfile.cpp: 309)
Failed to 
open file '..\..\TestData\Testing\Test.cpg' with access modes: 
'IDF_OPEN_UPDATE|IDF_CREATE_NEW'. "

9) test: UpdateTests.update_geometry_point_xy (F) line: 62 
c:\warmerda\fdocore\providers\shp\src\unittest\shptests.cpp
  "(c:\warmerda\fdocore\utilities\common\src\fdocommonfile.cpp: 309)
Failed to 
open file '..\..\TestData\Testing\Test.cpg' with access modes: 
'IDF_OPEN_UPDATE|IDF_CREATE_NEW'. "

10) test: UpdateTests.update_geometry_line_xy (F) line: 62 
c:\warmerda\fdocore\providers\shp\src\unittest\shptests.cpp
  "(c:\warmerda\fdocore\utilities\common\src\fdocommonfile.cpp: 309)
Failed to 
open file '..\..\TestData\Testing\Test.cpg' with access modes: 
'IDF_OPEN_UPDATE|IDF_CREATE_NEW'. "

11) test: UpdateTests.update_geometry_polygon_xy (F) line: 62 
c:\warmerda\fdocore\providers\shp\src\unittest\shptests.cpp
  "(c:\warmerda\fdocore\utilities\common\src\fdocommonfile.cpp: 309)
Failed to 
open file '..\..\TestData\Testing\Test.cpg' with access modes: 
'IDF_OPEN_UPDATE|IDF_CREATE_NEW'. "

12) test: UpdateTests.update_null_data_values (F) line: 62 
c:\warmerda\fdocore\providers\shp\src\unittest\shptests.cpp
  "(c:\warmerda\fdocore\utilities\common\src\fdocommonfile.cpp: 309)
Failed to 
open file '..\..\TestData\Testing\Test.cpg' with access modes: 
'IDF_OPEN_UPDATE|IDF_CREATE_NEW'. "

13) test: UpdateTests.update_int32 (F) line: 62 
c:\warmerda\fdocore\providers\shp\src\unittest\shptests.cpp
  "(c:\warmerda\fdocore\utilities\common\src\fdocommonfile.cpp: 309)
Failed to 
open file '..\..\TestData\Testing\Test.cpg' with access modes: 
'IDF_OPEN_UPDATE|IDF_CREATE_NEW'. "

14) test: DeleteTests.del (F) line: 62 
c:\warmerda\fdocore\providers\shp\src\unittest\shptests.cpp
  "(c:\warmerda\fdocore\utilities\common\src\fdocommonfile.cpp: 309)
Failed to 
open file '..\..\TestData\Testing\Test.cpg' with access modes: 
'IDF_OPEN_UPDATE|IDF_CREATE_NEW'. "

15) test: DeleteTests.del_geometry (F) line: 62 
c:\warmerda\fdocore\providers\shp\src\unittest\shptests.cpp
  "(c:\warmerda\fdocore\utilities\common\src\fdocommonfile.cpp: 309)
Failed to 
open file '..\..\TestData\Testing\Test.cpg' with access modes: 
'IDF_OPEN_UPDATE|IDF_CREATE_NEW'. "

16) test: DeleteTests.del_one (F) line: 62 
c:\warmerda\fdocore\providers\shp\src\unittest\shptests.cpp
  "(c:\warmerda\fdocore\utilities\common\src\fdocommonfile.cpp: 309)
Failed to 
open file '..\..\TestData\Testing\Test.cpg' with access modes: 
'IDF_OPEN_UPDATE|IDF_CREATE_NEW'. "

17) test: FidelityTests.ontario (F) line: 62 
c:\warmerda\fdocore\providers\shp\src\unittest\shptests.cpp
  "(c:\warmerda\fdocore\utilities\common\src\fdocommonfile.cpp: 309)
Failed to 
open file '..\..\TestData\Testing\Test.cpg' with access modes: 
'IDF_OPEN_UPDATE|IDF_CREATE_NEW'. "

18) test: FidelityTests.lakes (F) line: 62 
c:\warmerda\fdocore\providers\shp\src\unittest\shptests.cpp
  "(c:\warmerda\fdocore\utilities\common\src\fdocommonfile.cpp: 309)
Failed to 
open file '..\..\TestData\Testing\Test.cpg' with access modes: 
'IDF_OPEN_UPDATE|IDF_CREATE_NEW'. "

19) test: FidelityTests.nanboku (F) line: 62 
c:\warmerda\fdocore\providers\shp\src\unittest\shptests.cpp
  "(c:\warmerda\fdocore\utilities\common\src\fdocommonfile.cpp: 309)
Failed to 
open file '..\..\TestData\Testing\Test.cpg' with access modes: 
'IDF_OPEN_UPDATE|IDF_CREATE_NEW'. "

<RETURN> to continue

-- 
---------------------------------------+--------------------------------
------
I set the clouds in motion - turn up   | Frank Warmerdam,
warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo,
http://osgeo.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe at fdo.osgeo.org
For additional commands, e-mail: dev-help at fdo.osgeo.org





More information about the Fdo-internals mailing list