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

Objects not square #9

Open
ultrasouls opened this issue Feb 1, 2023 · 12 comments
Open

Objects not square #9

ultrasouls opened this issue Feb 1, 2023 · 12 comments

Comments

@ultrasouls
Copy link

ultrasouls commented Feb 1, 2023

I'm having another weird problem. My objects are a little 'unsquare' when rendering now. I assumed that it was just a rounding error of sorts in the rectangle I selected, but I tried a few times and still got models that were slightly off. Please see picture provided.

I was using the rectangle tool to select the area (as I usually do).

It's not a huge deal since I can just go square them up in a CAD, but figured you would want to know.

image

@ChHarding
Copy link
Owner

ChHarding commented Feb 1, 2023 via email

@ultrasouls
Copy link
Author

Perhaps some of your last reply got cut off. When you said "I used it here but also printed out the coordinates"...

Yes, I was using a rectangle in geemaps.

As far as "Just add args["polygon"] , where do you want me to add it?

BTW, the next block of code after displaying the geemap is:

make and store a GeoJSON polygon from (last) digitized outline

polyft = Map.draw_last_feature # get last outline
args["polygon"] = Polygon(polyft.getInfo()['geometry']['coordinates'])

@ChHarding
Copy link
Owner

ChHarding commented Feb 2, 2023 via email

@ChHarding
Copy link
Owner

ChHarding commented Feb 12, 2023 via email

@ultrasouls
Copy link
Author

I'm so sorry I stalled out on this. I'll look at it today.

@ultrasouls
Copy link
Author

Here ya go.

Cell In[22], line 4
print(args["polygon”])
^
SyntaxError: unterminated string literal (detected at line 4)

@ChHarding
Copy link
Owner

ChHarding commented Feb 13, 2023 via email

@ultrasouls
Copy link
Author

Here ya go! Note that I had deleted and downloaded the new container in Docker, so this isn't the same exact model I had done before (because I had to redraw it in geemaps). That said, it looks like it still had one of the sides that isn't perfectly square.

make and store a GeoJSON polygon from (last) digitized outline

polyft = Map.draw_last_feature # get last outline
args["polygon"] = Polygon(polyft.getInfo()['geometry']['coordinates'])
print("Got it!")
print(args["polygon"])

Got it!
{"coordinates": [[[-99.22591, 29.602426], [-99.151743, 29.602426], [-99.151743, 29.66032], [-99.22591, 29.66032], [-99.22591, 29.602426]]], "type": "Polygon"}

@ChHarding
Copy link
Owner

ChHarding commented Feb 13, 2023 via email

@ChHarding
Copy link
Owner

ChHarding commented Feb 19, 2023 via email

@ultrasouls
Copy link
Author

Awesome. Thanks so much Chris I'll give it a whirl.

@ultrasouls
Copy link
Author

Looks like it's working well now. Thanks so much!

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

2 participants