<div dir="ltr"><div><span style="font-size:12.8px">+1 here. One of a few changes in.the opt file we've had for many years is "/MD" to "/MDd" in debug, so yes, it makes perfect sense.</span></div><div><span style="font-size:12.8px">ivar</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">> Hi Even,</span><br></div><div><span style="font-size:12.8px">> </span><span style="font-size:12.8px"><br></span></div><span style="font-size:12.8px">> </span><br style="font-size:12.8px"><span style="font-size:12.8px">> </span><span style="font-size:12.8px">Since you ask, I can tell you that changing "/MD" to "/MDd" is one of just</span><br style="font-size:12.8px"><span style="font-size:12.8px">> </span><span style="font-size:12.8px">two remaining edits that I have to make to nmake.opt before I build a new</span><br style="font-size:12.8px"><span style="font-size:12.8px">> </span><span style="font-size:12.8px">version of GDAL. We do most of our development on Windows and port to</span><br style="font-size:12.8px"><span style="font-size:12.8px">> </span><span style="font-size:12.8px">Linux so I think we do the opposite of how it sounds like you work.</span><br style="font-size:12.8px"><span style="font-size:12.8px">> </span><br style="font-size:12.8px"><span style="font-size:12.8px">> </span><span style="font-size:12.8px">So we'd prefer /MDd.</span><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 27, 2017 at 6:08 PM, <span dir="ltr"><<a href="mailto:gdal-dev-request@lists.osgeo.org" target="_blank">gdal-dev-request@lists.osgeo.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send gdal-dev mailing list submissions to<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/gdal-dev</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:gdal-dev-request@lists.osgeo.org">gdal-dev-request@lists.osgeo.<wbr>org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:gdal-dev-owner@lists.osgeo.org">gdal-dev-owner@lists.osgeo.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of gdal-dev digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. /MD vs /MDd for DEBUG MSVC builds (Even Rouault)<br>
2. Re: /MD vs /MDd for DEBUG MSVC builds (Mateusz Loskot)<br>
3. Re: Determining Native Data Field Type Names for a Given<br>
Layer or Driver (Even Rouault)<br>
4. Re: /MD vs /MDd for DEBUG MSVC builds (Jeff McKenna)<br>
5. Re: /MD vs /MDd for DEBUG MSVC builds (Carl Godkin)<br>
<br>
<br>
------------------------------<wbr>------------------------------<wbr>----------<br>
<br>
Message: 1<br>
Date: Wed, 27 Sep 2017 21:38:15 +0200<br>
From: Even Rouault <<a href="mailto:even.rouault@spatialys.com">even.rouault@spatialys.com</a>><br>
To: <a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
Subject: [gdal-dev] /MD vs /MDd for DEBUG MSVC builds<br>
Message-ID: <5929234.EW3oT5kK1v@even-i700><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hi,<br>
<br>
For those who don't understand the title, you may skip this email ;-)<br>
<br>
Once again someone raised an issue about the MSVC runtime we use for DEBUG=1 builds:<br>
<a href="https://trac.osgeo.org/gdal/ticket/7059" rel="noreferrer" target="_blank">https://trac.osgeo.org/gdal/<wbr>ticket/7059</a><br>
<br>
and in <a href="https://trac.osgeo.org/gdal/ticket/6384" rel="noreferrer" target="_blank">https://trac.osgeo.org/gdal/<wbr>ticket/6384</a> about the same issue, there are 4 similar<br>
tickets raised.<br>
<br>
So it seems our default is a recurring problem.<br>
<br>
Personnaly I believe I've never used a Windows build, so I'm mostly indifferent<br>
<br>
Any opinion about using the debug MSVC runtime (/MDd) for DEBUG=1 builds instead of the<br>
current release runtime (/MD) ?<br>
<br>
Even<br>
<br>
<br>
--<br>
Spatialys - Geospatial professional services<br>
<a href="http://www.spatialys.com" rel="noreferrer" target="_blank">http://www.spatialys.com</a><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.osgeo.org/pipermail/gdal-dev/attachments/20170927/8b7dcad4/attachment-0001.html" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>pipermail/gdal-dev/<wbr>attachments/20170927/8b7dcad4/<wbr>attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Wed, 27 Sep 2017 21:52:45 +0200<br>
From: Mateusz Loskot <<a href="mailto:mateusz@loskot.net">mateusz@loskot.net</a>><br>
To: Even Rouault <<a href="mailto:even.rouault@spatialys.com">even.rouault@spatialys.com</a>><br>
Cc: <a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
Subject: Re: [gdal-dev] /MD vs /MDd for DEBUG MSVC builds<br>
Message-ID:<br>
<<wbr>CABUeae8xQpZ3ORROb9Oc1E5dj9oZe<wbr>An6E70GV=<a href="mailto:4vpxLsyi8_EQ@mail.gmail.com">4vpxLsyi8_EQ@mail.<wbr>gmail.com</a>><br>
Content-Type: text/plain; charset="UTF-8"<br>
<br>
On 27 September 2017 at 21:38, Even Rouault <<a href="mailto:even.rouault@spatialys.com">even.rouault@spatialys.com</a>> wrote:<br>
><br>
> Once again someone raised an issue about the MSVC runtime we use for DEBUG=1<br>
> builds: <a href="https://trac.osgeo.org/gdal/ticket/7059" rel="noreferrer" target="_blank">https://trac.osgeo.org/gdal/<wbr>ticket/7059</a><br>
><br>
> [...]<br>
> Personnaly I believe I've never used a Windows build, so I'm mostly<br>
> indifferent<br>
><br>
> Any opinion about using the debug MSVC runtime (/MDd) for DEBUG=1 builds<br>
> instead of the current release runtime (/MD) ?<br>
<br>
Even,<br>
<br>
Yesterday, I started thinking about adding an extra build configuration to NMAKE<br>
makefile, controlled via command line defines, to enable such proper/full debug<br>
build for Windows.<br>
<br>
IMO, debug builds w/o /MDd are somewhat unexpected or exotic.<br>
As one of Windows users and developers, I'd vote for the default<br>
MSVC configuration for debug builds of GDAL.<br>
<br>
This would also help a bit with binary packages for Visual C++,<br>
currently, it requires nmake.opt patching.<br>
<a href="https://github.com/Microsoft/vcpkg/pull/1879" rel="noreferrer" target="_blank">https://github.com/Microsoft/<wbr>vcpkg/pull/1879</a><br>
<br>
Best regards,<br>
--<br>
Mateusz Loskot, <a href="http://mateusz.loskot.net" rel="noreferrer" target="_blank">http://mateusz.loskot.net</a><br>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Wed, 27 Sep 2017 22:32:23 +0200<br>
From: Even Rouault <<a href="mailto:even.rouault@spatialys.com">even.rouault@spatialys.com</a>><br>
To: Andrew Joseph <<a href="mailto:ap.joseph1337@gmail.com">ap.joseph1337@gmail.com</a>><br>
Cc: "<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>" <<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>><br>
Subject: Re: [gdal-dev] Determining Native Data Field Type Names for a<br>
Given Layer or Driver<br>
Message-ID: <1712076.mIpcWRE8p1@even-i700><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
On mercredi 27 septembre 2017 15:22:15 CEST Andrew Joseph wrote:<br>
> Thanks, this worked out better than I could have hoped! I used:<br>
><br>
> final String url = "/test_data/shapefiles/myshp.<wbr>shp";<br>
> final Dataset shapefileDs = gdal.OpenEx(url);<br>
> final Vector<String> options = new Vector<>(Arrays.asList(<br>
> "-of", "PGDump",<br>
> "-where", "0=1",<br>
> "-lco", "FID=fid",<br>
> "-lco","GEOMETRY_NAME=geom",<br>
> "-lco","LAUNDER=NO"));<br>
><br>
> gdal.VectorTranslate("/<wbr>vsistdout", shapefileDs, new<br>
> VectorTranslateOptions(<wbr>options));<br>
><br>
> In terms of efficiency, is it better to use -limit 0 or -where FALSE?<br>
<br>
Ah yes, -limit 0 will work much faster.<br>
<br>
><br>
> Also, is there any means of removing the BEGIN; and COMMIT; statements?<br>
<br>
I don't think so.<br>
<br>
><br>
> As a side note, I noticed that the BEGIN; statement in the dump is issued<br>
> after the DROP TABLE -which would mean the relevant table would be deleted<br>
> even if the data load transaction failed -not sure if this is intended<br>
> behavior or a bug.<br>
<br>
I'm not completely sure if it is intended or not. From what I see, the PG driver does the same<br>
thing. There are perhaps issues with dropping a table in a transaction. I remember having<br>
some issues recently when creating (and perhaps overwriting) hundreds/thousands of tables<br>
in the same ogr2ogr invokation. This exhausted some PG server limitation.<br>
<br>
<br>
--<br>
Spatialys - Geospatial professional services<br>
<a href="http://www.spatialys.com" rel="noreferrer" target="_blank">http://www.spatialys.com</a><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.osgeo.org/pipermail/gdal-dev/attachments/20170927/09c3bba7/attachment-0001.html" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>pipermail/gdal-dev/<wbr>attachments/20170927/09c3bba7/<wbr>attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Wed, 27 Sep 2017 19:05:12 -0300<br>
From: Jeff McKenna <<a href="mailto:jmckenna@gatewaygeomatics.com">jmckenna@gatewaygeomatics.com</a><wbr>><br>
To: <a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
Subject: Re: [gdal-dev] /MD vs /MDd for DEBUG MSVC builds<br>
Message-ID:<br>
<<a href="mailto:c090f7be-4069-bdbe-9920-beb5eaace6c9@gatewaygeomatics.com">c090f7be-4069-bdbe-9920-<wbr>beb5eaace6c9@gatewaygeomatics.<wbr>com</a>><br>
Content-Type: text/plain; charset=windows-1252; format=flowed<br>
<br>
On 2017-09-27 4:38 PM, Even Rouault wrote:<br>
> Hi,<br>
><br>
> For those who don't understand the title, you may skip this email ;-)<br>
><br>
> Once again someone raised an issue about the MSVC runtime we use for<br>
> DEBUG=1 builds:<br>
><br>
> <a href="https://trac.osgeo.org/gdal/ticket/7059" rel="noreferrer" target="_blank">https://trac.osgeo.org/gdal/<wbr>ticket/7059</a><br>
><br>
> and in <a href="https://trac.osgeo.org/gdal/ticket/6384" rel="noreferrer" target="_blank">https://trac.osgeo.org/gdal/<wbr>ticket/6384</a> about the same issue,<br>
> there are 4 similar tickets raised.<br>
><br>
> So it seems our default is a recurring problem.<br>
><br>
> Personnaly I believe I've never used a Windows build, so I'm mostly<br>
> indifferent<br>
><br>
> Any opinion about using the debug MSVC runtime (/MDd) for DEBUG=1 builds<br>
> instead of the current release runtime (/MD) ?<br>
><br>
> Even<br>
><br>
<br>
The fix proposed in ticket 7059 makes sense, I see the problem here in<br>
my local nmake, so +1<br>
<br>
But I don't understand Mateusz's response. I think the change in ticket<br>
7059 should be made, and no changes to any defaults, because packagers<br>
by default are not sharing default builds. Again, maybe I am<br>
misunderstanding Mateusz's message.<br>
<br>
-jeff<br>
<br>
<br>
<br>
--<br>
Jeff McKenna<br>
MapServer Consulting and Training Services<br>
<a href="http://www.gatewaygeomatics.com/" rel="noreferrer" target="_blank">http://www.gatewaygeomatics.<wbr>com/</a><br>
<br>
<br>
------------------------------<br>
<br>
Message: 5<br>
Date: Wed, 27 Sep 2017 15:08:28 -0700<br>
From: Carl Godkin <<a href="mailto:cgodkin@gmail.com">cgodkin@gmail.com</a>><br>
To: Even Rouault <<a href="mailto:even.rouault@spatialys.com">even.rouault@spatialys.com</a>><br>
Cc: "<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>" <<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>><br>
Subject: Re: [gdal-dev] /MD vs /MDd for DEBUG MSVC builds<br>
Message-ID:<br>
<CAE=8km=<a href="mailto:k03jw4h%2BO2iB1NoAREfmgJs7kAYz8zLoci-i7L_NN9A@mail.gmail.com">k03jw4h+<wbr>O2iB1NoAREfmgJs7kAYz8zLoci-<wbr>i7L_NN9A@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
On Wed, Sep 27, 2017 at 12:38 PM, Even Rouault <<a href="mailto:even.rouault@spatialys.com">even.rouault@spatialys.com</a>><br>
wrote:<br>
<br>
> Hi,<br>
><br>
><br>
><br>
> For those who don't understand the title, you may skip this email ;-)<br>
><br>
><br>
><br>
> Once again someone raised an issue about the MSVC runtime we use for<br>
> DEBUG=1 builds:<br>
><br>
> <a href="https://trac.osgeo.org/gdal/ticket/7059" rel="noreferrer" target="_blank">https://trac.osgeo.org/gdal/<wbr>ticket/7059</a><br>
><br>
><br>
><br>
> and in <a href="https://trac.osgeo.org/gdal/ticket/6384" rel="noreferrer" target="_blank">https://trac.osgeo.org/gdal/<wbr>ticket/6384</a> about the same issue,<br>
> there are 4 similar tickets raised.<br>
><br>
><br>
><br>
> So it seems our default is a recurring problem.<br>
><br>
><br>
><br>
> Personnaly I believe I've never used a Windows build, so I'm mostly<br>
> indifferent<br>
><br>
><br>
><br>
> Any opinion about using the debug MSVC runtime (/MDd) for DEBUG=1 builds<br>
> instead of the current release runtime (/MD) ?<br>
><br>
><br>
><br>
><br>
><br>
Hi Even,<br>
<br>
Since you ask, I can tell you that changing "/MD" to "/MDd" is one of just<br>
two remaining edits that I have to make to nmake.opt before I build a new<br>
version of GDAL. We do most of our development on Windows and port to<br>
Linux so I think we do the opposite of how it sounds like you work.<br>
<br>
So we'd prefer /MDd.<br>
<br>
(By the way, the other item in nmake.opt that I can't override with an<br>
EXT_NMAKE_OPT<br>
file is that we don't want to build with<br>
<br>
ODBC_SUPPORTED = 1<br>
<br>
If that were changed to use the !IFNDEF ODBC_SUPPORTED then I wouldn't have<br>
to edit nmake.opt at all which would be very handy.)<br>
<br>
Thanks very much,<br>
<br>
carl<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.osgeo.org/pipermail/gdal-dev/attachments/20170927/1b233e13/attachment.html" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>pipermail/gdal-dev/<wbr>attachments/20170927/1b233e13/<wbr>attachment.html</a>><br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
______________________________<wbr>_________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/gdal-dev</a><br>
<br>
------------------------------<br>
<br>
End of gdal-dev Digest, Vol 160, Issue 61<br>
******************************<wbr>***********<br>
</blockquote></div><br></div>