GIS extension

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

GIS extension

yujeong
Hi everybody!

I want to make a program that turtle recognizes on the road (road.shp = GIS
data) and walks.

I have a problem with the program and can not resolve it.

Does anybody has an idea to help me?

Thanks to all  !
<NetLoGo 6.0.2>

extensions [ gis ]

breed [ residents resident ]

residents-own [  ]

patches-own [ ]

globals [
  ucn-roads-dataset
]

to setup
 clear-all
reset-tick
set ucn-roads-dataset gis:load-dataset "Road.shp"
 gis:set-world-envelope (gis:envelope-union-of (gis:envelope-of
ucn-roads-dataset))

foreach gis:feature-list-of ucn-roads-dataset    ; Error! ->Nothing named ?
has been defined
   [ ask patches gis:intersecting ?
     [ set road-name gis:property-value ? "NAME" ] ]

 display-roads

end

to display-roads
    gis:set-drawing-color gray
    gis:draw ucn-roads-dataset 1
end