Il 28 gennaio 2013 21:37, Andrea Zedda <andreazedd...@gmail.com> ha scritto:
> Ciao a tutti,
> stavo armeggiando con quel bellissimo strumento che è hoverpass-turbo
> (grazie ancora simone).
> ho estratto un bel geojson proprio su i vineyard che sto mappando questi
> giorni.
> l'output è grossomodo questo:
>
>
>       {
>         "type": "Feature",
>         "properties": {
>           "type": "way",
>           "id": "203097022",
>           "tags": {
>             "landuse": "vineyard"
>           },
>           "meta": {}
>         },
>         "geometry": {
>           "type": "Polygon",
>           "coordinates": [
>             [
>               [
>                 9.18729,
>                 39.3463582
>               ],
>               [
>                 9.1875422,
>                 39.3464785
>               ],
>               [
>                 9.1879088,
>                 39.3461021
>               ],
>               [
>                 9.1876567,
>                 39.3459942
>               ],
>               [
>                 9.18729,
>                 39.3463582
>               ]
>             ]
>           ]
>
>
> mi chiedevo qual'è il metodo migliore per calcolare l'area del poiligono a
> partire da quelle coordinate.

se devi fare una cosa ricursiva lo fare con OGR e python, di seguito
qualche esempio (la funzione che devi usare è GetArea)

http://gis.stackexchange.com/questions/34505/how-to-programatically-populate-a-shapefile-field-with-polygon-areas-in-ogr
http://gis.stackexchange.com/questions/43436/why-does-this-simple-python-ogr-code-create-an-empty-polygon

> Grazie :)
>

-- 
ciao
Luca

http://gis.cri.fmach.it/delucchi/
www.lucadelu.org

_______________________________________________
Talk-it mailing list
Talk-it@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-it

Reply via email to