@Override public boolean createFrom(final IScope scope,final List<Map<String,Object>> inits,final Integer max,final Object input,final Arguments init,final CreateStatement statement){
  final GamaGridFile file=(GamaGridFile)input;
  final int num=max == null ? file.length(scope) : CmnFastMath.min(file.length(scope),max);
  for (int i=0; i < num; i++) {
    final IShape g=file.get(scope,i);
    final Map map=g.getOrCreateAttributes();
    map.put(IKeyword.SHAPE,g);
    statement.fillWithUserInit(scope,map);
    inits.add(map);
  }
  return true;
}

@ Override public boolean createFrom ( final IScope scope , final List < Map < String , Object > > inits , final Integer max , final Object input , final Arguments init , final CreateStatement statement ) { final GamaGridFile file = ( GamaGridFile ) input ; final int num = max == null ? file . length ( scope ) : CmnFastMath . min ( file . length ( scope ) , max ) ; for ( int i = 0 ; i < num ; i ++ ) { final IShape g = file . get ( scope , i ) ; final Map map = g . getOrCreateAttributes ( ) ; map . put ( IKeyword . SHAPE , g ) ; statement . fillWithUserInit ( scope , map ) ; inits . add ( map ) ; } return true ; }
method createfrom ( ) method used to read initial values and attributes from a grid file .
