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
line_sfc object not used in any relationship queries #1017
Comments
Agreed, we should probably look to use it. Any thoughts on how welcome. |
I thought the section worked pretty well without using the line segment; perhaps use a line segment in one of the exercises at the end of Chapter 4. But instead of using the line segment depicted in Figure 4.3, use a highway that intersects multiple states from the `tigris` package. I’m going to practice spatial subsetting and spatial joining using geometries from the tigris package today. I’ll let you know what I come up with.
… On Dec 18, 2023, at 5:01 AM, Robin Lovelace ***@***.***> wrote:
Agreed, we should probably look to use it. Any thoughts on how welcome.
—
Reply to this email directly, view it on GitHub <#1017 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/A6D75UWD2OSIJ2U3ZESR62LYKA5BTAVCNFSM6AAAAABAXWQPIKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRQGQZTSNZSHE>.
You are receiving this because you authored the thread.
|
I experimented with the geometries for major US highways from the tigris package. It did not work out as I had planned. First, the highways are broken up into segments, so they need to be aggregated. Which is fine, except that there’s often missing pieces of highway, probably because the names of highways can change from place to place (or maybe the data is just missing). Suffice it to say, extracting the geometry for a specific highway that crosses multiple US states would require some research. I didn’t have the time to do that this morning, so I was not able to come up with a nice, clean example of using a linestring (a highway) to query a data set of polygons (states). Maybe there are data sets for highways in other countries that are easier to work with.
… On Dec 18, 2023, at 6:06 AM, Andrew Black ***@***.***> wrote:
I thought the section worked pretty well without using the line segment; perhaps use a line segment in one of the exercises at the end of Chapter 4. But instead of using the line segment depicted in Figure 4.3, use a highway that intersects multiple states from the `tigris` package. I’m going to practice spatial subsetting and spatial joining using geometries from the tigris package today. I’ll let you know what I come up with.
> On Dec 18, 2023, at 5:01 AM, Robin Lovelace ***@***.***> wrote:
>
>
> Agreed, we should probably look to use it. Any thoughts on how welcome.
>
> —
> Reply to this email directly, view it on GitHub <#1017 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/A6D75UWD2OSIJ2U3ZESR62LYKA5BTAVCNFSM6AAAAABAXWQPIKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRQGQZTSNZSHE>.
> You are receiving this because you authored the thread.
>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In 4.2.2 (https://r.geocompx.org/spatial-operations#topological-relations), the object
line_sfc
is created but not used for any relationship queries (at least not in 4.2.2 or 4.2.3). The line is plotted in Figure 4.3, but I don't know why.The text was updated successfully, but these errors were encountered: