Re: [gdal-dev] How to Use Gdal in Microsoft Visual Studio C++

2018-11-07 Thread Athin
Hai Tamas,

May i know what the package for GDAL at nuget.org (GDAL, GDAL.Native and
GDAL.Plugins) cover? It can fully C# or  i still need ti use C++ then make
extension to C# so that it can use VS Wpf.

Thank you and best regards.



--
Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] Question: build gdal2tiles.py as exe

2018-11-07 Thread К
Hello! 
I'm trying to bulild gdal2tiles.py as standalone executable by using 
PyInstaller to use it as process from c# code (because gdal2tiles is'nt exist 
in bindings).
I tried with both Python 3.7.1 and Python 2.7.15, but the output binary is 
unable to run or lacks some functionality. For Python3 it runs OK, but throws 
an exception if i try to use "--processes" parameter.  For Python2 it can't run 
and says, that it's unable to find 'osgeo' package.
In both cases I used the following command line: pyinstaller 
D:\gdal\bin\gdal\python\scripts\gdal2tiles.py -D -p "D:\gdal\bin"
To build this version I used Gdal 2.3.2 stable daily release from GisInternals, 
build with x64 binaries and python on win10 x64.
It'd be great if you would advice me, how to build it as executable or a better 
way to use gdal2tiles in c# code (with no need to install python on target 
computer).
Thanks in advance for your reply!
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] adding a new method to OGRFieldDefn & gdalautotest

2018-11-07 Thread Even Rouault
On mercredi 7 novembre 2018 19:56:10 CET Alan Stewart wrote:
> Thanks, Even, I certainly didn't read the file header. After making all your
> suggested changes the compiler is erroring on
> swig/python/extensions/gdal_wrap.cpp, which I have not touched.
> 
> I notice it is using " Visual C++ for Python", version 9.0. Is that the
> correct compiler to use?

In theory, yes, but in practice you can force the use of your current MSVC 
version and it happens to work just fine, by setting the following env 
variables

set DISTUTILS_USE_SDK=1
set MSSdk=1

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] How to Use Gdal in Microsoft Visual Studio C++

2018-11-07 Thread Tamas Szekeres
Packages for GDAL have also been submitted to nuget.org  (GDAL, GDAL.Native
and GDAL.Plugins) which could be referenced in your Visual Studio project
easily.


Best regards,

Tamas

Ivan Lucena  ezt írta (időpont: 2018. nov. 7.,
Sze, 14:44):

> Hi Athin,
>
> Here it goes again:
>
> https://github.com/OSGeo/gdal/tree/master/gdal/swig/csharp/apps
>
> For more information on GDAL's C# API:
>
> https://trac.osgeo.org/gdal/wiki/GdalOgrInCsharp
>
> Regards,
>
> Ivan
>
> On 11/6/18, 8:34 PM, "gdal-dev on behalf of Athin" <
> gdal-dev-boun...@lists.osgeo.org on behalf of mohdfathin3...@gmail.com>
> wrote:
>
> Hai Ivan,
>
> May i know the function of the swig(c#) that you share to me?
>
> Thank you and best regards
>
>
>
> --
> Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html
> ___
> gdal-dev mailing list
> gdal-dev@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
>
> ___
> gdal-dev mailing list
> gdal-dev@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] gdal_merge.py not executing or found

2018-11-07 Thread Dmitry Baryshnikov

Hi Jeremy,

