NetLogo GIS: dealing with large shapefile

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

NetLogo GIS: dealing with large shapefile

kevin.morelle-2

 
 

 

 

 
 
 Hi,

 

 I'm developing a NetLogo model using the GIS extension to import a road network shapefile. The model works fine when I work on a small area of about 5x5 km. However I would like to allow potential users of the model to determine themselve their area/extent of interest. For this aim, I have to load the complete road shapefile which is very large (> 2GB) since it covers a whole country area. My idea was to import this shapefile and to use user-defined parameters (using "input" buttons) to set the envelop of the world. Of course I'm facing "GC overhead limit" issue when importing the large shapefile... I was wondering whether anybody would have a suggestion to deal with this question. I thought about the R extension to send a command to R for cutting the area of interest and sending the subarea back to NetLogo, but I'm not sure whether the extension is really made for this.
 

 Thanks for your help,
 

 Kevin
 

Reply | Threaded
Open this post in threaded view
|

Re: NetLogo GIS: dealing with large shapefile

Bahman L.
 Dear Kevin,
It is a great question or even a scientific question when it comes to the scale of simulation. It is my problem either as I am dealing with metro evacuation simulation at the real scale.  Obviously, it is better to share your codes here to see what is the exact issue there so that professions can guide you through. To the best of my knowledge, I don't think that creating subareas ( I am not sure about the feasibility) would solve your problem.  As you may already know, roads are network and these networks can be represented in a graph system consists of vertices and edges. therefore, Network Extension seems appropriate for your purpose. Instead of importing a large amount of data through shapefiles, it is better to import only the variable of your interest such as length of roads, the allowable speed of roads, congestion condition, and so on be creating a network in NetLogo. 
Hope you will find it helpful. 
Best,Bahman    On Saturday, December 23, 2017, 7:48:59 AM GMT+3:30, [hidden email] [netlogo-users] <[hidden email]> wrote:

  






  Hi,

I'm developing a NetLogo model using the GIS extension to import a road network shapefile. The model works fine when I work on a small area of about 5x5 km. However I would like to allow potential users of the model to determine themselve their area/extent of interest. For this aim, I have to load the complete road shapefile which is very large (> 2GB) since it covers a whole country area. My idea was to import this shapefile and to use user-defined parameters (using "input" buttons) to set the envelop of the world. Of course I'm facing "GC overhead limit" issue when importing the large shapefile...
I was wondering whether anybody would have a suggestion to deal with this question. I thought about the R extension to send a command to R for cutting the area of interest and sending the subarea back to NetLogo, but I'm not sure whether the extension is really made for this.




Thanks for your help,




