# Tryton-gis model

**URL:** https://discuss.tryton.org/t/tryton-gis-model/5916
**Category:** Developer
**Tags:** gis
**Created:** [February 10, 2023, 10:16am UTC](https://discuss.tryton.org/t/tryton-gis-model/5916 "2023-02-10T10:16:41Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![calculin](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/c/dfb087/32.png) [@calculin](https://discuss.tryton.org/u/calculin)
#### Post date: [February 10, 2023, 10:16am UTC](https://discuss.tryton.org/t/tryton-gis-model/5916/1 "2023-02-10T10:16:41Z")

</div>

Hi I’m new to tryton and i want to use tryto gis, i have installed tryton-gis and have enabled postgis in the database y my tryton conf file is not the problem ,but i haven’t founded any documentation so, i’m asking for help in any form (documentation or an example of a model).

 ![Captura desde 2023-02-10 10-08-00](https://discuss-cdn.tryton.org/uploads/default/original/2X/c/cebc148cd242b25d0853d4ab1eb1c044153d041c.png)

---

<div class="post-metadata">

### Author: ![maxx](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/maxx/32/2320_2.png) [@maxx](https://discuss.tryton.org/u/maxx)
#### Post date: [February 10, 2023, 10:48am UTC](https://discuss.tryton.org/t/tryton-gis-model/5916/2 "2023-02-10T10:48:58Z")

</div>

> [@How to use Tryton GIS](https://discuss.tryton.org/t/how-to-use-tryton-gis/1663):
>
> Hi. I would like to know how trytond\_gis module works or how to use it. I need to compile from the source code Thanks in advance!

There’s a small example in the tests:

[trytond-gis/trytond\_gis/tests/gis.py](https://foss.heptapod.net/tryton/tryton/-/blob/branch/default/trytond-gis/trytond_gis/tests/gis.py)

---

<div class="post-metadata">

### Author: ![calculin](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/c/dfb087/32.png) [@calculin](https://discuss.tryton.org/u/calculin)
#### Post date: [February 10, 2023, 10:59am UTC](https://discuss.tryton.org/t/tryton-gis-model/5916/3 "2023-02-10T10:59:34Z")

</div>

thanks you, this helps me a lot if there is another problem related to this I’ll ask againg

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [February 10, 2023, 11:41am UTC](https://discuss.tryton.org/t/tryton-gis-model/5916/4 "2023-02-10T11:41:29Z")

</div>

You are missing this import:

```auto
from trytond_gis import fields as geo_fields

```

---

<div class="post-metadata">

### Author: ![calculin](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/c/dfb087/32.png) [@calculin](https://discuss.tryton.org/u/calculin)
#### Post date: [February 10, 2023, 12:12pm UTC](https://discuss.tryton.org/t/tryton-gis-model/5916/5 "2023-02-10T12:12:08Z")

</div>

Hi thanks, but now i’m getting this problem:

AttributeError: ‘Point’ object has no attribute ‘geometry\_type’  
Fault: ‘Point’ object has no attribute ‘geometry\_type’

---

<div class="post-metadata">

### Author: ![system](https://discuss-cdn.tryton.org/uploads/default/original/1X/c6f8ec0a40525cdcd50058c734283450a4b3d38b.png) [@system](https://discuss.tryton.org/u/system)
#### Post date: [March 12, 2023, 12:12pm UTC](https://discuss.tryton.org/t/tryton-gis-model/5916/6 "2023-03-12T12:12:28Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
