# Can mapwingis use extern gdal?

**URL:** <https://mapwindow.discourse.group/t/can-mapwingis-use-extern-gdal/293>\
**Category:** MapWinGIS\
**Created:** [October 15, 2019, 12:56pm UTC](https://mapwindow.discourse.group/t/can-mapwingis-use-extern-gdal/293 "2019-10-15T12:56:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![geol](https://avatars.discourse-cdn.com/v4/letter/g/45deac/32.png) [@geol](https://mapwindow.discourse.group/u/geol)\
**Post date:** [October 15, 2019, 12:56pm UTC](https://mapwindow.discourse.group/t/can-mapwingis-use-extern-gdal/293/1 "2019-10-15T12:56:28Z")

</div>

I want to do some image analysis based on gdal in mapwingis,so how can I import gdal in mapwingis? thanks

---

<div class="post-metadata">

**Author:** ![pmeems](https://yyz2.discourse-cdn.com/free1/user_avatar/mapwindow.discourse.group/pmeems/32/9_2.png) [@pmeems](https://mapwindow.discourse.group/u/pmeems)\
**Post date:** [October 16, 2019, 1:23pm UTC](https://mapwindow.discourse.group/t/can-mapwingis-use-extern-gdal/293/2 "2019-10-16T13:23:56Z")

</div>

Which part of GDAL are you using?  
MapWinGIS maps several GDAL functions directly:  
[https://www.mapwindow.org/documentation/mapwingis4.9/class\_gdal\_utils.html](https://www.mapwindow.org/documentation/mapwingis4.9/class_gdal_utils.html)

---

<div class="post-metadata">

**Author:** ![geol](https://avatars.discourse-cdn.com/v4/letter/g/45deac/32.png) [@geol](https://mapwindow.discourse.group/u/geol)\
**Post date:** [October 16, 2019, 2:11pm UTC](https://mapwindow.discourse.group/t/can-mapwingis-use-extern-gdal/293/3 "2019-10-16T14:11:51Z")

</div>

thanks for your response. i want to do some change detection of built-up land based on high resolution remote sensing images,so i need to read raster data and do some analysis(such as SieveFilter,Polygonize,SimplifyPreserveTopology…) based on gdal

---

<div class="post-metadata">

**Author:** ![pmeems](https://yyz2.discourse-cdn.com/free1/user_avatar/mapwindow.discourse.group/pmeems/32/9_2.png) [@pmeems](https://mapwindow.discourse.group/u/pmeems)\
**Post date:** [October 18, 2019, 7:16am UTC](https://mapwindow.discourse.group/t/can-mapwingis-use-extern-gdal/293/4 "2019-10-18T07:16:29Z")

</div>

I’m not sure MapWindow implements all requested analysis.  
It does have a Grid object with several options: [https://www.mapwindow.org/documentation/mapwingis4.9/class\_grid.html](https://www.mapwindow.org/documentation/mapwingis4.9/class_grid.html)

SimplifyPreserveTopology can be done with [Sf.SimplifyLines()](https://www.mapwindow.org/documentation/mapwingis4.9/group __shapefile__ geoprocessing.html#ga4b28e5e67d38897df9cc535306147d48)

Polygonize can be done with [Utils.Polygonize()](https://www.mapwindow.org/documentation/mapwingis4.9/class_utils.html#a92b72af243b55a173cbaef50658dfbab)  
The [Utils class](https://www.mapwindow.org/documentation/mapwingis4.9/class_utils.html) has more nice functions.

MapWinGIS has no implementation of [gdal\_sieve.py](https://gdal.org/programs/gdal_sieve.html), but feel free to implement it and send a pull request.

---

<div class="post-metadata">

**Author:** ![geol](https://avatars.discourse-cdn.com/v4/letter/g/45deac/32.png) [@geol](https://mapwindow.discourse.group/u/geol)\
**Post date:** [October 18, 2019, 12:25pm UTC](https://mapwindow.discourse.group/t/can-mapwingis-use-extern-gdal/293/5 "2019-10-18T12:25:52Z")

</div>

Thank you for your detailed answer, which helped me solve the problem, and I’ll try it later.

---

<div class="post-metadata">

**Author:** ![pmeems](https://yyz2.discourse-cdn.com/free1/user_avatar/mapwindow.discourse.group/pmeems/32/9_2.png) [@pmeems](https://mapwindow.discourse.group/u/pmeems)\
**Post date:** [January 5, 2022, 3:08pm UTC](https://mapwindow.discourse.group/t/can-mapwingis-use-extern-gdal/293/6 "2022-01-05T15:08:53Z")

</div>


