Re: [gdal-dev] Algorithm to clip the inner loop of a polygon

2020-04-15 Thread Chao YUE
ng points and when adding test for self intersections / > collinearity against existing segments. The method returns the loops while > points are added. The code is not in a public repo but I'll add the method > below. It needs some basic methods and function which should be simple to &g

[gdal-dev] Algorithm to clip the inner loop of a polygon

2020-04-14 Thread Chao YUE
Engineering, Vol. 30, 1163-1179. [image: InnerLoop.png] -- *** Chao YUE(岳超) 西北农林科技大学水土保持研究所 研究员 黄土高原土壤侵蚀与旱地农业国家重点实验室 State Key Laboratory of Soil Erosion and Dryland Farming on the Loess Plateau Institute of Soil and Water

Re: [gdal-dev] extract information from polygon shapefile based on raster grid?

2013-04-04 Thread Chao YUE
dindex from the coordinates and put this into the index >> field; >> bring the table e.g. into excel; >> do a pivot table for the attributes (count or sum). >> If necessary, add the centerpoint coordinates to the resulting table; >> convert the table into a new point

Re: [gdal-dev] copy (duplicate) feature with python ogr?

2013-03-30 Thread Chao YUE
Hi Even, this solves my probelm, the example in the script is quite useful. Thanks. chao On Sat, Mar 30, 2013 at 12:41 PM, Even Rouault wrote: > Le samedi 30 mars 2013 12:22:25, Chao YUE a écrit : > > Dear all, > > > > I am trying to create a new polygon shapefile a

[gdal-dev] copy (duplicate) feature with python ogr?

2013-03-30 Thread Chao YUE
408: >, 409: >, 411: >, 442: >, 443: >} -- ******* Chao YUE Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) UMR 1572 CEA-CNRS-UVSQ Batiment 712 - Pe 119 91191 G

Re: [gdal-dev] dear god!!

2013-03-29 Thread Chao YUE
___ > gdal-dev mailing list > gdal-dev@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/gdal-dev > -- ******* Chao YUE Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) UMR

Re: [gdal-dev] more than one linearring object in the geometry but with all linerring objects having zero points?

2013-03-29 Thread Chao YUE
By the way, if you just print the geometry in python you should get > the "Well Known Text" representation which can be explanatory. > > Best regards, > Frank > > > > On Thu, Mar 28, 2013 at 9:58 AM, Chao YUE wrote: > > Dear all, > > > > I try to

[gdal-dev] more than one linearring object in the geometry but with all linerring objects having zero points?

2013-03-28 Thread Chao YUE
= geo.GetGeometryRef(0) ring.GetPointCount() Out[29]: 0 In [31]: ring = geo.GetGeometryRef(1) ring.GetPointCount() Out[31]: 0 In [34]: feature.items()['SIZE_HA'] Out[34]: 13041.187 Chao -- ******

[gdal-dev] extract information from polygon shapefile based on raster grid?

2013-03-27 Thread Chao YUE
Chao -- *** Chao YUE Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) UMR 1572 CEA-CNRS-UVSQ Batiment 712 - Pe 119 91191 GIF Sur YVETTE Cedex Tel: (33) 01 69 08 29 02; Fax:01.6

Re: [gdal-dev] import error on fedora?

2013-03-26 Thread Chao YUE
luckily, it solves my problem! thanks! Chao On Tue, Mar 26, 2013 at 6:26 PM, Kyle Shannon wrote: > Not a fedora guy, but you probably need the gdal-python package, try > installing python-gdal or gdal-python using yum. > > kss > > On Tue, Mar 26, 2013 at 11:18 AM, Chao YU

[gdal-dev] import error on fedora?

2013-03-26 Thread Chao YUE
so what's going on here? thanks for any response. best regards, chao -- ******* Chao YUE Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) UMR 1572 CEA-CNRS-UVSQ Batiment 712 - Pe 119 91191 GIF

[gdal-dev] how to convert shapefile to netcdf?

2012-05-28 Thread Chao YUE
Chao -- *** Chao YUE Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) UMR 1572 CEA-CNRS-UVSQ Batiment 712 - Pe 119 91191 GIF Sur YVETTE Cedex Tel: (33) 01 69 08 29 02; Fax:01.6

Re: [gdal-dev] __main__.gdal_config_error when trying to install gdal

2012-05-27 Thread Chao YUE
say I can use directly sudo apt-get install gdal but it reports E: Unable to locate package gdal, I cannot find the package in my Ubuntu software center either... thanks, Chao 2012/5/27 Even Rouault > Selon Chao YUE : > > > Thanks Etienne, then I guess I will have the problem of

Re: [gdal-dev] __main__.gdal_config_error when trying to install gdal

2012-05-27 Thread Chao YUE
g/gdal/wiki/BuildHints > > Etienne > > On Sun, May 27, 2012 at 5:39 PM, Chao YUE wrote: > > Finally I managed to install gdal 1.6.3 using a debien package (and I > have > > to install libgdal1-1.6.0 before ). But I read from > > http://trac.osgeo.org/gdal/w

Re: [gdal-dev] __main__.gdal_config_error when trying to install gdal

2012-05-27 Thread Chao YUE
Finally I managed to install gdal 1.6.3 using a debien package (and I have to install libgdal1-1.6.0 before ). But I read from http://trac.osgeo.org/gdal/wiki/GdalOgrInPython saying that from version 1.7.0, python 3 is needed. thanks et cheers, Chao 2012/5/27 Chao YUE > Dear all, > >

[gdal-dev] __main__.gdal_config_error when trying to install gdal

2012-05-27 Thread Chao YUE
n finalize_options self.gdaldir = self.get_gdal_config('prefix') File "setup.py", line 144, in get_gdal_config return fetch_config(option) File "setup.py", line 97, in fetch_config raise gdal_config_error, e""") File "", line 4,