Skip to content
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

create_boreholes_3d Geographical coordinate processing exists bug #327

Closed
ada-hou opened this issue Jan 17, 2024 · 2 comments
Closed

create_boreholes_3d Geographical coordinate processing exists bug #327

ada-hou opened this issue Jan 17, 2024 · 2 comments

Comments

@ada-hou
Copy link

ada-hou commented Jan 17, 2024

Describe the bug

create_boreholes_3d Geographical coordinate processing exists bug
To Reproduce
Steps to reproduce the behavior:

  1. it is my dataframe
    image
    2.it is my code
    `
    import gemgis as gg
    import pyvista as pv
    color_dict = { 'rock':'#3182bd', 'coal':'#9ecae1' }
    pd.set_option('display.float_format', lambda x: '%.10f' % x)
    tubes, labels, df_groups = gg.visualization.create_boreholes_3d(df=borehole_last_df,
    min_length=10,
    color_dict=color_dict,
    radius=50)
    sargs = dict(fmt="%.0f", color='black')
    p = pv.Plotter(notebook=True)
    for k in tubes.keys():
    p.add_mesh(tubes[k], show_scalar_bar=True)

p.set_background('white')
p.show_grid(color='black')
p.set_scale(1,1,5)
p.show()
`
3. its result
image

It looks like it works well
5. But my coordinates have been processed by me
`
borehole_last_df['X'] = borehole_last_df['X'] * 100000

borehole_last_df['Y'] = borehole_last_df['Y'] * 100000
`
6. this is a real data
image

  1. it is result
    image
    8.All drills overlap together

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [macOS]
  • Browser [e.g. chrome, safari]
  • Version [10.15]

Additional context
gemgis = 1.1.8
pandas = 2.0.1

@ada-hou
Copy link
Author

ada-hou commented Jan 17, 2024

I suspect it was caused by vector.py
image
But I can't confirm

@ada-hou
Copy link
Author

ada-hou commented Jan 30, 2024

I replace Geographic Coordinate System (GCS) with Projected Coordinate System (PCS).

@ada-hou ada-hou closed this as completed Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant