Hi, today I have a very inside-code question...
I'm wondering why when I want to translate from .SHP to MiraMonFile (.PNT) and 
the destinatination file already exists I seems that the call stack reveals a 
way that is weird for me and I would like to understand:

Translate->Create->(then, as it extist) QuietDelete ->Detele ->Open.... (why 
Open if I have to delete?)

Why I need to Open a file if my goal is to delete it? There is something I am 
missing and I'd appreciate any answer. Thanks a lot.


The complete call stack is this:
gdald.dll!MMInitLayerToRead(MiraMonVectLayerInfo * hMiraMonLayer, 
VSIVirtualHandle * m_fp, const char * pszFilename) Line 157    C

gdald.dll!OGRMiraMonLayer::OGRMiraMonLayer(const char * pszFilename, 
VSIVirtualHandle * fp, const OGRSpatialReference * poSRS, int bUpdateIn, char * 
* papszOpenOptions) Line 182       C++

gdald.dll!OGRMiraMonDataSource::Open(const char * pszFilename, VSIVirtualHandle 
* fp, const OGRSpatialReference * poSRS, int bUpdateIn, char * * 
papszOpenOptionsUsr) Line 67               C++

gdald.dll!OGRMMDriverOpen(GDALOpenInfo * poOpenInfo) Line 90      C++

gdald.dll!GDALDriver::Open(GDALOpenInfo * poOpenInfo, bool bSetOpenOptions) 
Line 116       C++

gdald.dll!GDALOpenEx(const char * pszFilename, unsigned int nOpenFlags, const 
char * const * papszAllowedDrivers, const char * const * papszOpenOptions, 
const char * const * papszSiblingFiles) Line 3670             C++

gdald.dll!GDALDriver::Delete(const char * pszFilename) Line 1631           C++

gdald.dll!GDALDriver::QuietDelete(const char * pszName, const char * const * 
papszAllowedDrivers) Line 1594 C++

gdald.dll!GDALDriver::Create(const char * pszFilename, int nXSize, int nYSize, 
int nBands, GDALDataType eType, const char * const * papszOptions) Line 264    
C++

gdald.dll!GDALVectorTranslate(const char * pszDest, void * hDstDS, int 
nSrcCount, void * * pahSrcDS, const GDALVectorTranslateOptions * psOptionsIn, 
int * pbUsageError) Line 2589         C++

ogr2ogr.exe!wmain(int nArgc, wchar_t * * argv_w, wchar_t * * __formal) Line 455 
        C++




Abel Pau Garcia
GIS developer
[https://www.creaf.cat/sites/default/files/creaf-signature.png]
a....@creaf.uab.cat<mailto:a....@creaf.uab.cat>
Let's chat on 
Teams!<https://teams.microsoft.com/l/chat/0/0?users=a....@creaf.uab.cat>
Tel. +34 934814277
[https://www.creaf.cat/sites/default/files/so-en-signature.png]
[https://www.creaf.cat/sites/default/files/twitter-icon-signature.png]<https://twitter.com/CREAF_ecologia>[https://www.creaf.cat/sites/default/files/linkedin-icon-signature.png]<https://www.linkedin.com/company/1363052?trk=tyah&trkInfo=clickedVertical:company,clickedEntityId:1363052,idx:2-1-2,tarId:1465807877789,tas:creaf>[https://www.creaf.cat/sites/default/files/youtube-icon-signature.png]<https://www.youtube.com/c/creafecologia>[https://www.creaf.cat/sites/default/files/instagram-icon-signature.png]<https://www.instagram.com/CREAF_ecologia/>
www.creaf.cat<http://www.creaf.cat> | http://blog.creaf.cat
[https://www.creaf.cat/sites/default/files/uab_logo_signatura.png]
CREAF. Campus UAB. Edifici C. 08193 Bellaterra (Barcelona)

Before printing this electronic message, think about the environment.



_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to