# ORS tools "Avoid polygons"

**URL:** <https://ask.openrouteservice.org/t/ors-tools-avoid-polygons/2146>\
**Category:** directions\
**Created:** [September 30, 2020, 6:27pm UTC](https://ask.openrouteservice.org/t/ors-tools-avoid-polygons/2146 "2020-09-30T18:27:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mascoto](https://ask.openrouteservice.org/letter_avatar_proxy/v4/letter/m/7ab992/32.png) [@Mascoto](https://ask.openrouteservice.org/u/Mascoto)\
**Post date:** [September 30, 2020, 6:27pm UTC](https://ask.openrouteservice.org/t/ors-tools-avoid-polygons/2146/1 "2020-09-30T18:27:45Z")

</div>

Hi there!  
With Qgis 3.14.15  
ORS tools with selected “Avoid polygons” returns this message:  
_AttributeError: ‘QgsFeature’ object has no attribute 'transform._  
How can I solve that?  
Thanks a lot and regards

---

<div class="post-metadata">

**Author:** ![amandus](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/amandus/32/669_2.png) [@amandus](https://ask.openrouteservice.org/u/amandus)\
**Post date:** [October 2, 2020, 11:58am UTC](https://ask.openrouteservice.org/t/ors-tools-avoid-polygons/2146/2 "2020-10-02T11:58:29Z")

</div>

Hi @Mascoto,

This issue is known since about a month,  
see:

> <https://github.com/GIScience/orstools-qgis-plugin/issues/118>
>
> Hi,
> I am trying to use ORS Tools to avoid a polygon representing an area I want… to route around.
> 
> I keep getting the following error message:
> 
> AttributeError: 'QgsFeature' object has no attribute 'transform' 
> Traceback (most recent call last):
> File "C:/Users/User/AppData/Roaming/QGIS/QGIS3\\profiles\\default/python/plugins\\ORStools\\gui\\ORStoolsDialog.py", line 273, in run\_gui\_control
> params = directions.get\_parameters()
> File "C:/Users/User/AppData/Roaming/QGIS/QGIS3\\profiles\\default/python/plugins\\ORStools\\gui\\directions\_gui.py", line 107, in get\_parameters
> geom.transform(transformer)
> AttributeError: 'QgsFeature' object has no attribute 'transform'
> 
> I am new to QGIS and might be making a rookie mistake. (Am I creating the polygon layer correctly?)
> Any help/advise would be highly appreciated.
> 
> Regards,
> Jocha.

Sadly we currently don’t have the resources to look into it.  
Might be a couple of months until this is solved.

But it is open source after all, so there is always the possibility to set it up and debug locally yourself 😉

We are happy about every contribution.

Best regards

---

<div class="post-metadata">

**Author:** ![Nisbet99](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/nisbet99/32/1018_2.png) [@Nisbet99](https://ask.openrouteservice.org/u/Nisbet99)\
**Post date:** [April 24, 2021, 7:41pm UTC](https://ask.openrouteservice.org/t/ors-tools-avoid-polygons/2146/3 "2021-04-24T19:41:56Z")

</div>

Hi there,  
It appears this error is still occurring on my version of QGIS 3.18.0  
Has anyone working on this open source tool published a solution I could find? Think it is a bit beyond my capabilities to try and debug myself!  
Any guidance anyone could give would be greatly appreciated!

---

<div class="post-metadata">

**Author:** ![amandus](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/amandus/32/669_2.png) [@amandus](https://ask.openrouteservice.org/u/amandus)\
**Post date:** [April 26, 2021, 9:32am UTC](https://ask.openrouteservice.org/t/ors-tools-avoid-polygons/2146/4 "2021-04-26T09:32:59Z")

</div>

Hi @Nisbet99,

As stated above, there was nobody working on the tool for quite some time since one of our colleagues who was maintaining it left us last year.

We will take a look at this this week and keep you updated.

Best regards
