[User Story] 2. Images & Traffic Signs #93
Labels
documentation
Improvements or additions to documentation
enhancement
New feature or request
example
This can be example implemented using the SDK
feature
A feature request for the SDK
Context
A user who uses a camera to take images all over the city would like to,
Concern
Each of these red boxes is 1-degree longitude by 1-degree lat. Maybe the max can be 2x2 degrees. And the user could set an override maybe, but by default, we reject if the area is 2x2 = 4 square degrees for a bbox.
For a radius, simply take area = (2* radius) ^ 2. And reject if area > 4 sq degrees also. But radius may be in meters, we need to have a handler of that too. The user should input radius in meters which we need to convert to degrees maybe.
Approaches/Limitations
Interestingly, this is not a function to get data by a bounding box, nor an input coordinate with a radius search. It has no geographic input argument, only organization name/key, and date range. So maybe a
get_data
function needs some special design.It must have some argument that limits the search,
I will ask for some tips on bbox and radius size limits. For bbox, maybe an area limit, so
abs(max_x - min_x) * abs(max_y - min_y)
must be <limit
. Then x,y of bbox are in degrees though, not meters. But that's okay. Maybe 1x1 degree is the limit, so 1 square degree.Code Example [OPTIONAL]
Something like,
get_data(layer=traffic_signs,filter=[organization=XXX, min_date=YYYY-MM-DD HH:MM:SS, max_date=YYYY-MM-DD HH:MM:SS])
Inside this is a function that gets a list of all image keys that are in the organization, and have the date range like
valid_images=[key1,key2,key3,...keyN]
, but also the tile coordinates liketiles = [ [x,y], [x,y], [x,y] ]
If there are 3 tiles (maybe just 1, maybe 20?). Then get a list of all traffic sign IDs in the same tile coordinates, and make an API request for each traffic sign ID (that's a lot of computing, unfortunately)
If there are 500 signs, for example, with
fields=images
, and then a condition of if any image keys in the traffic sign. Images field is in the valid_images list, then push the traffic sign with all fields including geometry to the output fileThe text was updated successfully, but these errors were encountered: