Skip to content

Import updates to fix tool loading #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions arcpro_npg/npg/npg/npg_bool_hlp.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,9 @@
import sys
import numpy as np
from numpy.lib.stride_tricks import sliding_window_view as swv
import npg
from npg.npGeo import roll_arrays
from npg_geom_hlp import sort_segment_pairs
from npg.npg_plots import plot_polygons, plot_2d # noqa
from .npGeo import roll_arrays
from .npg_geom_hlp import sort_segment_pairs
from .npg_plots import plot_polygons, plot_2d # noqa

ft = {"bool": lambda x: repr(x.astype(np.int32)),
"float_kind": '{: 6.2f}'.format}
Expand Down
4 changes: 2 additions & 2 deletions arcpro_npg/npg/tbx_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
from npg.npg_arc_npg import (get_SR, get_shape_K, fc_to_Geo, Geo_to_fc,
Geo_to_arc_shapes, fc_data)
from npg.npg_create import circle, hex_flat, hex_pointy, rectangle, triangle
from npg.npg_overlay import dissolve, merge_
from npg.npg_bool_ops import merge_, union_adj # Changed from npg_overlay

from scipy.spatial import Voronoi # Delaunay

Expand Down Expand Up @@ -697,7 +697,7 @@ def dissolve_boundaries(in_fc, gdb, name):
g, oids, shp_kind, k, m, SR = _in_(in_fc, info)
out_kind = shp_kind
x, y = g.LL
g0 = dissolve(g, asGeo=True)
g0 = union_adj(g, asGeo=True)
tweet("g0")
# g0 = arrays_to_Geo(g0, kind=2, info="extent")
g0 = g0.translate(dx=x, dy=y)
Expand Down