Kevin
   #yiv2994607605 #yiv2994607605 -- #yiv2994607605ygrp-mkp {border:1px solid #d8d8d8;font-family:Arial;margin:10px 0;padding:0 10px;}#yiv2994607605 #yiv2994607605ygrp-mkp hr {border:1px solid #d8d8d8;}#yiv2994607605 #yiv2994607605ygrp-mkp #yiv2994607605hd {color:#628c2a;font-size:85%;font-weight:700;line-height:122%;margin:10px 0;}#yiv2994607605 #yiv2994607605ygrp-mkp #yiv2994607605ads {margin-bottom:10px;}#yiv2994607605 #yiv2994607605ygrp-mkp .yiv2994607605ad {padding:0 0;}#yiv2994607605 #yiv2994607605ygrp-mkp .yiv2994607605ad p {margin:0;}#yiv2994607605 #yiv2994607605ygrp-mkp .yiv2994607605ad a {color:#0000ff;text-decoration:none;}#yiv2994607605 #yiv2994607605ygrp-sponsor #yiv2994607605ygrp-lc {font-family:Arial;}#yiv2994607605 #yiv2994607605ygrp-sponsor #yiv2994607605ygrp-lc #yiv2994607605hd {margin:10px 0px;font-weight:700;font-size:78%;line-height:122%;}#yiv2994607605 #yiv2994607605ygrp-sponsor #yiv2994607605ygrp-lc .yiv2994607605ad {margin-bottom:10px;padding:0 0;}#yiv2994607605 #yiv2994607605actions {font-family:Verdana;font-size:11px;padding:10px 0;}#yiv2994607605 #yiv2994607605activity {background-color:#e0ecee;float:left;font-family:Verdana;font-size:10px;padding:10px;}#yiv2994607605 #yiv2994607605activity span {font-weight:700;}#yiv2994607605 #yiv2994607605activity span:first-child {text-transform:uppercase;}#yiv2994607605 #yiv2994607605activity span a {color:#5085b6;text-decoration:none;}#yiv2994607605 #yiv2994607605activity span span {color:#ff7900;}#yiv2994607605 #yiv2994607605activity span .yiv2994607605underline {text-decoration:underline;}#yiv2994607605 .yiv2994607605attach {clear:both;display:table;font-family:Arial;font-size:12px;padding:10px 0;width:400px;}#yiv2994607605 .yiv2994607605attach div a {text-decoration:none;}#yiv2994607605 .yiv2994607605attach img {border:none;padding-right:5px;}#yiv2994607605 .yiv2994607605attach label {display:block;margin-bottom:5px;}#yiv2994607605 .yiv2994607605attach label a {text-decoration:none;}#yiv2994607605 blockquote {margin:0 0 0 4px;}#yiv2994607605 .yiv2994607605bold {font-family:Arial;font-size:13px;font-weight:700;}#yiv2994607605 .yiv2994607605bold a {text-decoration:none;}#yiv2994607605 dd.yiv2994607605last p a {font-family:Verdana;font-weight:700;}#yiv2994607605 dd.yiv2994607605last p span {margin-right:10px;font-family:Verdana;font-weight:700;}#yiv2994607605 dd.yiv2994607605last p span.yiv2994607605yshortcuts {margin-right:0;}#yiv2994607605 div.yiv2994607605attach-table div div a {text-decoration:none;}#yiv2994607605 div.yiv2994607605attach-table {width:400px;}#yiv2994607605 div.yiv2994607605file-title a, #yiv2994607605 div.yiv2994607605file-title a:active, #yiv2994607605 div.yiv2994607605file-title a:hover, #yiv2994607605 div.yiv2994607605file-title a:visited {text-decoration:none;}#yiv2994607605 div.yiv2994607605photo-title a, #yiv2994607605 div.yiv2994607605photo-title a:active, #yiv2994607605 div.yiv2994607605photo-title a:hover, #yiv2994607605 div.yiv2994607605photo-title a:visited {text-decoration:none;}#yiv2994607605 div#yiv2994607605ygrp-mlmsg #yiv2994607605ygrp-msg p a span.yiv2994607605yshortcuts {font-family:Verdana;font-size:10px;font-weight:normal;}#yiv2994607605 .yiv2994607605green {color:#628c2a;}#yiv2994607605 .yiv2994607605MsoNormal {margin:0 0 0 0;}#yiv2994607605 o {font-size:0;}#yiv2994607605 #yiv2994607605photos div {float:left;width:72px;}#yiv2994607605 #yiv2994607605photos div div {border:1px solid #666666;min-height:62px;overflow:hidden;width:62px;}#yiv2994607605 #yiv2994607605photos div label {color:#666666;font-size:10px;overflow:hidden;text-align:center;white-space:nowrap;width:64px;}#yiv2994607605 #yiv2994607605reco-category {font-size:77%;}#yiv2994607605 #yiv2994607605reco-desc {font-size:77%;}#yiv2994607605 .yiv2994607605replbq {margin:4px;}#yiv2994607605 #yiv2994607605ygrp-actbar div a:first-child {margin-right:2px;padding-right:5px;}#yiv2994607605 #yiv2994607605ygrp-mlmsg {font-size:13px;font-family:Arial, helvetica, clean, sans-serif;}#yiv2994607605 #yiv2994607605ygrp-mlmsg table {font-size:inherit;font:100%;}#yiv2994607605 #yiv2994607605ygrp-mlmsg select, #yiv2994607605 input, #yiv2994607605 textarea {font:99% Arial, Helvetica, clean, sans-serif;}#yiv2994607605 #yiv2994607605ygrp-mlmsg pre, #yiv2994607605 code {font:115% monospace;}#yiv2994607605 #yiv2994607605ygrp-mlmsg * {line-height:1.22em;}#yiv2994607605 #yiv2994607605ygrp-mlmsg #yiv2994607605logo {padding-bottom:10px;}#yiv2994607605 #yiv2994607605ygrp-msg p a {font-family:Verdana;}#yiv2994607605 #yiv2994607605ygrp-msg p#yiv2994607605attach-count span {color:#1E66AE;font-weight:700;}#yiv2994607605 #yiv2994607605ygrp-reco #yiv2994607605reco-head {color:#ff7900;font-weight:700;}#yiv2994607605 #yiv2994607605ygrp-reco {margin-bottom:20px;padding:0px;}#yiv2994607605 #yiv2994607605ygrp-sponsor #yiv2994607605ov li a {font-size:130%;text-decoration:none;}#yiv2994607605 #yiv2994607605ygrp-sponsor #yiv2994607605ov li {font-size:77%;list-style-type:square;padding:6px 0;}#yiv2994607605 #yiv2994607605ygrp-sponsor #yiv2994607605ov ul {margin:0;padding:0 0 0 8px;}#yiv2994607605 #yiv2994607605ygrp-text {font-family:Georgia;}#yiv2994607605 #yiv2994607605ygrp-text p {margin:0 0 1em 0;}#yiv2994607605 #yiv2994607605ygrp-text tt {font-size:120%;}#yiv2994607605 #yiv2994607605ygrp-vital ul li:last-child {border-right:none !important;}#yiv2994607605