You can install QGIS with GDAL and python bindings using alternative 
installer by NextGIS (http://nextgis.com/nextgis-qgis/).


GDAL python bindings working, gdal_merge also included.

This is previous QGIS LTR release 2.18.25, but with fresh GDAL 2.3.2 and 
other libraries. This installation should not affect you current QGIS 
install, but I'm not sure about the opposite.


Best regards,
Dmitry

07.11.2018 17:55, Jeremy Salerno пишет:

Thanks for the help Even.

Is there a simple way to check if the python bindings are installed? I
installed GDAL through the QGIS installer. I tried running gdal_merge.py
after downloading the file from github and have had no success.

--

Jeremy A. Salerno

Weston Geophysical Corp.
181 Bedford St. Suite #1
Lexington, MA. 02420
jsale...@westongeo.com



*www.westongeophysical.com* 



On Wed, Nov 7, 2018 at 9:28 AM Even Rouault 
wrote:


Jeremy,


I cannot even find the gdal_merge.py file in
/Library/Frameworks/GDAL.framework/Versions/Current/Programs/ or anywhere
else in the gdal framework directory.

Should be reported to the creator of the package. I believe this is
William Kyngesburye (CC'ed) but I'm not completely sure.



I looked to see if I could install
the .py file separately but can't find any installation options on the

GDAL

website.

You can always download the script from

https://github.com/OSGeo/gdal/blob/master/gdal/swig/python/scripts/gdal_merge.py

(assuming that the GDAL Python bindings are installed)

Even

--
Spatialys - Geospatial professional services
http://www.spatialys.com




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


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

Re: [gdal-dev] gdal_merge.py not executing or found

2018-11-07 Thread Even Rouault
Jeremy,

> I cannot even find the gdal_merge.py file in
> /Library/Frameworks/GDAL.framework/Versions/Current/Programs/ or anywhere
> else in the gdal framework directory.

Should be reported to the creator of the package. I believe this is
William Kyngesburye (CC'ed) but I'm not completely sure.


> I looked to see if I could install
> the .py file separately but can't find any installation options on the GDAL
> website.

You can always download the script from
https://github.com/OSGeo/gdal/blob/master/gdal/swig/python/scripts/gdal_merge.py

(assuming that the GDAL Python bindings are installed)

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] How to Use Gdal in Microsoft Visual Studio C++

2018-11-07 Thread Ivan Lucena
Hi Athin,

Here it goes again:

https://github.com/OSGeo/gdal/tree/master/gdal/swig/csharp/apps

For more information on GDAL's C# API:

https://trac.osgeo.org/gdal/wiki/GdalOgrInCsharp

Regards,

Ivan

On 11/6/18, 8:34 PM, "gdal-dev on behalf of Athin" 
 wrote:

Hai Ivan,

May i know the function of the swig(c#) that you share to me? 

Thank you and best regards



--
Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

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

[gdal-dev] gdal_merge.py not executing or found

2018-11-07 Thread Jeremy Salerno
Hi All,

When I type gdal_merge.py into Terminal, the output is -bash:
gdal_merge.py: command not found.

I installed 3.4.0 Madeira [from this link] for macOS 10.13 (
https://www.qgis.org/en/site/forusers/download), which came with a gdal
installer.

I cannot even find the gdal_merge.py file in
/Library/Frameworks/GDAL.framework/Versions/Current/Programs/ or anywhere
else in the gdal framework directory. I looked to see if I could install
the .py file separately but can't find any installation options on the GDAL
website.


Thanks!

Jeremy

--

Jeremy A. Salerno

Weston Geophysical Corp.
181 Bedford St. Suite #1
Lexington, MA. 02420
jsale...@westongeo.com



*www.westongeophysical.com* 
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] The "Bertin 1953" projection

2018-11-07 Thread Even Rouault
> ```
> echo 12 55 0 0 | proj "+proj=bertin1953 +wktext"
> Rel. 6.0.0, March 1st, 2019
> :
> projection initialization failure
> cause: unknown projection id
> program abnormally terminated
> ```

'proj' syntax is without quoting. And you only need +wktext for GDAL, not for 
PROJ utilities

> 
> or using the following map
> ```
> file TM_WORLD_BORDERS_SIMPL-0.3.shp
> TM_WORLD_BORDERS_SIMPL-0.3.shp: ESRI Shapefile version 1000 length 224094
> type Polygon ```
> `ogr2ogr` segfaults:
> ```
> ogr2ogr -t_srs "+proj=bertin1953 +wktext"
> TM_WORLD_BORDERS_SIMPL-0.3_Bertin1953.shp TM_WORLD_BORDERS_SIMPL-0.3.shp
> ERROR 6: Failed to initialize PROJ.4 with `+proj=bertin1953 +wktext'.
> Segmentation fault
> ```
> 

It is likely you have an issue with GDAL linking also against your system 
PROJ. Has it been compiled --with-static-proj / --with-proj or not ? Check 
with ldd which libproj libgdal links against. You may need to adjust your 
LD_LIBRARY_PATH and potentially create a symbolic link from the new 
libproj.so. to the name of the old libproj.so.y so that GDAL sees one 
and one single libproj.

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev