/[thuban]/branches/WIP-pyshapelib-bramz/libraries/shapelib/shapefil.h
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/libraries/shapelib/shapefil.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

trunk/thuban/libraries/shapelib/shapefil.h revision 2703 by bernhard, Sun Sep 24 18:51:39 2006 UTC branches/WIP-pyshapelib-bramz/libraries/shapelib/shapefil.h revision 2752 by bramz, Tue Apr 10 23:45:00 2007 UTC
# Line 173  Line 173 
173  extern "C" {  extern "C" {
174  #endif  #endif
175    
176    #if defined(_WIN32) || defined(_WIN64)
177    #define SHPAPI_HAS_WIDE
178    #endif
179    
180  /************************************************************************/  /************************************************************************/
181  /*                        Configuration options.                        */  /*                        Configuration options.                        */
182  /************************************************************************/  /************************************************************************/
# Line 329  SHPHandle SHPAPI_CALL Line 333  SHPHandle SHPAPI_CALL
333        SHPOpen( const char * pszShapeFile, const char * pszAccess );        SHPOpen( const char * pszShapeFile, const char * pszAccess );
334  SHPHandle SHPAPI_CALL  SHPHandle SHPAPI_CALL
335        SHPCreate( const char * pszShapeFile, int nShapeType );        SHPCreate( const char * pszShapeFile, int nShapeType );
336    #ifdef SHPAPI_HAS_WIDE
337    SHPHandle SHPAPI_CALL
338          SHPOpenW( const wchar_t * pszShapeFile, const wchar_t * pszAccess );
339    SHPHandle SHPAPI_CALL
340          SHPCreateW( const wchar_t * pszShapeFile, int nShapeType );
341    #endif
342    SHPHandle SHPAPI_CALL
343          SHPOpenEx( FILE * pfSHP, FILE * pfSHX );
344    void SHPAPI_CALL
345          SHPCreateEx( FILE * pfSHP, FILE * pfSHX, int nShapeType );
346    
347  void SHPAPI_CALL  void SHPAPI_CALL
348        SHPGetInfo( SHPHandle hSHP, int * pnEntities, int * pnShapeType,        SHPGetInfo( SHPHandle hSHP, int * pnEntities, int * pnShapeType,
349                    double * padfMinBound, double * padfMaxBound );                    double * padfMinBound, double * padfMaxBound );
# Line 406  int    SHPAPI_CALL Line 421  int    SHPAPI_CALL
421        SHPWriteTree( SHPTree *hTree, const char * pszFilename );        SHPWriteTree( SHPTree *hTree, const char * pszFilename );
422  SHPTree SHPAPI_CALL  SHPTree SHPAPI_CALL
423        SHPReadTree( const char * pszFilename );        SHPReadTree( const char * pszFilename );
424    #ifdef SHPAPI_HAS_WIDE
425    int     SHPAPI_CALL
426          SHPWriteTreeW( SHPTree *hTree, const wchar_t * pszFilename );
427    SHPTree SHPAPI_CALL
428          SHPReadTreeW( const wchar_t * pszFilename );
429    #endif
430    
431  int     SHPAPI_CALL  int     SHPAPI_CALL
432        SHPTreeAddObject( SHPTree * hTree, SHPObject * psObject );        SHPTreeAddObject( SHPTree * hTree, SHPObject * psObject );
# Line 450  typedef        struct Line 471  typedef        struct
471            
472      int         bNoHeader;      int         bNoHeader;
473      int         bUpdated;      int         bUpdated;
474            int             nLanguageDriver;
475  } DBFInfo;  } DBFInfo;
476    
477  typedef DBFInfo * DBFHandle;  typedef DBFInfo * DBFHandle;
# Line 472  DBFHandle SHPAPI_CALL Line 494  DBFHandle SHPAPI_CALL
494        DBFOpen( const char * pszDBFFile, const char * pszAccess );        DBFOpen( const char * pszDBFFile, const char * pszAccess );
495  DBFHandle SHPAPI_CALL  DBFHandle SHPAPI_CALL
496        DBFCreate( const char * pszDBFFile );        DBFCreate( const char * pszDBFFile );
497    #ifdef SHPAPI_HAS_WIDE
498    DBFHandle SHPAPI_CALL
499          DBFOpenW( const wchar_t * pszDBFFile, const wchar_t * pszAccess );
500    DBFHandle SHPAPI_CALL
501          DBFCreateW( const wchar_t * pszDBFFile );
502    #endif
503    DBFHandle SHPAPI_CALL
504          DBFOpenEx( FILE* pf );
505    DBFHandle SHPAPI_CALL
506          DBFCreateEx( FILE* pf );
507    
508  int     SHPAPI_CALL  int     SHPAPI_CALL
509        DBFGetFieldCount( DBFHandle psDBF );        DBFGetFieldCount( DBFHandle psDBF );
# Line 524  int SHPAPI_CALL Line 556  int SHPAPI_CALL
556    
557  DBFHandle SHPAPI_CALL  DBFHandle SHPAPI_CALL
558        DBFCloneEmpty(DBFHandle psDBF, const char * pszFilename );        DBFCloneEmpty(DBFHandle psDBF, const char * pszFilename );
559    #ifdef DBFAPI_HAS_WIDE
560    DBFHandle SHPAPI_CALL
561          DBFCloneEmptyW(DBFHandle psDBF, const wchar_t * pszFilename );
562    #endif
563    void SHPAPI_CALL
564          DBFCloneEmptyEx(DBFHandle psDBF, DBFHandle newDBF );
565    
566  void    SHPAPI_CALL  void    SHPAPI_CALL
567        DBFClose( DBFHandle hDBF );        DBFClose( DBFHandle hDBF );
568  void    SHPAPI_CALL  void    SHPAPI_CALL

Legend:
Removed from v.2703  
changed lines
  Added in v.2752

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26