voxel51/fiftyone

[FR] Verify latitude and longitude values at creation time

Aberta

#2.171 aberto em 14 de out. de 2022

 (2 comentários) (0 reação) (0 responsável)Python (400 forks)batch import
coreenhancementgood first issue

Métricas do repositório

Stars
 (4.021 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

Invalid lat and long coordinates in a GeoLocation field will result in the App throwing an error:

Error: Invalid LngLat latitude value: must be between -90 and 90
    at new de (http://localhost:5151/assets/index.f01320f2.js:711:66777)
    at de.convert (http://localhost:5151/assets/index.f01320f2.js:711:67409)
    at Q.extend (http://localhost:5151/assets/index.f01320f2.js:711:65535)
    at http://localhost:5151/assets/index.f01320f2.js:1790:65057
    at Array.reduce (<anonymous>)
    at bye (http://localhost:5151/assets/index.f01320f2.js:1790:65016)
    at http://localhost:5151/assets/index.f01320f2.js:1790:65695
    at Object.Gae [as useMemo] (http://localhost:5151/assets/index.f01320f2.js:34:23601)
    at Eo.useMemo (http://localhost:5151/assets/index.f01320f2.js:9:6259)
    at Tst (http://localhost:5151/assets/index.f01320f2.js:1790:65683)

It would be best to catch this error at data ingestion time.

Guia do colaborador