[{"data":1,"prerenderedAt":355},["ShallowReactive",2],{"/gis/create-turtles-inside-polygon":3,"/gis/create-turtles-inside-polygon-surround":344},{"id":4,"title":5,"body":6,"description":310,"extension":311,"meta":312,"navigation":330,"path":340,"seo":341,"stem":342,"__hash__":343},"content/gis/create-turtles-inside-polygon.md","GIS Extension Dictionary: create-turtles-inside-polygon",{"type":7,"value":8,"toc":299},"minimark",[9],[10,11,15,16,15,26,57,79,101,104,124],"div",{"className":12,"id":14},[13],"dict_entry","create-turtles-inside-polygon","\n  ",[17,18,20,21,15],"h3",{"id":19},"giscreate-turtles-inside-polygon","\n    ",[22,23,25],"a",{"href":24},"#create-turtles-inside-polygon","gis:create-turtles-inside-polygon",[27,28,32],"h4",{"id":29,"className":30},"giscreate-turtles-inside-polygon-vector-feature-breed-n-commands",[31],"section-heading",[22,33,20,37,15],{"className":34,"href":36},[35],"section-anchor","#----giscreate-turtles-inside-polygon-vector-feature-breed-n-commands--",[38,39,42,43,47,48,47,51,47,54],"span",{"className":40},[41],"prim_example","gis:create-turtles-inside-polygon ",[44,45,46],"i",{},"vector-feature"," ",[44,49,50],{},"breed",[44,52,53],{},"n",[44,55,56],{},"commands",[58,59,60,61,65,66,78],"p",{},"Randomly create “n” turtles of the given breed within\nthe given VectorFeature and for each agent variable\n(as defined in ",[62,63,64],"code",{},"\u003Cbreeds>-own","), if there is a property with the same\nname in the dataset, set that variable’s value to be the value of\nthat property. Finally, execute any commands in the optional\ncommand block. To use generic turtles as the chosen breed, simply\nsupply ",[67,68,70],"primitive",{"displayText":69,"permalink":69},"turtles",[22,71,69],{"className":72,"dataDisplayText":69,"href":74,"rel":75,"target":77,"title":69},[73],"netlogo-wiki-link","/dictionary#turtles",[76],"noopener","_self"," as the breed argument.",[58,80,81,82,91,92,100],{},"Property names and variable names are compared case-insensitively.\nKeep in mind that when importing shapefiles, property names may be\nmodified for backwards compatibility reasons. The names given by\n",[67,83,86],{"displayText":84,"permalink":85},"gis:property-names","gis",[22,87,84],{"className":88,"dataDisplayText":84,"href":89,"rel":90,"target":77,"title":84},[73],"/gis#property-names",[76]," can always be trusted as authoritative. For\nmanually specifying a mapping between property names and variable\nnames, see the ",[67,93,95],{"displayText":94,"permalink":85},"gis:create-turtles-inside-polygon-manual",[22,96,94],{"className":97,"dataDisplayText":94,"href":98,"rel":99,"target":77,"title":94},[73],"/gis#create-turtles-inside-polygon-manual",[76]," primitive.",[58,102,103],{},"Built-in variables such as “label” and “heading” are supported.\nNetLogo color numeric representations are supported for setting\n“color” and “label-color”, as well as the 15 default color string\nrepresentations (“red”, “blue”, “black”, etc.).",[58,105,106,107,115,116,123],{},"As an example: say you had a VectorDataset of polygons representing\ndifferent zip codes within a state and you want to create 100\ndifferent turtles within each zip code and have each turtle\nknow which zip code it originated in. The VectorDataset\nhas a field named “zip”, so you should add a variable\nnamed “zip” to the turtles with ",[67,108,110],{"displayText":109,"permalink":109},"turtles-own",[22,111,109],{"className":112,"dataDisplayText":109,"href":113,"rel":114,"target":77,"title":109},[73],"/dictionary#turtles-own",[76],". Then,\nloop through each VectorFeature in the VectorDataset and use\nthe ",[67,117,118],{"displayText":25,"permalink":85},[22,119,25],{"className":120,"dataDisplayText":25,"href":121,"rel":122,"target":77,"title":25},[73],"/gis#create-turtles-inside-polygon",[76]," primitive to create 100\nnew turtles.",[125,126,127],"pre",{},[62,128,129,135,136,140,141,135,148,140,152,135,157,140,161,163,47,169,173,175,176,47,181,47,184,47,188,193,175,195,47,199,47,203,206,175,208,47,212,217,175,219,47,223,47,226,231,233,175,235,47,239,47,243,246,247,47,251,256,258,259,47,263,47,266,47,269,135,273,275,276,47,279,47,283,287,289,290,292,293],{},[38,130,134],{"className":131},[132,133],"token","keyword","extensions"," [",[38,137,85],{"className":138},[132,139],"variable","]",[38,142,144,147],{"className":143},[132,133],[145,146],"br",{},"globals",[38,149,151],{"className":150},[132,139],"dataset",[38,153,155,109],{"className":154},[132,133],[145,156],{},[38,158,160],{"className":159},[132,139],"zip",[145,162],{},[38,164,166,168],{"className":165},[132,133],[145,167],{},"to",[38,170,172],{"className":171},[132,139],"setup",[145,174],{},"  ",[38,177,180],{"className":178},[132,179],"command","set",[38,182,151],{"className":183},[132,139],[38,185,187],{"className":186},[132,139],"gis:load-dataset",[38,189,192],{"className":190},[132,191],"string","\"dataset.shp\"",[145,194],{},[38,196,198],{"className":197},[132,139],"gis:set-world-envelope",[38,200,202],{"className":201},[132,139],"envelope-of",[38,204,151],{"className":205},[132,139],[145,207],{},[38,209,211],{"className":210},[132,139],"gis:set-drawing-color",[38,213,216],{"className":214},[132,215],"constant","red",[145,218],{},[38,220,222],{"className":221},[132,139],"gis:draw",[38,224,151],{"className":225},[132,139],[38,227,230],{"className":228},[132,229],"number","1",[145,232],{},[145,234],{},[38,236,238],{"className":237},[132,179],"foreach",[38,240,242],{"className":241},[132,139],"gis:feature-list-of",[38,244,151],{"className":245},[132,139]," [ ",[38,248,250],{"className":249},[132,139],"this-vector-feature",[38,252,255],{"className":253},[132,254],"reporter","->",[145,257],{},"    ",[38,260,262],{"className":261},[132,139],"gis:create-turtles-inside",[38,264,250],{"className":265},[132,139],[38,267,69],{"className":268},[132,254],[38,270,272],{"className":271},[132,229],"100",[145,274],{},"      ",[38,277,180],{"className":278},[132,179],[38,280,282],{"className":281},[132,254],"shape",[38,284,286],{"className":285},[132,191],"\"person\"",[145,288],{},"    ]",[145,291],{},"  ]",[38,294,296,298],{"className":295},[132,133],[145,297],{},"end",{"title":300,"searchDepth":301,"depth":302,"links":303},"",5,3,[304],{"id":19,"depth":302,"text":305,"children":306},"\n    gis:create-turtles-inside-polygon\n  ",[307],{"id":29,"depth":308,"text":309},4,"\n    gis:create-turtles-inside-polygon vector-feature breed n commands\n  ","Documentation for the create-turtles-inside-polygon primitive.","md",{"source":313,"metadataOutputPath":314,"projectConfig":315,"language":323,"inheritFrom":331,"output":330,"version":316,"layout":332,"dictionaryDisplayName":333,"dictionaryHomeDirectory":334,"indexFileURI":335,"currentItemId":14,"currentItemLabel":25,"primRoot":85,"netlogoUrl":336,"icon":337,"extensionName":338,"assetsRoot":318},"../../external/extensions/gis/gis/create-turtles-inside-polygon.md","content/gis/create-turtles-inside-polygon.metadata.yaml",{"version":316,"projectRoot":317,"scanRoot":318,"outputRoot":319,"defaults":320,"engine":326,"partials":327,"dedupeIdenticalDiskWrites":330},"7.0.4",".","/home/runner/work/Helio/Helio/external/extensions/gis","content",{"inheritFrom":321,"language":323,"output":324,"extension":311,"title":325,"version":316},[322],0,"en",false,"NetLogo User Manual","mustache",{"directoryPaths":328,"extensions":329},[317],[326,311],true,[322],"catalog","GIS Extension Dictionary","/gis.html","/_index/extensions/gis.txt","http://ccl.northwestern.edu/netlogo/docs/","i-lucide-map-pin",{"shortName":85,"fullName":339},"GIS","/gis/create-turtles-inside-polygon",{"title":5,"description":310},"gis/create-turtles-inside-polygon","inYCotk6v0a9U3g0rbzoyK0Skd6D86HL77SILkYESz4",[345,350],{"title":346,"path":347,"stem":348,"description":349},"GIS Extension Dictionary: create-turtles-from-points-manual","/gis/create-turtles-from-points-manual","gis/create-turtles-from-points-manual","Documentation for the create-turtles-from-points-manual primitive.",{"title":351,"path":352,"stem":353,"description":354},"GIS Extension Dictionary: create-turtles-inside-polygon-manual","/gis/create-turtles-inside-polygon-manual","gis/create-turtles-inside-polygon-manual","Documentation for the create-turtles-inside-polygon-manual primitive.",1777657866115]