@@ -95,7 +95,7 @@ def densify_geometry(line, step, keep_internal_nodes=True):
9595# function to set the active and inactive model area
9696def set_idomain (grid , boundary ):
9797 ix = GridIntersect (grid , rtree = True )
98- result = ix .intersect (Polygon (boundary ))
98+ result = ix .intersect (Polygon (boundary ), geo_dataframe = False )
9999 idx = list (result .cellids )
100100 idx = np .array (idx , dtype = int )
101101 nr = idx .shape [0 ]
@@ -244,7 +244,7 @@ def set_idomain(grid, boundary):
244244ixs = flopy .utils .GridIntersect (struct_grid )
245245cellids = []
246246for sg in sgs :
247- v = ixs .intersect (LineString (sg ), sort_by_cellid = True )
247+ v = ixs .intersect (LineString (sg ), sort_by_cellid = True , geo_dataframe = False )
248248 cellids += v ["cellids" ].tolist ()
249249intersection_sg = np .zeros (struct_grid .shape [1 :])
250250for loc in cellids :
@@ -318,7 +318,7 @@ def set_idomain(grid, boundary):
318318ixs = flopy .utils .GridIntersect (struct_vrc_grid )
319319cellids = []
320320for sg in sgs :
321- v = ixs .intersect (LineString (sg ), sort_by_cellid = True )
321+ v = ixs .intersect (LineString (sg ), sort_by_cellid = True , geo_dataframe = False )
322322 cellids += v ["cellids" ].tolist ()
323323intersection_sg_vrc = np .zeros (struct_vrc_grid .shape [1 :])
324324for loc in cellids :
@@ -422,7 +422,7 @@ def set_idomain(grid, boundary):
422422ixs = flopy .utils .GridIntersect (struct_gridp )
423423cellids = []
424424for sg in sgs :
425- v = ixs .intersect (LineString (sg ), sort_by_cellid = True )
425+ v = ixs .intersect (LineString (sg ), sort_by_cellid = True , geo_dataframe = False )
426426 cellids += v ["cellids" ].tolist ()
427427intersection_ngp = np .zeros (struct_gridp .shape [1 :])
428428for loc in cellids :
@@ -432,7 +432,7 @@ def set_idomain(grid, boundary):
432432ixs = flopy .utils .GridIntersect (struct_gridc )
433433cellids = []
434434for sg in sgs :
435- v = ixs .intersect (LineString (sg ), sort_by_cellid = True )
435+ v = ixs .intersect (LineString (sg ), sort_by_cellid = True , geo_dataframe = False )
436436 cellids += v ["cellids" ].tolist ()
437437intersection_ngc = np .zeros (struct_gridc .shape [1 :])
438438for loc in cellids :
@@ -518,7 +518,7 @@ def set_idomain(grid, boundary):
518518ixs = flopy .utils .GridIntersect (quadtree_grid )
519519cellids = []
520520for sg in sgs :
521- v = ixs .intersect (LineString (sg ), sort_by_cellid = True )
521+ v = ixs .intersect (LineString (sg ), sort_by_cellid = True , geo_dataframe = False )
522522 cellids += v ["cellids" ].tolist ()
523523intersection_qg = np .zeros (quadtree_grid .shape [1 :])
524524for loc in cellids :
@@ -590,6 +590,7 @@ def set_idomain(grid, boundary):
590590 LineString (sg ),
591591 return_all_intersections = True ,
592592 sort_by_cellid = True ,
593+ geo_dataframe = False ,
593594 )
594595 cellids += v ["cellids" ].tolist ()
595596intersection_tg = np .zeros (triangular_grid .shape [1 :])
@@ -639,6 +640,7 @@ def set_idomain(grid, boundary):
639640 LineString (sg ),
640641 return_all_intersections = True ,
641642 sort_by_cellid = True ,
643+ geo_dataframe = False ,
642644 )
643645 cellids += v ["cellids" ].tolist ()
644646intersection_vg = np .zeros (voronoi_grid .shape [1 :])
0 commit comments