Skip to content
This repository was archived by the owner on Jan 18, 2023. It is now read-only.
This repository was archived by the owner on Jan 18, 2023. It is now read-only.

Spatial data #37

Open
Open

Description

@hygrace

Hi there,

As I know, there is only lat lon available for the properties. As such, I'm writing to enquire if there is any other spatial data available from the API. May I know if GIS data (boundary of the flood) is available in the API or not?

Thank you in advance!

Activity

  1. Lyetenth commented on Nov 18, 2020

    @Lyetenth
    Contributor

    Hi @hygrace,

    Are you looking for the geometries for the hazard layers/historic flood layers?
    ie: The bounding box and polygon of the layer

    And also are you looking to get the layers through the commandline or the Python script?

  2. hygrace commented on Nov 18, 2020

    @hygrace
    Author

    Correct.

  3. Lyetenth commented on Nov 24, 2020

    @Lyetenth
    Contributor

    Hey @hygrace ,

    Would something like what's on #31 be useful for you to get current and future flood layers?

  4. hygrace commented on Nov 27, 2020

    @hygrace
    Author

    Thank you Kelvin. This is what I looking for and I have below follow-up questions:

    1. I successfully opened that in QGIS but I wonder if there is a way that I can directly open the tiles in Arcgis/arcmap?

    2. I tried to use the example code for method 1 but I got the error saying there was no attribute 'tile'
      image

    3. For method 1, may I know where I can check the Mercator coordinates tuples for a certain area e.g. Harris county?

  5. fitnr commented on Nov 30, 2020

    @fitnr
    Collaborator

    To open data in ArcGIS, follow the instructions here. Those instructions are for ArcGIS 10.8, I don't know if this feature is available in earlier versions.
    Use this URL template:

    https://api.firststreet.org/v1/tile/probability/depth/2020/5/{level}/{col}/{row}.png?key=<replace with your api key>
    
  6. Lyetenth commented on Nov 30, 2020

    @Lyetenth
    Contributor

    @hygrace,

    Re: question 2, what's your current version of fsf-api-access-python when you run pip list on it?

    Can you also try:
    image = fs.tile.get_probability_depth(year=2050, return_period=500, search_items=[(14, 2635, 5694)], image=False)?

    Re: question 3, you can use this map (https://www.maptiler.com/google-maps-coordinates-tile-bounds-projection/) to find the coordinates for a particular location. Ex: Harris County, Texas, at zoom level 9 is (120, 211), so the input would be
    image = fs.tile.get_probability_depth(year=2050, return_period=500, search_items=[(9, 120, 211)], image=False)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions