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/user-projects.jsx","webpack://solvi-web/./app/packs/src/components/ui/shared/hamburger-button.js","webpack://solvi-web/./app/packs/src/components/ui/shared/navbar/navigation-link.js","webpack://solvi-web/./app/packs/src/components/ui/shared/navbar/navbar-list-element.js","webpack://solvi-web/./app/packs/src/components/ui/shared/navbar/navigation-item.js","webpack://solvi-web/./app/packs/src/components/ui/shared/navbar/navigation-user.js","webpack://solvi-web/./app/packs/src/components/ui/shared/navbar/navbar.js","webpack://solvi-web/./app/packs/src/ts2-client.js","webpack://solvi-web/./app/packs/src/components/create-project/project-type-button.js","webpack://solvi-web/./app/packs/src/components/create-project/file-picker.js","webpack://solvi-web/./app/packs/src/components/create-project/choose-files.js","webpack://solvi-web/./app/packs/src/components/create-project/file-list-item.js","webpack://solvi-web/./app/packs/src/components/ui/shared/blur.js","webpack://solvi-web/./app/packs/src/components/create-project/file-list-utils.js","webpack://solvi-web/./app/packs/src/components/create-project/file-list.js","webpack://solvi-web/./app/packs/src/components/create-project/preview-map-feature-select.js","webpack://solvi-web/./app/packs/src/components/create-project/preview-map-layer.js","webpack://solvi-web/./app/packs/src/components/ui/shared/notice.js","webpack://solvi-web/./app/packs/src/components/image-position-import.js","webpack://solvi-web/./app/packs/src/components/create-project/cost.js","webpack://solvi-web/./app/packs/src/components/create-project/prop-types.js","webpack://solvi-web/./app/packs/src/components/create-project/gcp/ol-styles.js","webpack://solvi-web/./app/packs/src/components/create-project/gcp/thumbnail.ts","webpack://solvi-web/./app/packs/src/components/create-project/gcp/map-view.tsx","webpack://solvi-web/./app/packs/src/components/create-project/gcp/register-gcps.tsx","webpack://solvi-web/./app/packs/src/components/create-project/gcp/index.tsx","webpack://solvi-web/./app/packs/src/components/create-project/upload-files.js","webpack://solvi-web/./app/packs/src/components/create-project/file-metadata.js","webpack://solvi-web/./app/packs/src/components/create-project/preview-files.js","webpack://solvi-web/./app/packs/src/components/create-project/bands-modal.tsx","webpack://solvi-web/./app/packs/src/components/create-project/geotiff-metadata.js","webpack://solvi-web/./app/packs/src/components/create-project/preview-geotiff.js","webpack://solvi-web/./app/packs/src/components/create-project/upload-project.js","webpack://solvi-web/./app/packs/src/components/create-project/validation.js","webpack://solvi-web/./app/packs/src/components/create-project/reducer.js","webpack://solvi-web/./app/packs/src/components/create-project/create-project.js","webpack://solvi-web/./app/packs/src/components/create-project/error-boundary.js","webpack://solvi-web/./app/packs/src/components/create-project/index.js","webpack://solvi-web/./app/packs/src/components/project-view/global-error-boundary.js","webpack://solvi-web/./app/packs/entrypoints/application.js","webpack://solvi-web/./app/packs/lib/exif.js","webpack://solvi-web/./app/packs/src/api/api-extension.js","webpack://solvi-web/./app/packs/src/api/file-not-found-error.js","webpack://solvi-web/./app/packs/src/api/exports.js","webpack://solvi-web/./app/packs/src/api/subscriptions.js","webpack://solvi-web/./app/packs/src/api/farm.js","webpack://solvi-web/./app/packs/src/api/field.js","webpack://solvi-web/./app/packs/src/api/comments.js","webpack://solvi-web/./app/packs/src/api/auth.js","webpack://solvi-web/./app/packs/src/api/plant-detection.js","webpack://solvi-web/./app/packs/src/api/job.js","webpack://solvi-web/./app/packs/src/api/yield-estimation.js","webpack://solvi-web/./app/packs/src/api/admin.js","webpack://solvi-web/./app/packs/src/api/user.ts","webpack://solvi-web/./app/packs/src/api/index.js","webpack://solvi-web/./app/packs/src/api/project.ts","webpack://solvi-web/./app/packs/src/async.js","webpack://solvi-web/./app/packs/src/band-orders.js","webpack://solvi-web/./app/packs/src/camera_utils.js","webpack://solvi-web/./app/packs/src/components/error-message.js.jsx","webpack://solvi-web/./app/packs/src/components/feature-select.js","webpack://solvi-web/./app/packs/src/components/filtered-list.js.jsx","webpack://solvi-web/./app/packs/src/components/geotagged_image_layer.js","webpack://solvi-web/./app/packs/src/components/map-controls.tsx","webpack://solvi-web/./app/packs/src/components/ol/image-layer.js","webpack://solvi-web/./app/packs/src/components/payments/product-options.tsx","webpack://solvi-web/./app/packs/src/components/payments/card-icon.tsx","webpack://solvi-web/./app/packs/src/components/payments/product-card.tsx","webpack://solvi-web/./app/packs/src/components/payments/card.tsx","webpack://solvi-web/./app/packs/src/components/payments/pay-buttons.tsx","webpack://solvi-web/./app/packs/src/components/payments/payments-modal.tsx","webpack://solvi-web/./app/packs/src/components/query.js.jsx","webpack://solvi-web/./app/packs/src/components/table.js.jsx","webpack://solvi-web/./app/packs/src/components/ui/elements/combobox.tsx","webpack://solvi-web/./app/packs/src/components/ui/elements/green-toggle.js","webpack://solvi-web/./app/packs/src/components/ui/elements/link.js","webpack://solvi-web/./app/packs/src/components/ui/elements/message.js","webpack://solvi-web/./app/packs/src/components/ui/shared/individual-images/image-view.js","webpack://solvi-web/./app/packs/src/components/ui/shared/individual-images/images-map.js","webpack://solvi-web/./app/packs/src/components/ui/shared/individual-images/nav-button.js","webpack://solvi-web/./app/packs/src/components/ui/shared/individual-images/use-mini-map.ts","webpack://solvi-web/./app/packs/src/components/ui/shared/info-text.js","webpack://solvi-web/./app/packs/src/components/ui/shared/loading-dots.js","webpack://solvi-web/./app/packs/src/components/ui/shared/notification.tsx","webpack://solvi-web/./app/packs/src/components/ui/shared/overlay-sidebar.js","webpack://solvi-web/./app/packs/src/components/ui/shared/overlays/fullscreen-overlay.js","webpack://solvi-web/./app/packs/src/components/ui/shared/payg-purchase-modal.tsx","webpack://solvi-web/./app/packs/src/components/ui/shared/progress-card.tsx","webpack://solvi-web/./app/packs/src/components/ui/shared/project-label.tsx","webpack://solvi-web/./app/packs/src/components/ui/shared/properties.js","webpack://solvi-web/./app/packs/src/components/ui/shared/radio-card.js","webpack://solvi-web/./app/packs/src/components/ui/shared/toolbar-button.js","webpack://solvi-web/./app/packs/src/cost.js","webpack://solvi-web/./app/packs/src/image-not-georeferenced-error.js","webpack://solvi-web/./app/packs/src/exif-utils.js","webpack://solvi-web/./app/packs/src/histogram.ts","webpack://solvi-web/./app/packs/src/hooks/use-image.js","webpack://solvi-web/./app/packs/src/hooks/use-is-mounted.js","webpack://solvi-web/./app/packs/src/hooks/use-map-resize.ts","webpack://solvi-web/./app/packs/src/hooks/use-resizable-split.ts","webpack://solvi-web/./app/packs/src/logger.ts","webpack://solvi-web/./app/packs/src/object-utils.js","webpack://solvi-web/./app/packs/src/ol-styles.ts","webpack://solvi-web/./app/packs/src/ortho-utils.ts","webpack://solvi-web/./app/packs/src/project-resources.ts","webpack://solvi-web/./app/packs/src/store/actions.ts","webpack://solvi-web/./app/packs/src/store/reducer.ts","webpack://solvi-web/./app/packs/src/store/index.tsx","webpack://solvi-web/./app/packs/src/store/use-notifications.ts","webpack://solvi-web/./app/packs/src/string-utils.js","webpack://solvi-web/./app/packs/src/tile-server-client.ts","webpack://solvi-web/./app/packs/src/utils/get-stripe.ts","webpack://solvi-web/./app/packs/src/utils/image-utils.js","webpack://solvi-web/./app/packs/src/utils/path-utils.ts","webpack://solvi-web/./app/packs/src/utils/payment-utils.tsx","webpack://solvi-web/./app/packs/src/utils/s3-multipart.js","webpack://solvi-web/./app/packs/src/utils/url-utils.ts"],"sourcesContent":["import FilteredList from './filtered-list.js.jsx'\nimport Query from './query.js.jsx'\nimport Table from './table.js.jsx'\nimport ErrorMessage from './error-message.js.jsx'\nimport { format as formatDate, parseISO } from 'date-fns'\nimport { differenceInCalendarDays } from 'date-fns/esm'\nimport { isoParse } from 'd3'\nimport Label from './ui/elements/label'\nimport Input from './ui/elements/input'\nimport Select from './ui/elements/select'\nimport ProjectLabel from './ui/shared/project-label'\nimport LinkButton from './ui/elements/link.js'\nimport bandOrders from '../band-orders.js'\nimport Button from './ui/elements/button.js'\nimport { useNotifications } from '../store/use-notifications'\nimport Notification from './ui/shared/notification'\n\nexport default function UserProjectsWrapper(props) {\n const {\n notifications,\n pushNotification,\n popNotification,\n } = useNotifications()\n\n return (\n <>\n \n {notifications[0] && (\n \n )}\n \n )\n}\n\nclass UserProjects extends FilteredList {\n constructor(props) {\n super(props)\n this.state = {\n search: null,\n sort: { id: 'created_at', dir: 'desc' },\n query: this.query.bind(this),\n }\n }\n\n plantCountsStatus(status) {\n switch (status) {\n case 'published':\n return 'Ready'\n case 'requested':\n return 'Processing'\n case 'bad_request':\n return 'Not available'\n default:\n return ''\n }\n }\n\n render() {\n return (\n \n {({ loading, data, error, refetch }) => {\n const message =\n this.state.message ||\n (error && {\n type: 'danger',\n html: (\n
\n \n An unexpected error occured. Technical details:\n \n
\n                    {error.toString()}\n                  
\n
\n ),\n })\n\n return (\n
\n {message && (\n \n )}\n
\n
\n \n \n
\n\n
\n \n \n \n \n \n \n
\n\n
\n \n \n {bandOrders.map(([value, label]) => (\n \n ))}\n \n
\n
\n \n \n
\n\n
\n \n \n
\n
\n\n {!error && (\n <>\n
\n Showing {data?.projects?.length || 0} of {data?.total || 0}{' '}\n Uploads\n
\n\n
\n
\n (\n \n ),\n },\n { id: 'farm', name: 'Farm', fn: d => d.farm_name },\n { id: 'field', name: 'Field', fn: d => d.field_name },\n {\n id: 'survey_date',\n name: 'Survey Date',\n fn: d =>\n d.survey_date &&\n formatDate(parseISO(d.survey_date), 'yyyy-MM-dd'),\n },\n {\n id: 'bands',\n name: 'Bands',\n fn: d => d.bands && d.bands.toUpperCase(),\n },\n {\n id: 'images',\n name: 'Images',\n classFn: () => 'tw-text-right',\n headerClassName: 'tw-text-right',\n fn: d => d.photos_count,\n },\n {\n id: 'plant_counts',\n name: 'Plant Counts',\n fn: d => this.plantCountsStatus(d.plant_counts),\n },\n {\n name: '',\n fn: d => (\n
\n {d.status === 'success' ? (\n \n View\n \n ) : d.status === 'uploading' &&\n differenceInCalendarDays(\n new Date(),\n isoParse(d.updated_at)\n ) <= 7 ? (\n \n Resume upload\n \n ) : null}\n {this.props.enableEdit && (\n this.delete(d, refetch)}>\n Delete\n \n )}\n
\n ),\n },\n ]}\n sort={this.state.sort}\n onSortChange={sort => {\n this.setState(\n { sort: { id: sort.col.id, dir: sort.dir } },\n refetch\n )\n }}\n />\n
\n
\n \n )}\n
\n )\n }}\n
\n )\n }\n\n updateFilter(refetch, field, debounce, e) {\n this.setState({ [field]: e.target.value, message: null }, () => {\n if (debounce) {\n clearTimeout(this.filterTimer)\n this.filterTimer = setTimeout(refetch, 250)\n } else {\n refetch()\n }\n })\n }\n\n getSearchParams() {\n return ['search', 'plantCounts', 'bands', 'from', 'to', 'deleted']\n }\n\n delete(project, refetch) {\n const uploadName = `${project.field_name} from ${formatDate(\n parseISO(project.survey_date || project.created_at),\n 'dd MMM yyyy'\n )}`\n\n if (\n confirm(`Are you sure you want to delete the upload to ${uploadName}?`)\n ) {\n this.props.apiClient.project.delete(project.id).then(() => {\n refetch()\n this.props.pushNotification({\n type: 'success',\n html: `Upload ${uploadName} deleted`,\n })\n })\n }\n }\n}\n","import { useState } from 'react'\nimport PropTypes from 'prop-types'\n\nexport default function HamburgerButton({ onClick, className, thin }) {\n const [open, setOpen] = useState(false)\n\n const handleClick = () => {\n setOpen(!open)\n onClick(!open)\n }\n\n return (\n \n \n \n \n \n )\n}\n\nHamburgerButton.propTypes = {\n onClick: PropTypes.func,\n className: PropTypes.string,\n thin: PropTypes.bool,\n}\n","import PropTypes from 'prop-types'\n\nconst navigationItemClass = `tw-duration-100 \n tw-py-1\n tw-inline-block\n tw-ease-linear\n tw-border-transparent\n tw-border-0 \n tw-border-b\n tw-border-solid\n tw-no-underline\n hover:tw-no-underline\n hover:tw-text-header-active\n focus:tw-no-underline\n focus:tw-text-header-active`\n\nexport default function NavigationLink({\n active,\n children,\n href,\n inToolbar,\n ...props\n}) {\n return (\n \n {children}\n \n )\n}\n\nexport function NavigationButton({\n active,\n children,\n onClick,\n inToolbar,\n ...props\n}) {\n return (\n \n {children}\n \n )\n}\n\nNavigationButton.propTypes = {\n active: PropTypes.bool,\n children: PropTypes.node,\n onClick: PropTypes.func,\n inToolbar: PropTypes.bool,\n}\n\nNavigationLink.propTypes = {\n active: PropTypes.bool,\n children: PropTypes.node,\n href: PropTypes.string,\n inToolbar: PropTypes.bool,\n}\n","import PropTypes from 'prop-types'\n\nexport default function NavbarListElement({ toolbar, children, className }) {\n return (\n \n {children}\n \n )\n}\n\nNavbarListElement.propTypes = {\n toolbar: PropTypes.bool,\n children: PropTypes.node,\n className: PropTypes.string,\n}\n","import PropTypes from 'prop-types'\nimport NavigationLink from './navigation-link'\nimport NavbarListElement from './navbar-list-element'\n\nexport default function NavigationItem({\n title,\n type,\n action,\n active,\n badge,\n context,\n}) {\n const isToolbar = context === 'toolbar'\n return (\n \n {type === 'link' && (\n \n {title}\n \n )}\n {type === 'modal' && (\n \n {title}\n \n )}\n {/* {badge ? (\n \n ) : null} */}\n {badge ? (\n \n {badge}\n \n ) : null}\n \n )\n}\n\nNavigationItem.propTypes = {\n title: PropTypes.string,\n type: PropTypes.oneOf(['link', 'modal', 'special-modal']),\n action: PropTypes.string,\n active: PropTypes.bool,\n badge: PropTypes.bool,\n context: PropTypes.string,\n}\n","import { useState, useEffect } from 'react'\nimport PropTypes from 'prop-types'\nimport { NavigationButton } from './navigation-link'\n\nexport default function NavigationUser({\n userFullName,\n profilePath,\n active,\n authenticityToken,\n context,\n}) {\n const [isOpen, setIsOpen] = useState(false)\n\n const handleEscape = event => {\n if (event.key === 'Escape') {\n setIsOpen(false)\n }\n }\n\n useEffect(() => {\n window.addEventListener('keydown', handleEscape)\n return () => {\n window.removeEventListener('keydown', handleEscape)\n }\n }, [])\n\n return (\n \n setIsOpen(!isOpen)}\n aria-haspopup=\"true\"\n aria-expanded={isOpen ? 'true' : 'false'}>\n {userFullName}\n \n \n {isOpen && (\n <>\n setIsOpen(false)}\n tabIndex={-1}\n className=\"tw-fixed tw-inset-0 tw-opacity-0 tw-h-full tw-w-full tw-cursor-default\">\n \n
\n \n \n Profile\n \n
\n \n \n \n Log Out\n \n \n
\n \n \n \n )}\n \n )\n}\n\nNavigationUser.propTypes = {\n userFullName: PropTypes.string,\n profilePath: PropTypes.string,\n active: PropTypes.bool,\n authenticityToken: PropTypes.string,\n context: PropTypes.string,\n}\n","import { useState, useEffect } from 'react'\nimport PropTypes from 'prop-types'\nimport HamburgerButton from '../hamburger-button'\nimport NavigationItem from './navigation-item'\nimport NavigationUser from './navigation-user'\nimport LinkButton from '../../elements/link'\nimport NavbarListElement from './navbar-list-element'\n\nexport default function Navbar({\n pageLogo,\n homeUrl,\n showNavigation,\n disableHide,\n navigationItems,\n profilePath,\n authenticityToken,\n userName,\n userDetailsActive,\n uploadPath,\n position,\n context,\n envName,\n}) {\n const [isOpen, setIsOpen] = useState(false)\n const [isToolbarOpen, setIsToolbarOpen] = useState(true)\n const [toolbar, setToolbar] = useState(null)\n\n const handleMenuOpen = isOpen => {\n setIsOpen(isOpen)\n }\n\n const handleToolbarToggle = () => {\n setIsToolbarOpen(!isToolbarOpen)\n }\n\n useEffect(() => {\n setToolbar(document.querySelector('#toolbar-placeholder'))\n }, [])\n\n useEffect(() => {\n if (!toolbar) return\n\n if (isToolbarOpen) {\n toolbar.classList.remove('tw-hidden')\n } else {\n toolbar.classList.add('tw-hidden')\n }\n }, [isToolbarOpen, toolbar])\n\n return (\n <>\n \n \n
\n \n \n \n {envName && {envName}}\n {showNavigation && (\n \n )}\n
\n\n {showNavigation && (\n \n \n {Object.keys(navigationItems).map(key => (\n \n ))}\n \n {uploadPath && (\n \n \n Upload Images\n \n \n )}\n \n \n )}\n \n \n {context === 'toolbar' && !disableHide && (\n \n \n \n )}\n \n )\n}\n\nNavbar.defaultProps = {\n position: 'tw-relative',\n}\n\nNavbar.propTypes = {\n pageLogo: PropTypes.string,\n homeUrl: PropTypes.string,\n showNavigation: PropTypes.bool,\n disableHide: PropTypes.bool,\n navigationItems: PropTypes.object,\n profilePath: PropTypes.string,\n authenticityToken: PropTypes.string,\n userName: PropTypes.string,\n userDetailsActive: PropTypes.bool,\n uploadPath: PropTypes.string,\n position: PropTypes.string,\n context: PropTypes.string,\n envName: PropTypes.string,\n}\n","import { apiFetch } from './api'\nimport { maskToQuery } from './tile-server-client'\n\nexport default class Ts2Client {\n constructor(ts2BaseUrl, token) {\n this.baseUrl = ts2BaseUrl\n this.token = token\n }\n\n /**\n * @typedef {Object} ZonalStatisticsFunction\n * @property {string} function\n * @property {[number, number]|undefined} thresholds\n * @property {[boolean, boolean]|undefined} includeOutliers\n */\n\n /**\n * @typedef {Object} ZonalStatisticsBand\n * @property {string} band\n * @property {[number, number]|undefined=} thresholds\n * @property {[boolean, boolean]|undefined=} includeOutliers\n */\n\n /** @typedef {ZonalStatisticsFunction|ZonalStatisticsBand} ZonalStatisticsOp */\n\n /**\n *\n * @param {ZonalStatisticsOp[]} ops\n * @param {string} bands\n * @param {import('@turf/helpers').FeatureCollection} featureCollection\n * @param {string} source\n * @param {LayerParams} params\n * @returns\n */\n calculateZonalStatistics(\n ops,\n bands,\n featureCollection,\n source,\n params = undefined\n ) {\n var url = `${this.baseUrl}/zonal_statistics/calculate?token=${this.token}`\n\n return apiFetch(url, {\n method: 'POST',\n body: JSON.stringify({\n ops,\n bands,\n zones: featureCollection,\n source,\n type: params?.hiDefinition ? 'hi-def' : 'standard',\n percentiles: params?.percentiles,\n ...maskToQuery(params?.mask),\n }),\n headers: {\n 'Content-Type': 'application/json',\n },\n })\n }\n\n generateZonalStatisticsExport(plots, filename, format) {\n var exportUrl =\n this.baseUrl +\n '/zonal_statistics/export?file=' +\n encodeURIComponent(filename) +\n '&format=' +\n format +\n '&token=' +\n this.token\n return window\n .fetch(exportUrl, {\n mode: 'cors',\n method: 'POST',\n headers: { 'Content-type': 'application/json' },\n body: JSON.stringify(plots),\n })\n .then(\n function (response) {\n if (response.status === 200) {\n return (\n this.baseUrl +\n '/zonal_statistics/download?file=' +\n encodeURIComponent(filename) +\n '&format=' +\n format +\n '&token=' +\n this.token\n )\n } else {\n throw new Error(`Unexpected HTTP response ${response.status}.`)\n }\n }.bind(this)\n )\n }\n}\n","import PropTypes from 'prop-types'\n\nexport default function ProjectTypeButton({\n title,\n description,\n onClick,\n children,\n}) {\n return (\n \n {children}\n

\n {title}\n

\n

\n {description}\n

\n \n )\n}\n\nProjectTypeButton.propTypes = {\n title: PropTypes.string,\n description: PropTypes.string,\n onClick: PropTypes.func,\n childen: PropTypes.node,\n children: PropTypes.node,\n}\n","import { useCallback } from 'react'\nimport PropTypes from 'prop-types'\n\nexport default function FilePicker({ multiple, value, onChange, accept }) {\n const inputRef = useCallback(\n node => {\n if (node) {\n node.click()\n }\n },\n // This dep ensures the file dialog is opened when the value is cleared,\n // although it's an unecessary dep in eslint's opinion. We should\n // probably do this in some better way.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [value]\n )\n\n return (\n {\n const files = {}\n Array.from(e.target.files).forEach(file => {\n files[file.name] = {\n file,\n isSelected: false,\n uploadStatus: 'idle',\n id: file.name,\n }\n })\n onChange(files)\n }}\n />\n )\n}\n\nFilePicker.propTypes = {\n multiple: PropTypes.bool,\n value: PropTypes.array,\n onChange: PropTypes.func,\n accept: PropTypes.string,\n}\n","import { useContext, useState } from 'react'\nimport { CreateProjectDispatch } from './create-project'\nimport ProjectTypeButton from './project-type-button'\n\nimport OverlappingIcon from '../../../images/OverlappingUpload.svg'\nimport GeoTIFFIcon from '../../../images/GeoTIFFUpload.svg'\nimport FilePicker from './file-picker'\n\nimport PropTypes from 'prop-types'\n\nexport default function ChooseFiles({ projectType }) {\n const [files, setFiles] = useState([])\n const dispatch = useContext(CreateProjectDispatch)\n\n const chooseFiles = type => {\n setFiles([])\n dispatch({ type: 'SET_PROJECT_TYPE', payload: type })\n }\n\n return (\n
\n
\n

\n Choose what type of images you would like to upload\n

\n
\n {projectType && (\n \n dispatch({ type: 'UPDATE_FILES', payload: files })\n }\n value={files}\n />\n )}\n
\n chooseFiles('overlapping')}>\n \n \n chooseFiles('geotiff')}>\n \n \n
\n
\n
\n
\n )\n}\n\nChooseFiles.propTypes = {\n projectType: PropTypes.string,\n}\n","import { useState } from 'react'\nimport PropTypes from 'prop-types'\n\nexport default function FileListItem({\n name,\n status,\n currentSelected,\n isSelected,\n validationMessage,\n isItemUploaded,\n onSelect,\n onClick,\n}) {\n const [hidden, setHidden] = useState(true)\n const isProjectUploading = status === 'uploading'\n const isProjectDoneUploading = status === 'success'\n const inEditMode = !isProjectUploading && !isProjectDoneUploading\n\n const handleHover = () => {\n if (!isSelected) {\n setHidden(false)\n }\n }\n\n const handleLeave = () => {\n if (!isSelected) {\n setHidden(true)\n }\n }\n\n const toggleChecked = event => {\n if (isSelected && !currentSelected) {\n event.stopPropagation()\n }\n\n if (!isSelected && currentSelected) {\n event.stopPropagation()\n }\n\n if (!isSelected) {\n setHidden(true)\n }\n if (inEditMode) {\n onSelect(event.shiftKey)\n }\n }\n\n return (\n (\n \n
\n \n \n {isSelected && inEditMode && (\n \n \n \n )}\n \n
\n {name}\n \n {inEditMode && !isItemUploaded ? (\n validationMessage && (\n \n )\n ) : (\n \n )}\n \n ) || <>\n )\n}\n\nfunction ProgressIndicator({ done }) {\n return (\n \n )\n}\n\nProgressIndicator.propTypes = {\n done: PropTypes.bool,\n}\n\nFileListItem.propTypes = {\n name: PropTypes.string.isRequired,\n status: PropTypes.string,\n currentSelected: PropTypes.bool,\n validationMessage: PropTypes.string,\n isItemUploaded: PropTypes.bool,\n lastSelected: PropTypes.string,\n groupKey: PropTypes.string,\n isSelected: PropTypes.bool,\n onSelect: PropTypes.func.isRequired,\n onClick: PropTypes.func.isRequired,\n}\n","export default function Blur() {\n return (\n
\n )\n}\n","import { getCommonString } from '../../string-utils'\n\nexport const fileListItems = (\n groupedFileList,\n files,\n cameraProperties,\n lastSelected,\n metaData\n) => {\n if (!groupedFileList || !files) {\n return null\n }\n const groupedFileListArray = Object.keys(groupedFileList)\n .map((groupKey, index) => {\n const features = groupedFileList[groupKey].map(id =>\n metaData.features.find(f => f.id === id)\n )\n\n const hasGeoRef = features.every(\n f => f.geometry || f.properties.calibration_picture\n )\n\n const fileList = groupedFileList[groupKey]\n const filenames = features.map(f => f.properties.filename)\n\n return {\n groupKey,\n fileList,\n hasGeoRef,\n isItemUploaded: fileList.every(\n fileId => files[fileId].uploadStatus === 'done'\n ),\n isMissingImagesInCapture:\n cameraProperties &&\n fileList.length < cameraProperties.imagesPerCapture,\n isMissingFilesInCapture: fileList.some(fileId => !files[fileId].file),\n isSelected: fileList.every(\n fileId => files[fileId] && files[fileId].isSelected\n ),\n name: getCommonString(filenames),\n currentSelected: lastSelected === groupKey,\n }\n })\n .sort((a, b) => {\n const same =\n a.hasGeoRef === b.hasGeoRef &&\n a.isMissingImagesInCapture === b.isMissingImagesInCapture &&\n a.isMissingFilesInCapture === b.isMissingFilesInCapture\n\n return same\n ? 0\n : !a.hasGeoRef ||\n a.isMissingFilesInCapture ||\n a.isMissingImagesInCapture\n ? -1\n : 1\n })\n\n return sortBadImages(groupedFileListArray)\n}\n\nexport const sortBadImages = groupedFileListArray => {\n return groupedFileListArray.sort((a, b) => {\n const same =\n a.hasGeoRef === b.hasGeoRef &&\n a.isMissingImagesInCapture === b.isMissingImagesInCapture &&\n a.isMissingFilesInCapture === b.isMissingFilesInCapture\n\n const bothBad =\n (!a.hasGeoRef ||\n a.isMissingFilesInCapture ||\n a.isMissingImagesInCapture) &&\n (!b.hasGeoRef || b.isMissingFilesInCapture || b.isMissingImagesInCapture)\n\n return same || bothBad\n ? 0\n : !a.hasGeoRef || a.isMissingFilesInCapture || a.isMissingImagesInCapture\n ? -1\n : 1\n })\n}\n","import { useContext, useEffect, useRef } from 'react'\nimport PropTypes from 'prop-types'\nimport Checkbox from '../ui/elements/checkbox'\nimport Button from '../ui/elements/button'\nimport FileListItem from './file-list-item'\nimport { CreateProjectDispatch } from './create-project'\nimport Blur from '../ui/shared/blur'\nimport { FixedSizeList as List } from 'react-window'\nimport WindowListener from '../window-listener'\nimport AutoSizer from 'react-virtualized-auto-sizer'\nimport { fileListItems } from './file-list-utils'\n\nexport default function FileList({\n files,\n metaData,\n lastSelected,\n status,\n metaDataInitialized,\n groupedFileList,\n cameraProperties,\n addFilesLabel,\n allowChanges,\n}) {\n const dispatch = useContext(CreateProjectDispatch)\n const individualFileUpload = useRef(null)\n const fileValues = Object.values(files)\n const removeDisabled =\n !allowChanges || !fileValues.some(file => file.isSelected === true)\n const isUploading = status === 'uploading'\n const isDoneUploading = status === 'success'\n const inEditMode = !isUploading && !isDoneUploading\n const renderFileList = fileListItems(\n groupedFileList,\n files,\n cameraProperties,\n lastSelected,\n metaData\n )\n\n const numberOfSelectedFiles = fileValues.filter(file => file.isSelected)\n .length\n const numberOfSelectedCaptures =\n groupedFileList &&\n Object.values(groupedFileList).filter(groupFiles =>\n groupFiles.every(fileId => files[fileId] && files[fileId].isSelected)\n ).length\n const allSelected = numberOfSelectedFiles === fileValues.length\n\n const imageInfoText =\n numberOfSelectedFiles === numberOfSelectedCaptures\n ? numberOfSelectedCaptures === 1\n ? 'image'\n : 'images'\n : numberOfSelectedCaptures === 1\n ? 'capture'\n : 'captures'\n\n useEffect(() => {\n if (\n fileValues.length === 0 ||\n (lastSelected && !groupedFileList[lastSelected])\n ) {\n dispatch({\n type: 'SET_LAST_SELECTED',\n payload: null,\n })\n }\n }, [dispatch, fileValues.length, groupedFileList, lastSelected])\n\n const handleAllSelected = () => {\n const allIds = Object.keys(files)\n if (!allSelected) {\n dispatch({ type: 'SELECT_FILES', payload: allIds })\n } else {\n dispatch({ type: 'UNSELECT_FILES', payload: allIds })\n }\n }\n\n const handleRemoveSelected = event => {\n event.preventDefault()\n if (\n window.confirm(\n `Do you want to remove ${numberOfSelectedCaptures} ${imageInfoText}`\n )\n ) {\n dispatch({ type: 'REMOVE_FILES' })\n }\n }\n\n const ListItem = ({ index, style }) => {\n const currentFileListItem = renderFileList[index]\n\n if (currentFileListItem) {\n const {\n groupKey,\n currentSelected,\n isSelected,\n isItemUploaded,\n hasGeoRef,\n isMissingImagesInCapture,\n isMissingFilesInCapture,\n name,\n } = currentFileListItem\n return (\n
\n !files[fileId].file\n ).length\n } files in this capture`\n : null\n }\n onClick={event =>\n selectFileToPreview(event, groupKey, isSelected, currentSelected)\n }\n onSelect={() => selectItems(groupKey, isSelected)}\n />\n
\n )\n } else {\n return null\n }\n\n function selectFileToPreview(event, groupKey, isSelected, currentSelected) {\n event.preventDefault()\n\n if (metaData) {\n if (currentSelected) {\n dispatch({\n type: 'SET_LAST_SELECTED',\n payload: null,\n })\n } else {\n dispatch({\n type: 'SET_LAST_SELECTED',\n payload: groupKey,\n })\n if (event.shiftKey) {\n selectItems(groupKey, isSelected, true)\n }\n }\n }\n }\n\n function selectItems(groupKey, isSelected, multiple) {\n let selectedIds\n\n if (multiple && lastSelected) {\n const lastSelectedIndex = Object.keys(groupedFileList).findIndex(\n key => key === lastSelected\n )\n const currentIndex = Object.keys(groupedFileList).findIndex(\n key => key === groupKey\n )\n\n selectedIds = Object.values(groupedFileList)\n .slice(\n Math.min(lastSelectedIndex, currentIndex),\n Math.max(lastSelectedIndex, currentIndex) + 1\n )\n .flatMap(fileList => fileList.flatMap(fileId => fileId))\n } else {\n selectedIds = groupedFileList[groupKey]\n }\n\n if (!isSelected) {\n dispatch({ type: 'SELECT_FILES', payload: selectedIds })\n } else {\n dispatch({ type: 'UNSELECT_FILES', payload: selectedIds })\n }\n }\n }\n\n return (\n \n
\n {isDoneUploading && }\n {\n const files = {}\n Array.from(e.target.files).forEach(file => {\n files[file.name] = {\n file,\n isSelected: false,\n uploadStatus: 'idle',\n id: file.name,\n }\n })\n dispatch({ type: 'UPDATE_FILES', payload: files })\n }}\n />\n
\n {\n individualFileUpload.current.value = ''\n individualFileUpload.current.click()\n }}\n action=\"primary-light\"\n disabled={!inEditMode}>\n {addFilesLabel}\n \n
\n 0}\n onChange={handleAllSelected}\n disabled={Object.keys(files).length === 0 || !inEditMode}>\n {`${\n allSelected ? 'Deselect all' : 'Select all'\n }`}\n \n
\n
\n {(metaDataInitialized && metaData && renderFileList && (\n
\n \n {({ width, height }) => (\n \n {ListItem}\n \n )}\n \n
\n )) || (\n

\n {`${\n !metaDataInitialized ? 'Examining images...' : 'No images added'\n }`}\n

\n )}\n
\n \n {removeDisabled || !inEditMode\n ? 'Remove'\n : `Remove ${numberOfSelectedCaptures} ${imageInfoText}`}\n \n
\n
\n
\n )\n\n function onKeydown(e) {\n if (e.code === 'ArrowDown') {\n selectNext(1)\n e.preventDefault()\n } else if (e.code === 'ArrowUp') {\n selectNext(-1)\n e.preventDefault()\n } else if (e.code === 'Space') {\n if (lastSelected) {\n dispatch({\n type: groupedFileList[lastSelected].every(\n fileId => files[fileId].isSelected\n )\n ? 'UNSELECT_FILES'\n : 'SELECT_FILES',\n payload: groupedFileList[lastSelected].map(\n fileId => files[fileId].id\n ),\n })\n }\n }\n\n function selectNext(dir) {\n if (lastSelected) {\n const currentIndex = Object.keys(groupedFileList).findIndex(\n key => key === lastSelected\n )\n const nextIndex = currentIndex + dir\n if (nextIndex >= 0 && nextIndex < Object.keys(groupedFileList).length) {\n const nextSelection = Object.keys(groupedFileList)[nextIndex]\n dispatch({\n type: 'SET_LAST_SELECTED',\n payload: nextSelection,\n })\n }\n }\n }\n }\n}\n\nFileList.propTypes = {\n files: PropTypes.object.isRequired,\n status: PropTypes.string,\n groupedFileList: PropTypes.object,\n metaData: PropTypes.object,\n lastSelected: PropTypes.string,\n metaDataInitialized: PropTypes.bool,\n cameraProperties: PropTypes.object,\n addFilesLabel: PropTypes.string,\n allowChanges: PropTypes.bool,\n}\n","import { Component, useState, useEffect } from 'react'\nimport Select from 'ol/interaction/Select'\nimport Collection from 'ol/Collection'\nimport * as condition from 'ol/events/condition'\nimport GeoJSON from 'ol/format/GeoJSON'\nimport Style from 'ol/style/Style'\nimport Fill from 'ol/style/Fill'\nimport Stroke from 'ol/style/Stroke'\nimport Circle from 'ol/style/Circle'\nimport Control from 'ol/control/Control'\nimport { colors } from '../../ol-styles'\nimport { createPortal } from 'react-dom'\nimport ToolbarButton from '../ui/shared/toolbar-button'\nimport Draw from 'ol/interaction/Draw'\nimport DragBox from 'ol/interaction/DragBox'\nimport booleanWithin from '@turf/boolean-within'\n\nimport PropTypes from 'prop-types'\n\nexport default class PreviewMapFeatureSelect extends Component {\n constructor(props) {\n super(props)\n this.styleFunction = this.styleFunction.bind(this)\n this.interactions = []\n this.state = {\n selectionMode: 'move',\n }\n }\n\n componentDidMount() {\n if (this.props.enabled) {\n this.updateSelect()\n }\n\n this.registerInteraction(\n new DragBox({\n condition: e =>\n this.state.selectionMode === 'rectangle' || condition.shiftKeyOnly(e),\n className: 'zonal-statistics-dragbox',\n minArea: 256,\n }),\n {\n boxend: e => {\n this.selectIntersecting(e.target.getGeometry())\n this.setState({ selectionMode: 'move' })\n },\n }\n )\n\n this.registerInteraction(\n new Draw({\n type: 'Polygon',\n condition: () => this.state.selectionMode === 'polygon',\n style: new Style({\n fill: new Fill({ color: [255, 255, 255, 0.1] }),\n stroke: new Stroke({ color: '#00a6cc', width: 1, lineDash: [1, 1] }),\n }),\n }),\n {\n drawend: e => {\n this.selectIntersecting(e.feature.getGeometry())\n this.setState({ selectionMode: 'move' })\n },\n },\n 'polygon'\n )\n\n this.interactions.forEach(i => this.props.map.addInteraction(i[0]))\n }\n\n componentWillUnmount() {\n this.props.map.removeInteraction(this.select)\n this.interactions.forEach(i => this.props.map.removeInteraction(i[0]))\n }\n\n componentDidUpdate(oldProps, oldState) {\n if (\n oldProps.selection !== this.props.selection ||\n oldProps.layer !== this.props.layer ||\n oldProps.lastSelected !== this.props.lastSelected\n ) {\n if (this.props.enabled) {\n this.updateSelect()\n } else {\n this.props.map.removeInteraction(this.select)\n }\n }\n\n if (oldState.selectionMode !== this.state.selectionMode) {\n this.select.setActive(this.state.selectionMode === 'move')\n this.interactions.forEach(\n i => i[1] && i[0].setActive(this.state.selectionMode === i[1])\n )\n }\n }\n\n render() {\n return (\n <>\n this.setState({ selectionMode })}\n />\n \n )\n }\n\n styleFunction(feature) {\n if (this.props.lastSelected) {\n const isLastSelected = feature.getId() === this.props.lastSelected\n if (isLastSelected) {\n return this.props.selection.has(this.props.lastSelected)\n ? selectedPreviewStyle\n : previewStyle\n }\n }\n\n return normalStyle\n }\n\n updateSelect() {\n const allSelections = (\n (this.props.layer &&\n this.props.layer.getSource() &&\n this.props.layer.getSource().getFeatures()) ||\n []\n ).filter(\n feature =>\n this.props.selection.has(feature.getId()) ||\n this.props.lastSelected === feature.getId()\n )\n\n if (this.select) {\n this.props.map.removeInteraction(this.select)\n }\n\n this.select = new Select({\n layers: [this.props.layer],\n condition: evt =>\n this.state.selectionMode === 'move' && condition.click(evt),\n toggleCondition: evt => condition.click(evt),\n multi: true,\n style: this.styleFunction,\n features: new Collection(allSelections),\n })\n\n this.select.on('select', e => {\n if (e.deselected.length !== 0) {\n const featuresGeoJson = new GeoJSON().writeFeaturesObject(\n e.deselected,\n {\n dataProjection: 'EPSG:4326',\n featureProjection: 'EPSG:3857',\n }\n )\n this.props.onDeselect(featuresGeoJson)\n return\n }\n\n const featuresGeoJson = new GeoJSON().writeFeaturesObject(e.selected, {\n dataProjection: 'EPSG:4326',\n featureProjection: 'EPSG:3857',\n })\n this.props.onSelect(featuresGeoJson)\n })\n\n this.props.map.addInteraction(this.select)\n }\n\n registerInteraction(interaction, eventHandlers, mode) {\n Object.keys(eventHandlers).forEach(eventName =>\n interaction.on(eventName, eventHandlers[eventName])\n )\n this.interactions.push([interaction, mode])\n\n if (mode) {\n interaction.setActive(this.state.selectionMode === mode)\n }\n\n return interaction\n }\n\n selectIntersecting(geometry) {\n const extent = geometry.getExtent()\n const geojson = new GeoJSON()\n const gjGeometry = geojson.writeGeometryObject(geometry)\n const features = []\n this.props.layer.getSource().forEachFeatureIntersectingExtent(extent, f => {\n const feature = geojson.writeFeatureObject(f)\n if (booleanWithin(feature, gjGeometry)) {\n features.push(feature)\n }\n })\n\n if (features.length > 0) {\n this.props.onSelect({ type: 'FeatureCollection', features })\n }\n }\n}\n\nconst selectedPreviewStyle = new Style({\n image: new Circle({\n radius: 10,\n fill: new Fill({ color: colors.blue }),\n stroke: new Stroke({ color: colors.red, width: 4 }),\n }),\n})\n\nconst previewStyle = new Style({\n image: new Circle({\n radius: 10,\n fill: new Fill({ color: colors.lightGray }),\n stroke: new Stroke({ color: colors.red, width: 4 }),\n }),\n})\n\nconst normalStyle = new Style({\n image: new Circle({\n radius: 6,\n fill: new Fill({ color: colors.blue }),\n stroke: new Stroke({ color: colors.white, width: 2 }),\n }),\n})\n\nfunction SelectionModeToolbar({ map, mode, enabled, onChange }) {\n const [containerElement, setContainerElement] = useState(null)\n\n useEffect(() => {\n const controlElement = document.createElement('div')\n const controls = new Control({\n target: document.getElementById('map-controls'),\n element: controlElement,\n })\n\n map.addControl(controls)\n\n setContainerElement(controlElement)\n\n return () => {\n map.removeControl(controls)\n }\n }, [])\n\n const modes = [\n ['Select Point', 'dot-circle', 'move'],\n ['Select Rectangle', 'object-group', 'rectangle'],\n ['Select Polygon', 'draw-polygon', 'polygon'],\n ]\n\n return (\n (containerElement &&\n createPortal(\n
\n {modes.map(([title, icon, modeName]) => (\n {\n onChange(modeName)\n }}\n />\n ))}\n
,\n containerElement\n )) ||\n null\n )\n}\n\nPreviewMapFeatureSelect.propTypes = {\n enabled: PropTypes.bool,\n map: PropTypes.shape({\n addInteraction: PropTypes.func,\n removeInteraction: PropTypes.func,\n }),\n selection: PropTypes.object,\n layer: PropTypes.object,\n lastSelected: PropTypes.string,\n onDeselect: PropTypes.func,\n onSelect: PropTypes.func,\n}\n","import { useEffect, useMemo } from 'react'\nimport VectorLayer from 'ol/layer/Vector'\nimport VectorSource from 'ol/source/Vector'\nimport GeoJSON from 'ol/format/GeoJSON'\nimport * as olExtent from 'ol/extent'\n\nimport Style from 'ol/style/Style'\nimport Fill from 'ol/style/Fill'\nimport Stroke from 'ol/style/Stroke'\nimport Circle from 'ol/style/Circle'\n\nimport PropTypes from 'prop-types'\n\nexport default function PreviewMapLayer({\n map,\n metaData,\n style,\n zIndex,\n onLayerCreated,\n onLayerRemoved,\n uploaded,\n}) {\n const features = useMemo(() => {\n const filteredFeatures = metaData.features.reduce((filtered, data) => {\n if (!filtered[data.properties.capture_id]) {\n filtered[data.properties.capture_id] = data\n }\n return filtered\n }, {})\n\n const filteredMeta = {\n type: 'FeatureCollection',\n features: Object.values(filteredFeatures),\n }\n\n const featuresFromMetadata = new GeoJSON().readFeatures(filteredMeta, {\n dataProjection: 'EPSG:4326',\n featureProjection: 'EPSG:3857',\n })\n\n featuresFromMetadata.forEach(feature => {\n if (feature.getProperties().filename) {\n feature.setId(feature.getProperties().capture_id)\n }\n })\n\n return featuresFromMetadata\n }, [metaData])\n\n const [source, layer] = useMemo(() => {\n const source = new VectorSource()\n\n const layer = new VectorLayer({\n source,\n zIndex,\n })\n\n return [source, layer]\n }, [zIndex])\n\n useEffect(() => {\n map.addLayer(layer)\n onLayerCreated(layer)\n\n return () => {\n map.removeLayer(layer)\n onLayerRemoved(layer)\n }\n }, [map, layer, onLayerCreated, onLayerRemoved])\n\n useEffect(() => {\n source.clear()\n source.addFeatures(features)\n\n const extent = source.getExtent()\n const view = map.getView()\n const isEmpty = olExtent.isEmpty(extent)\n const extentsIntersect =\n !isEmpty && olExtent.intersects(extent, view.calculateExtent())\n const extentIsTooSmallInView =\n !isEmpty &&\n view.getResolutionForExtent(extent) / view.getResolution() < 1 / 32\n\n if (!isEmpty && (!extentsIntersect || extentIsTooSmallInView)) {\n view.fit(extent, {\n padding: [100, 400, 100, 400],\n maxZoom: 18,\n duration: 1000,\n })\n }\n }, [map, source, features])\n\n useEffect(() => {\n if (layer) {\n layer.setStyle(feature => {\n if (uploaded.has(feature.getId())) {\n return uploadedStyle\n } else {\n return style\n }\n })\n }\n }, [layer, style, uploaded])\n\n return <>\n}\n\nconst uploadedStyle = new Style({\n image: new Circle({\n radius: 6,\n fill: new Fill({ color: '#46C13C' }),\n stroke: new Stroke({ color: 'white', width: 2 }),\n }),\n})\n\nPreviewMapLayer.propTypes = {\n map: PropTypes.shape({\n addLayer: PropTypes.func,\n removeLayer: PropTypes.func,\n getView: PropTypes.func,\n }),\n style: PropTypes.object,\n metaData: PropTypes.object,\n zIndex: PropTypes.number,\n onLayerCreated: PropTypes.func,\n onLayerRemoved: PropTypes.func,\n uploaded: PropTypes.instanceOf(Set),\n}\n","import PropTypes from 'prop-types'\n\nexport default function Notice({ children, type = 'info' }) {\n return (\n \n

{children}

\n \n )\n}\n\nNotice.propTypes = {\n children: PropTypes.node,\n type: PropTypes.oneOf(['info', 'warning']),\n}\n","import { Component } from 'react'\nimport PropTypes from 'prop-types'\nimport ModalOverlay, {\n ModalOverlayContent,\n ModalOverlayFooter,\n} from './ui/shared/overlays/modal-overlay'\nimport Select from './ui/elements/select'\nimport Label from './ui/elements/label'\nimport Button from './ui/elements/button'\nimport Notice from './ui/shared/notice'\n\nconst attributes = {\n lat: 'Latitude',\n lng: 'Longitude',\n z: 'Altitude',\n image: 'Filename',\n}\n\nexport default class ImagePositionImport extends Component {\n constructor(props) {\n super(props)\n\n this.state = {\n dragHover: false,\n }\n\n this.updateFile()\n }\n\n componentDidUpdate(oldProps) {\n if (\n oldProps.imageFilenames !== this.props.imageFilenames ||\n oldProps.file !== this.props.file\n ) {\n this.updateFile()\n }\n }\n\n updateFile() {\n const reader = new FileReader()\n reader.addEventListener('loadend', () => {\n const lines = reader.result\n .split('\\n')\n .map(line => line.trim())\n .filter((line, i) => i === 0 || !line.startsWith('#'))\n\n const separator =\n lines[0] && lines[0].indexOf('\\t') >= 0\n ? '\\t'\n : lines[0].indexOf(',') >= 0\n ? ','\n : ';'\n\n const data = lines.map(line =>\n line.split(separator).map(col => col.trim())\n )\n\n const mapping = guessCsvMappings(\n {\n lat: ['latitude', 'lat', 'y', 'northing', 'north'],\n lng: ['longitude', 'lng', 'lon', 'long', 'x', 'easting', 'east'],\n z: ['elevation', 'altitude', 'alt', 'z', 'height'],\n image: ['photo', 'filename', 'file', 'image', 'name'],\n },\n data\n )\n let unmapped = 0\n for (let i = 0; i < mapping.length; i++) {\n if (!mapping[i]) {\n unmapped++\n }\n }\n\n const skipHeader = unmapped !== mapping.length\n\n this.setState(\n {\n data,\n skipHeader,\n },\n () => this.updateMapping(mapping)\n )\n })\n\n reader.readAsText(this.props.file)\n }\n\n render() {\n // TODO: this logic seems inverted? If we *skip* the header, we shouldn't use the first\n // row as header?\n const columnHeaders = this.state.skipHeader ? this.state.data[0] : []\n\n return (\n this.onClose(false)}>\n \n
\n

Original file

\n {this.state.data && (\n \n \n {this.state.skipHeader ? (\n \n {columnHeaders.map(h => (\n \n ))}\n \n ) : (\n this.state.data[0]?.map((c, i) => (\n \n ))\n )}\n \n \n {this.state.data\n .slice(this.state.skipHeader ? 1 : 0, 5)\n .map((row, i) => (\n \n {row.map((col, i) => (\n \n {col}\n \n ))}\n \n ))}\n \n
\n {h}\n
\n Column {i + 1}\n
\n )}\n\n

Columns

\n
\n {this.state.mapping &&\n ['image', 'lat', 'lng', 'z'].map(x => {\n const columnIndex = this.state.mapping.findIndex(m => m === x)\n return (\n \n \n
\n this.onMappingChange(x, e)}>\n \n {this.state.mapping.map((mapping, i) => (\n \n ))}\n \n
\n
\n )\n })}\n
\n\n

Imported result

\n {this.state.mappedData && (\n \n \n \n \n \n \n \n \n \n \n {this.state.mappedData.slice(0, 5).map((row, i) => (\n \n \n {row.image}\n \n \n {row.lng}\n \n \n {row.lat}\n \n \n {row.z}\n \n \n ))}\n \n
{attributes.image}{attributes.lng}{attributes.lat}{attributes.z}
\n )}\n {(this.state.error && (\n {this.state.error}\n )) ||\n (this.state.info && (\n {this.state.info}\n ))}\n \n
\n \n
\n \n \n Save\n \n
\n
\n \n )\n }\n\n onMappingChange(mapping, event) {\n const column =\n event.target.value !== 'not_used' ? event.target.value : undefined\n const nextMapping = [...this.state.mapping]\n\n if (mapping !== undefined) {\n nextMapping.forEach((m, i) => {\n if (m === mapping) {\n nextMapping[i] = undefined\n }\n })\n }\n\n nextMapping[column] = mapping\n\n this.updateMapping(nextMapping)\n }\n\n updateMapping(nextMapping) {\n const missing = ['image', 'lng', 'lat', 'z'].filter(\n attrib => !nextMapping.find(x => x === attrib)\n )\n const mappedData = mapData(\n nextMapping,\n this.state.skipHeader,\n this.state.data\n )\n\n const unmappedImages = new Set(this.props.imageFilenames)\n const numberMappedRows = mappedData.reduce(\n (nDeleted, d) => nDeleted + (unmappedImages.delete(d.image) ? 1 : 0),\n 0\n )\n const minMappedImages = !this.props.skipMinimumNumberMapped\n ? Math.ceil(this.props.imageFilenames.length * 0.05)\n : 0\n\n this.setState({\n mapping: nextMapping,\n mappedData,\n error:\n missing.length > 0\n ? `Please define columns for ${missing\n .map(m => attributes[m])\n .join(', ')}.`\n : numberMappedRows < minMappedImages\n ? `Too few images (${numberMappedRows}) georeferenced; at least ${minMappedImages} should be referenced.`\n : null,\n info: `${numberMappedRows} images georeferenced, ${\n unmappedImages.size\n } images are not georeferenced, ${\n mappedData.length - numberMappedRows\n } unused rows.`,\n })\n }\n\n onClose(save) {\n const imageNames = new Set(this.props.imageFilenames)\n\n this.props.onClose(\n save,\n save && this.state.mappedData.filter(row => imageNames.has(row.image))\n )\n }\n}\n\nconst guessCsvMappings = (columnMappings, csv) => {\n const headings = csv[0]\n if (headings[0].startsWith('#')) {\n headings[0] = headings[0].substr(1).trim()\n }\n return headings.map(header =>\n Object.keys(columnMappings).find(key =>\n columnMappings[key].find(m => m === header.trim().toLowerCase())\n )\n )\n}\n\nconst mapData = (mapping, skipHeader, data) =>\n data.slice(skipHeader ? 1 : 0).map(cols =>\n mapping.reduce((a, m, i) => {\n if (m) {\n a[m] = cols[i]\n }\n return a\n }, {})\n )\n\nImagePositionImport.propTypes = {\n imageFilenames: PropTypes.array,\n file: PropTypes.string,\n show: PropTypes.bool,\n skipMinimumNumberMapped: PropTypes.bool,\n onClose: PropTypes.func,\n}\n","import { quotaToString } from '../../cost'\nimport { areaToString } from '../../units'\n\nconst quotaName = {\n project: ['', 'upload'],\n plant_count: ['', 'plant count'],\n credit: ['€', ''],\n}\n\nexport function costToString(\n {\n totals,\n meta: {\n cost_units: costUnits,\n cost_variable: costVariable,\n captures_per_unit: capturesPerUnit,\n area_per_unit: areaPerUnit,\n currency_symbol: currencySymbol,\n },\n units,\n },\n emptyWhenDefault = true\n) {\n // Don't show if cost is 1 (which is the \"normal\" cost)\n const showCost = !emptyWhenDefault || costUnits > 1\n\n if (showCost) {\n const costKeys = Object.keys(totals)\n const costVariableStr =\n costVariable === 'captures' ? 'number of captures' : 'the area'\n const costLimit =\n costVariable === 'captures' ? capturesPerUnit : areaPerUnit\n const costKey = costKeys.find(q => totals[q].amount > 0)\n const costLimitStr =\n costVariable === 'captures'\n ? costLimit\n : areaToString(costLimit, units, {})\n\n return `This upload will count as ${quotaToString(\n costKey,\n totals[costKey].amount,\n currencySymbol\n )} because ${costVariableStr} exceeds ${costLimitStr}.`\n } else {\n return null\n }\n}\n\nexport function insufficientQuotaMessage({ totals }) {\n const firstInsufficient = Object.keys(totals).find(k => !totals[k].sufficient)\n if (firstInsufficient) {\n if (firstInsufficient !== 'credit') {\n return `You don't have enough ${quotaName[firstInsufficient][1]}s or credit remaining.`\n } else {\n return `You don't have enough credit remaining.`\n }\n } else {\n return null\n }\n}\n\nexport function costHasInsufficientQuota({ totals }) {\n return Object.values(totals).some(c => !c.sufficient)\n}\n","import PropTypes from 'prop-types'\n\nexport const cost = PropTypes.shape({\n meta: PropTypes.shape({\n area_per_unit: PropTypes.number.isRequired,\n captures_per_unit: PropTypes.number.isRequired,\n cost_units: PropTypes.number.isRequired,\n cost_variable: PropTypes.string.isRequired,\n }).isRequired,\n totals: PropTypes.shape({\n project: PropTypes.object,\n plant_count: PropTypes.object,\n credit: PropTypes.object,\n }).isRequired,\n})\n\nexport const pipelineProfiles = PropTypes.shape({\n orthomosaic: PropTypes.object,\n geotiff: PropTypes.object,\n individual_images: PropTypes.object,\n '3d': PropTypes.object,\n})\n","import Style from 'ol/style/Style'\nimport Fill from 'ol/style/Fill'\nimport Stroke from 'ol/style/Stroke'\nimport Icon from 'ol/style/Icon'\n\nimport {\n colors,\n createMiniMapUnSelectedFeatureStyle,\n createMiniMapSelectedFeatureStyle,\n} from '../../../ol-styles'\nimport RegularShape from 'ol/style/RegularShape'\n\nexport function createOverviewStyle(selected, selectedGcpId) {\n const includedStyle = selected\n ? createMiniMapSelectedFeatureStyle({\n color: colors.orangeDot,\n strokeColor: colors.orangeDot,\n })\n : createMiniMapUnSelectedFeatureStyle({\n color: colors.greenDot,\n strokeColor: colors.orangeDot,\n })\n const excludedStyle = selected\n ? createMiniMapSelectedFeatureStyle({\n color: colors.grayDot,\n strokeColor: colors.orangeDot,\n })\n : createMiniMapUnSelectedFeatureStyle({\n color: colors.grayDot,\n })\n\n const gcpStyle = new Style({\n image: new Icon({\n src:\n \"data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 700 700'%3e%3cpath fill='%23fff' d='M92 20h510v510H92z'/%3e%3cpath d='M590.05 16.004h-480c-13.32 0-24 10.801-24 24v480c0 13.199 10.68 24 24 24h480c13.199 0 24-10.801 24-24v-480c0-13.199-10.797-24-24-24zm-240 264v246h-240c-3.36 0-6-2.64-6-6v-240h246v-246h240c3.242 0 6 2.64 6 6v240z'/%3e%3c/svg%3e\",\n opacity: selected ? 1 : 0.5,\n }),\n })\n\n return olFeature => {\n return olFeature.get('type') === 'gcp'\n ? gcpStyle\n : olFeature.get('include')[selectedGcpId]\n ? includedStyle\n : excludedStyle\n }\n}\n\nconst stroke = new Stroke({ color: colors.blue, width: 3 })\nconst fill = new Fill({ color: [0, 0, 0, 0] })\nexport const markerStyle = new Style({\n image: new RegularShape({\n fill,\n stroke,\n points: 4,\n radius: 20,\n radius2: 0,\n angle: Math.PI / 4,\n }),\n})\n","export default function getThumbnail(\n image: HTMLImageElement,\n coordinates: number[],\n size: [number, number] = [128, 128]\n): string {\n // OL's Y axis is flipped compared to img's coordinates system\n const thumbCoord = [coordinates[0], -coordinates[1]]\n const canvas = document.createElement('canvas')\n canvas.width = size[0]\n canvas.height = size[1]\n const ctx = canvas.getContext('2d')\n if (ctx) {\n ctx.drawImage(\n image,\n thumbCoord[0] - size[0] / 2,\n thumbCoord[1] - size[1] / 2,\n size[0],\n size[1],\n 0,\n 0,\n size[0],\n size[1]\n )\n\n return canvas.toDataURL('image/jpeg')\n } else {\n throw new Error('Unable to get canvas 2d context')\n }\n}\n","import {\n Feature,\n featureCollection,\n FeatureCollection,\n Point,\n Position,\n} from '@turf/helpers'\nimport { Extent } from 'ol/extent'\nimport { useCallback, useEffect, useMemo, useState } from 'react'\nimport { ImageMapContainer } from '../../ui/shared/individual-images/image-view'\nimport useResizableSplit from '../../../hooks/use-resizable-split'\nimport bbox from '@turf/bbox'\nimport { createOverviewStyle, markerStyle } from './ol-styles'\nimport useMiniMap from '../../ui/shared/individual-images/use-mini-map'\nimport ImagesMap from '../../ui/shared/individual-images/images-map'\nimport GeotaggedImageLayer from '../../geotagged_image_layer'\nimport { maxImageZoom, zIndexes } from '../../../ol-styles'\nimport FeatureSelect from '../../feature-select'\nimport { Projection, transformExtent } from 'ol/proj'\nimport useImage from '../../../hooks/use-image'\nimport ImageLayer from '../../ol/image-layer'\nimport { Collection, Feature as OlFeature, Map, View } from 'ol'\nimport * as olExtent from 'ol/extent'\nimport GreenToggle from '../../ui/elements/green-toggle'\nimport { Point as OlPoint } from 'ol/geom'\nimport VectorSource from 'ol/source/Vector'\nimport VectorLayer from 'ol/layer/Vector'\nimport Modify from 'ol/interaction/Modify'\nimport Style from 'ol/style/Style'\nimport { Image, Gcp } from './types'\nimport thumbnail from './thumbnail'\n\ntype MapViewProps = {\n images: FeatureCollection\n gcps: FeatureCollection\n selectedImage?: Image\n selectedImageFile?: File\n selectedGcp?: Gcp\n includeMarker?: boolean\n markerCoordinates?: Position\n mapboxToken: string\n onSelect: (feature: Feature) => void\n updateMarker?: (\n includeMarker: boolean,\n coordinates: Position,\n thumbnailUrl: string | undefined\n ) => void\n}\n\nexport default function MapView({\n images,\n gcps,\n selectedImage,\n selectedImageFile,\n selectedGcp,\n mapboxToken,\n includeMarker,\n markerCoordinates,\n onSelect,\n updateMarker,\n}: MapViewProps) {\n const mapFeatures = useMemo(\n () =>\n featureCollection([\n ...gcps.features.map(f => ({\n ...f,\n properties: { ...f.properties, type: 'gcp' },\n })),\n ...images.features.map(f => ({\n ...f,\n properties: { ...f.properties, type: 'image' },\n })),\n ]),\n [images, gcps]\n )\n const selection = useMemo(\n () =>\n featureCollection(\n [selectedGcp, selectedImage].filter(Boolean) as Feature[]\n ),\n [selectedGcp, selectedImage]\n )\n\n const unselectedMarkerStyle = useMemo(\n () => createOverviewStyle(false, selectedGcp?.properties.id),\n [selectedGcp]\n )\n const selectedMarkerStyle = useMemo(\n () => createOverviewStyle(true, selectedGcp?.properties.id),\n [selectedGcp]\n )\n const extent = useMemo(() => bbox(images), [images])\n const {\n onDragStart,\n onDrag,\n onDragEnd,\n splitHeight: overviewMapHeight,\n } = useResizableSplit(320)\n const getImageData = useCallback(() => selectedImageFile, [selectedImageFile])\n const { loadedImage: image, status, error, extent: imageExtent } = useImage(\n selectedImage?.properties.originalImageFeature,\n getImageData\n )\n const projection = useMemo(\n () =>\n new Projection({\n code: 'drone-image',\n units: 'pixels',\n extent: imageExtent,\n }),\n [imageExtent]\n )\n const [map, setMap] = useState()\n const width = image?.width\n const height = image?.height\n useEffect(() => {\n if (map && imageExtent && width && height) {\n const view = new View({\n projection: projection,\n center: olExtent.getCenter(imageExtent),\n extent: olExtent.buffer(imageExtent, Math.max(width, height) * 0.05),\n zoom: 2,\n minZoom: 2,\n maxZoom: maxImageZoom,\n })\n map.setView(view)\n }\n }, [imageExtent, width, height, projection, map])\n\n const currentMarkerCoordinates =\n markerCoordinates || (imageExtent && olExtent.getCenter(imageExtent))\n useEffect(() => {\n if (map && imageExtent) {\n const marker = new OlFeature(new OlPoint(currentMarkerCoordinates))\n const source = new VectorSource({ features: [marker] })\n const layer = new VectorLayer({ source, style: markerStyle })\n const translate = new Modify({\n features: new Collection([marker]),\n style: new Style(),\n })\n\n translate.on('modifyend', e => {\n const coordinates = (e.features\n .item(0)\n .getGeometry() as OlPoint)?.getCoordinates()\n if (coordinates) {\n const thumbnailUrl = thumbnail(image, coordinates)\n updateMarker && updateMarker(true, coordinates, thumbnailUrl)\n }\n })\n\n map.addLayer(layer)\n map.addInteraction(translate)\n\n return () => {\n map.removeInteraction(translate)\n map.removeLayer(layer)\n }\n }\n }, [map, currentMarkerCoordinates, imageExtent, updateMarker, image])\n\n return (\n \n
\n
\n \n {selectedImage && (\n <>\n \n updateMarker &&\n updateMarker(\n e.target.checked,\n currentMarkerCoordinates,\n e.target.checked\n ? thumbnail(image, currentMarkerCoordinates)\n : undefined\n )\n }>\n Include Marker\n \n }\n onMapInitialized={setMap}\n error={error}\n />\n {map && image && imageExtent && (\n \n )}\n \n )}\n \n
\n \n \n
\n \n \n \n \n \n )\n}\n\ntype OverviewMapProps = {\n extent: Extent\n features: FeatureCollection\n selectedFeatures: FeatureCollection\n onSelectFeature: (feature: Feature) => void\n style: any\n selectedStyle: any\n mapboxToken: string\n}\n\nfunction OverviewMap({\n extent,\n mapboxToken,\n features,\n selectedFeatures,\n onSelectFeature,\n style,\n selectedStyle,\n}: OverviewMapProps) {\n const [mapContainer, setMapContainer] = useState(\n undefined\n )\n const epsg3857Extent = useMemo(\n () => transformExtent(extent, 'EPSG:4326', 'EPSG:3857'),\n [extent]\n )\n const miniMap = useMiniMap({\n container: mapContainer,\n mapboxToken,\n extent: epsg3857Extent,\n })\n\n const [geotaggedLayer, setGeotaggedLayer] = useState(null)\n useItemInView(miniMap, selectedFeatures)\n\n return (\n <>\n setMapContainer(node || undefined)}>\n {miniMap && (\n <>\n setGeotaggedLayer(layer)}\n onLayerRemoved={() => {\n setGeotaggedLayer(null)\n }}\n />\n ) =>\n features.length > 0 && onSelectFeature(features[0])\n }\n preventDeselect={true}\n />\n \n )}\n \n )\n}\n\nfunction useItemInView(map: Map | undefined, features: FeatureCollection) {\n useEffect(() => {\n if (map && features.features.length) {\n const featureBbox = bbox(features)\n const epsg3857Bbox = transformExtent(\n featureBbox,\n 'EPSG:4326',\n 'EPSG:3857'\n )\n const viewExtent = map.getView().calculateExtent()\n if (!olExtent.intersects(epsg3857Bbox, viewExtent)) {\n map.getView().fit(epsg3857Bbox, {\n maxZoom: 18,\n duration: 250,\n padding: [40, 40, 40, 40],\n })\n }\n }\n }, [map, features])\n}\n","import {\n Feature,\n feature,\n FeatureCollection,\n featureCollection,\n Point,\n Position,\n} from '@turf/helpers'\nimport { useEffect, useMemo, useReducer } from 'react'\nimport OverlaySidebar from '../../ui/shared/overlay-sidebar'\nimport FullScreenOverlay from '../../ui/shared/overlays/fullscreen-overlay'\nimport { ProgressCard } from '../../ui/shared/progress-card'\nimport { getDistance } from 'ol/sphere'\nimport produce from 'immer'\nimport {\n Images,\n Gcps,\n ProjectFile,\n ProjectFileId,\n GcpId,\n Gcp,\n Image,\n RegisterGcpsCallback,\n Markers,\n} from './types'\nimport MapView from './map-view'\nimport Button from '../../ui/elements/button'\nimport ValidationMessage from '../../ui/shared/validation-message'\nimport { getImage } from '../../../exif-utils'\nimport getThumbnail from './thumbnail'\nimport { compare } from '../../../object-utils'\nimport { formatCount } from '../../../string-utils'\n\ntype RegisterGcpsProps = {\n sourceCrs: string\n gcps: Gcps\n markers?: Markers\n images: FeatureCollection\n files: Record\n mapboxToken: string\n onRegister: RegisterGcpsCallback\n onCancel: () => void\n}\n\ntype RegisterGcpState = {\n gcps: Gcps\n images: Images\n selectedGcpId?: GcpId\n selectedImageId?: ProjectFileId\n markers: Markers\n}\n\ntype SelectImage = { type: 'SELECT_IMAGE'; imageId: ProjectFileId }\ntype SelectGcp = { type: 'SELECT_GCP'; gcpId: GcpId }\ntype DeleteGcp = { type: 'DELETE_GCP'; gcpId: GcpId }\ntype UpdateMarker = {\n type: 'UPDATE_MARKER'\n imageId: string\n include: boolean\n coordinates: Position\n thumbnailUrl?: string\n}\ntype Thumbnail = { gcpId: GcpId; imageId: ProjectFileId; thumbnailUrl: string }\ntype SetThumbnails = { type: 'SET_THUMBNAILS'; thumbnails: Thumbnail[] }\n\ntype RegisterGcpAction =\n | SelectImage\n | SelectGcp\n | DeleteGcp\n | UpdateMarker\n | SetThumbnails\n\nexport default function RegisterGcps({\n sourceCrs,\n gcps: initialGcps,\n markers: initialMarkers = {},\n images: initialImages,\n files,\n mapboxToken,\n onRegister,\n onCancel,\n}: RegisterGcpsProps) {\n const [\n { gcps, selectedGcpId, selectedImageId, markers, images },\n dispatch,\n ] = useReducer(reducer, null, createInitialState)\n\n const visibleCaptures = useMemo(findClosestCaptures, [\n images,\n gcps,\n selectedGcpId,\n ])\n const visibleImages = useMemo(\n () =>\n featureCollection(\n visibleCaptures.map(capture => getImageByBandPriority(capture))\n ),\n [visibleCaptures]\n )\n\n useEffect(() => {\n if (\n visibleImages.features.length > 0 &&\n !visibleImages.features.some(\n image => image.properties.id === selectedImageId\n )\n ) {\n dispatch({\n type: 'SELECT_IMAGE',\n imageId: visibleImages.features[0].properties.id,\n })\n }\n }, [visibleImages, selectedImageId])\n\n const selectedImage = visibleImages.features.find(\n image => image.properties.id === selectedImageId\n )\n const selectedImageFile = useMemo(\n () =>\n selectedImage\n ? files[\n selectedImage.properties.originalImageFeature.id?.toString() || ''\n ]\n : undefined,\n [selectedImage, files]\n )\n\n const marker =\n selectedGcpId && selectedImageId\n ? markers[selectedGcpId]?.[selectedImageId]\n : undefined\n\n const [isValid, message] = useMemo(() => {\n const completedGcps = gcps.features.filter(\n gcp => gcp.properties.numberMarkers >= 3\n )\n const incompleteGcps = gcps.features.filter(\n gcp =>\n gcp.properties.numberMarkers > 0 && gcp.properties.numberMarkers < 3\n )\n return [\n completedGcps.length >= 4,\n completedGcps.length < 4\n ? 'Please register at least four GCPs with at least three images in each.'\n : incompleteGcps.length > 0\n ? `${completedGcps.length} of ${formatCount(\n incompleteGcps.length + completedGcps.length,\n 'GCP'\n )} will be used, please register at least three images in each GCP.`\n : null,\n ]\n }, [gcps])\n\n return (\n \n
\n \n
\n
\n {message}\n
\n
\n {gcps.features.map(feature => (\n
\n \n dispatch({\n type: 'SELECT_GCP',\n gcpId: feature.properties.id,\n })\n }>\n
\n
\n
{feature.properties?.name}
\n
\n {feature.geometry.coordinates\n .map((c, i) => c.toFixed(i < 2 ? 5 : 1))\n .join(', ')}\n
\n
\n {markers[feature.properties.id] &&\n Object.keys(markers[feature.properties.id]).map(\n imageId => {\n const marker =\n markers[feature.properties.id][imageId]\n return (\n marker.properties.include &&\n marker.properties.thumbnailUrl && (\n \n )\n )\n }\n )}\n
\n
\n
\n \n
\n ))}\n
\n
\n \n onRegister({\n crs: sourceCrs,\n gcps: gcps.features.map(gcp => ({\n id: gcp.properties.id,\n coordinates: gcp.properties.sourceCoordinates,\n wgs84Coordinates: gcp.geometry.coordinates,\n })),\n markers: Object.keys(markers)\n .map(gcpId =>\n Object.keys(markers[gcpId])\n .filter(\n imageId =>\n markers[gcpId][imageId].properties.include &&\n markers[gcpId][imageId].geometry\n )\n .map(imageId => {\n // Marker's state use OpenLayers coordinates where Y is flipped,\n // result should have \"normal\" Y coordinates where 0 is top and\n // grows downwards\n const olCoord = (markers[gcpId][imageId] as Feature<\n Point\n >).geometry.coordinates\n const coordinates = [olCoord[0], -olCoord[1]]\n return {\n gcpId,\n imageFilename: imageId,\n coordinates,\n }\n })\n )\n .flat(),\n })\n }>\n Register GCPs\n \n \n
\n
\n \n gcp.properties.id === selectedGcpId\n )}\n includeMarker={marker?.properties.include || false}\n markerCoordinates={marker?.geometry?.coordinates}\n onSelect={feature =>\n feature.properties && feature.properties.type === 'gcp'\n ? dispatch({\n type: 'SELECT_GCP',\n gcpId: (feature as Gcp).properties.id,\n })\n : dispatch({\n type: 'SELECT_IMAGE',\n imageId: (feature as Image).properties.id,\n })\n }\n updateMarker={(include, coordinates, thumbnailUrl) =>\n selectedImageId &&\n dispatch({\n type: 'UPDATE_MARKER',\n imageId: selectedImageId,\n include,\n coordinates,\n thumbnailUrl,\n })\n }\n />\n
\n
\n )\n\n function createInitialState(): RegisterGcpState {\n const selectedGcp = initialGcps.features[0]\n const images = featureCollection(\n initialImages.features.map(f => ({\n ...f,\n properties: {\n id: f.id?.toString() || '',\n originalImageFeature: f,\n include: Object.keys(initialMarkers).reduce((a, gcpId) => {\n a[gcpId] =\n initialMarkers[gcpId]?.[\n f.id?.toString() || ''\n ]?.properties.include\n return a\n }, {} as Record),\n },\n }))\n )\n\n const state = {\n gcps: featureCollection([...initialGcps.features]),\n images,\n markers: initialMarkers,\n selectedGcpId: selectedGcp.properties.id,\n }\n\n fetchThumbnails(state.images, state.markers)\n\n return state\n }\n\n function findClosestCaptures() {\n const selectedGcp = gcps.features.find(\n gcp => gcp.properties.id === selectedGcpId\n )\n\n if (selectedGcp) {\n return getClosestCaptures(selectedGcp, images).slice(0, 10)\n } else {\n return []\n }\n }\n\n async function fetchThumbnails(images: Images, markers: Markers) {\n const thumbnails: Thumbnail[] = []\n for (const gcpId in markers) {\n const gcpMarkers = markers[gcpId]\n for (const imageId in gcpMarkers) {\n const marker = gcpMarkers[imageId]\n if (marker.geometry) {\n const imageFeature = images.features.find(\n image => image.properties.id === imageId\n )\n if (!imageFeature) {\n throw new Error(`Could not find image ${imageId}.`)\n }\n const image = await getImage(\n imageFeature.properties.originalImageFeature,\n () => files[imageId].file,\n {\n revokeObjectURL: false,\n }\n )\n await imageLoaded(image)\n\n thumbnails.push({\n gcpId,\n imageId,\n thumbnailUrl: getThumbnail(image, marker.geometry.coordinates),\n })\n URL.revokeObjectURL(image.src)\n }\n }\n }\n\n if (thumbnails.length > 0) {\n dispatch({ type: 'SET_THUMBNAILS', thumbnails })\n }\n }\n}\n\nfunction imageLoaded(image: HTMLImageElement): Promise {\n return new Promise((resolve, reject) => {\n image.onload = () => resolve()\n image.onerror = e =>\n reject(new Error(`Failed to load image: ${e.toString()}`))\n })\n}\n\nfunction reducer(\n state: RegisterGcpState,\n action: RegisterGcpAction\n): RegisterGcpState {\n switch (action.type) {\n case 'SELECT_GCP': {\n const selectedGcp = state.gcps.features.find(\n gcp => gcp.properties.id === action.gcpId\n )\n\n if (!selectedGcp) {\n throw new Error(`No GCP with id ${action.gcpId}`)\n }\n\n return {\n ...state,\n selectedGcpId: action.gcpId,\n }\n }\n case 'DELETE_GCP': {\n const gcpIndex = state.gcps.features.findIndex(\n gcp => gcp.properties.id === action.gcpId\n )\n if (gcpIndex < 0) {\n throw new Error(`No GCP with id ${action.gcpId}.`)\n }\n return produce(state, draft => {\n draft.gcps.features.splice(gcpIndex, 1)\n delete draft.markers[action.gcpId]\n if (draft.selectedGcpId === action.gcpId) {\n draft.selectedGcpId = undefined\n }\n })\n }\n case 'SELECT_IMAGE': {\n if (!state.selectedGcpId) {\n throw new Error(`Selecting an image without a selected GCP`)\n }\n\n const { selectedGcpId } = state\n const selectedImageId = action.imageId\n\n return produce(state, draft => {\n draft.selectedImageId = action.imageId\n ensureGcpImageExists(draft, selectedGcpId, selectedImageId)\n })\n }\n case 'UPDATE_MARKER': {\n if (!state.selectedGcpId) {\n throw new Error(`Selecting an image without a selected GCP`)\n }\n\n const { selectedGcpId, selectedImageId } = state\n\n return produce(state, draft => {\n if (!selectedImageId) {\n throw new Error('No image selected.')\n }\n ensureGcpImageExists(draft, selectedGcpId, selectedImageId)\n const markerFeature = draft.markers[selectedGcpId][action.imageId]\n if (!markerFeature.geometry) {\n markerFeature.geometry = {\n type: 'Point',\n coordinates: action.coordinates,\n }\n } else {\n markerFeature.geometry.coordinates = action.coordinates\n }\n\n markerFeature.properties.include = action.include\n if (action.thumbnailUrl) {\n markerFeature.properties.thumbnailUrl = action.thumbnailUrl\n }\n\n const selectedGcp = draft.gcps.features.find(\n gcp => gcp.properties.id === selectedGcpId\n )\n if (selectedGcp) {\n selectedGcp.properties.numberMarkers = Object.values(\n draft.markers[selectedGcpId]\n ).filter(marker => marker.properties.include).length\n }\n const selectedImage = draft.images.features.find(\n image => image.properties.id === selectedImageId\n )\n if (selectedImage) {\n selectedImage.properties.include[selectedGcpId] = action.include\n }\n })\n }\n case 'SET_THUMBNAILS':\n return produce(state, draft => {\n for (const thumbnail of action.thumbnails) {\n if (draft.markers[thumbnail.gcpId]?.[thumbnail.imageId])\n draft.markers[thumbnail.gcpId][\n thumbnail.imageId\n ].properties.thumbnailUrl = thumbnail.thumbnailUrl\n }\n })\n }\n}\n\nfunction ensureGcpImageExists(\n state: RegisterGcpState,\n gcpId: GcpId,\n imageId: ProjectFileId\n) {\n state.markers[gcpId] ||= {}\n state.markers[gcpId][imageId] ||= feature(null, {\n include: false,\n })\n}\n\nfunction getClosestCaptures(point: Feature, images: Images) {\n const captures = groupByCapture(images)\n\n return captures\n .filter(capture => capture.geometry)\n .sort((a, b) => {\n const distanceA = getDistance(\n point.geometry.coordinates,\n a.geometry.coordinates\n )\n const distanceB = getDistance(\n point.geometry.coordinates,\n b.geometry.coordinates\n )\n return distanceA - distanceB\n })\n}\n\ntype CaptureGroup = { captureId: string; geometry: Point; images: Image[] }\n\nfunction groupByCapture(images: Images): CaptureGroup[] {\n const captures: Record = {}\n for (const image of images.features) {\n const captureId =\n image.properties.originalImageFeature.properties?.capture_id\n if (!captures[captureId]) {\n captures[captureId] = {\n captureId: captureId,\n geometry: image.geometry,\n images: [image],\n }\n } else {\n captures[captureId].images.push(image)\n }\n }\n\n return Object.values(captures)\n}\n\nfunction getImageByBandPriority(capture: CaptureGroup): Image {\n const bandPriority = ['NIR', 'Red edge', 'Red', 'Green', 'Blue']\n if (capture.images[0].properties.originalImageFeature.properties?.band) {\n for (const band of bandPriority) {\n for (const image of capture.images) {\n if (image.properties.originalImageFeature.properties?.band === band) {\n return image\n }\n }\n }\n }\n\n // We don't really know which image is which band, so make\n // an educated guess: if we order files alphabetically, the\n // next last band is often either green or red edge/NIR, so\n // take that one.\n capture.images.sort((a: Image, b: Image) =>\n compare(a.properties.id, b.properties.id)\n )\n return capture.images[Math.max(0, capture.images.length - 2)]\n}\n","import { Extent } from 'ol/extent'\nimport { useState } from 'react'\nimport ApiClient from '../../../api'\nimport ImportPoints from './import-points'\nimport {\n Gcps,\n ProjectFile,\n ProjectFileId,\n RegisterGcpsCallback,\n GcpState,\n Gcp as GcpFeature,\n Markers,\n} from './types'\nimport RegisterGcps from './register-gcps'\nimport {\n FeatureCollection,\n featureCollection,\n Point,\n point,\n} from '@turf/helpers'\n\ntype GcpProps = {\n gcpState?: GcpState\n bounds: Extent\n images: FeatureCollection\n files: Record\n apiClient: ApiClient\n mapboxToken: string\n onRegister: RegisterGcpsCallback\n onCancel: () => void\n}\n\ntype GcpData = {\n sourceCrs: string\n gcps: Gcps\n}\n\nexport default function Gcp({\n gcpState: initialState,\n bounds,\n images,\n files,\n mapboxToken,\n onRegister,\n onCancel,\n}: GcpProps) {\n const [gcpData, setGcps] = useState(\n initialState\n ? {\n sourceCrs: initialState.crs,\n gcps: featureCollection(\n initialState.gcps.map(\n ({ id, coordinates, wgs84Coordinates }): GcpFeature =>\n point(wgs84Coordinates, {\n id,\n name: id,\n numberMarkers: initialState.markers.filter(\n ({ gcpId }) => gcpId === id\n ).length,\n sourceCoordinates: coordinates,\n })\n )\n ),\n }\n : undefined\n )\n const gcps = gcpData?.gcps\n const [markers] = useState(buildMarkers)\n\n return !gcpData || !gcps ? (\n setGcps({ sourceCrs, gcps })}\n onCancel={onCancel}\n />\n ) : (\n \n )\n\n function buildMarkers() {\n if (initialState) {\n const markers: Markers = {}\n for (const marker of initialState.markers) {\n const gcpMarkers = (markers[marker.gcpId] ||= {})\n const imageCoordinates = marker.coordinates\n // Internally, markers use OpenLayers coordinates where Y is flipped,\n // but external state have \"normal\" Y coordinates where 0 is top and\n // grows downwards\n const coordinates = [imageCoordinates[0], -imageCoordinates[1]]\n gcpMarkers[marker.imageFilename] = point(coordinates, {\n include: true,\n })\n }\n\n return markers\n }\n\n return undefined\n }\n}\n","import { useState, useRef, useMemo } from 'react'\nimport PropTypes from 'prop-types'\nimport Button from '../ui/elements/button'\nimport LinkButton from '../ui/elements/link'\nimport LoadingDots from '../ui/shared/loading-dots'\nimport { v4 as uuid } from 'uuid'\nimport ImagePositionImport from '../image-position-import'\nimport { costToString } from './cost'\nimport { cost as costPropType } from './prop-types'\nimport ValidationMessage from '../ui/shared/validation-message'\nimport PaymentsModal from '../payments/payments-modal'\nimport { getStripe } from '../../utils/get-stripe'\nimport { useProducts } from '../../utils/payment-utils'\nimport Gcp from './gcp'\nimport bbox from '@turf/bbox'\nimport { buffer } from 'ol/extent'\nimport Combobox, { ComboboxWithCreate } from '../ui/elements/combobox'\n\nexport default function UploadFiles({\n crops,\n crop,\n files,\n status,\n farms,\n farmId,\n fieldName,\n fields,\n onFarmChange,\n onFieldNameChange,\n onCropChange,\n onUpload,\n onPermissionsUpdated,\n projectId,\n projectType,\n options,\n onOptionChange,\n gcpEnabled,\n onAddFiles,\n metaData,\n cost,\n validationMessage,\n onUpdateMetadata,\n units,\n mapboxToken,\n apiClient,\n stripeToken,\n currency,\n purchasesEnabled,\n uploadProgress,\n setProcessingOption,\n}) {\n const numberOfFiles = Object.keys(files).length\n const getNumberOfUploadedFiles = () =>\n Object.values(files).filter(file => file.uploadStatus === 'done').length\n const isUploading = status === 'uploading'\n const isDoneUploading = status === 'success'\n const hasUploadError = status === 'error'\n const missingGeoreference =\n metaData && metaData.features.some(f => !f.geometry)\n const hasMissingFiles = useMemo(\n () => Object.keys(files).some(id => !files[id].file),\n [files]\n )\n const inEditMode = !isUploading && !isDoneUploading\n const isOverlappingProject = projectType === 'overlapping'\n const [showGcp, setShowGcp] = useState(false)\n const [gcpState, setGcpState] = useState()\n const [showBuyAddOn, setShowBuyAddOn] = useState(false)\n const [showImportPositions, setImportPositions] = useState(false)\n const [positionsFile, setPositionsFile] = useState(null)\n const positionImportFileInput = useRef()\n const validated = !validationMessage\n const gcpAddOnProduct = useProducts(apiClient).filter(\n ({ id }) => id === 'gcp'\n )\n\n const success = projectType => {\n if (projectType === 'individual') {\n return {\n message: 'Images have been successfully uploaded',\n route: `/projects/${projectId}`,\n linkText: 'Next',\n }\n } else if (projectType === 'overlapping' || projectType === 'geotiff') {\n return {\n message:\n \"Images have been successfully uploaded and processing has started. Once ready, we'll send you an email\",\n route: `/farms`,\n linkText: 'Return home',\n }\n } else {\n throw new Error(`Unknown project type \"${projectType}.`)\n }\n }\n\n const selectedFarmValue = useMemo(() => {\n const farm = farms.find(f => f.id === farmId)\n return farm && { label: farm.name, value: farmId }\n }, [farms, farmId])\n const farmOptions = useMemo(\n () => farms.map(f => ({ label: f.name, value: f.id })),\n [farms]\n )\n const currentFarmFields = useMemo(\n () =>\n fields\n .filter(f => f.farm_id === farmId)\n .sort((a, b) => a.label.localeCompare(b.label)),\n [fields, farmId]\n )\n\n return (\n <>\n
\n
\n

{`${\n inEditMode\n ? 'Upload Images'\n : isUploading\n ? 'Uploading images...'\n : 'Upload complete'\n }`}

\n {!inEditMode && (\n \n {uploadProgress != null\n ? `${uploadProgress.toFixed(0)}%`\n : `${getNumberOfUploadedFiles()}/${numberOfFiles} uploaded`}\n \n )}\n
\n
\n
\n \n Farm\n \n onFarmChange(v.value)}\n disabled={!inEditMode}\n />\n
\n
\n \n Field\n \n ({ value: -1, label }),\n }}\n disabled={!inEditMode}\n onChange={v => onFieldNameChange(v.label)}\n />\n
\n {crops && (\n
\n \n Crop\n \n ({ value: -1, label }),\n }}\n disabled={!inEditMode}\n onChange={v => onCropChange(v.label)}\n />\n
\n )}\n
\n {options.length > 0 && (\n
\n {options.map(({ key, Component }) => {\n return (\n
\n onOptionChange(key, active)}\n />\n
\n )\n })}\n
\n )}\n\n {isOverlappingProject && (gcpEnabled || purchasesEnabled) && (\n
\n {!gcpState ? (\n \n gcpEnabled ? setShowGcp(uuid()) : setShowBuyAddOn(true)\n }>\n Add Ground Control Points\n \n ) : (\n
\n \n {\n gcpState.gcps.filter(p => isValidGcp(p, gcpState.markers))\n .length\n }{' '}\n GCPs registered\n \n setShowGcp(uuid())}>\n Edit\n \n
\n )}\n
\n )}\n {missingGeoreference && (\n
\n {\n positionImportFileInput.current.value = null\n positionImportFileInput.current.click()\n }}>\n Import Image Positions\n \n
\n )}\n\n {cost && inEditMode && (\n {costToString(cost, units)}\n )}\n {isDoneUploading ||\n (hasUploadError && (\n \n {(isDoneUploading && <>{success(projectType).message}) ||\n (hasUploadError &&\n 'Something went wrong when uploading images, please try again')}\n \n ))}\n\n
\n {isDoneUploading && projectId ? (\n \n {success(projectType).linkText}\n \n ) : (\n \n {isUploading ? (\n \n ) : (\n `Upload ${numberOfFiles} ${\n numberOfFiles === 1 ? 'image' : 'images'\n }`\n )}\n \n )}\n
\n\n {gcpEnabled && showGcp && (\n setShowGcp(false)}\n />\n )}\n {\n const file = positionImportFileInput.current.files[0]\n if (file) {\n setPositionsFile(file)\n setImportPositions(true)\n }\n }}\n />\n {positionsFile && showImportPositions && (\n f.file.name)}\n file={positionsFile}\n show={showImportPositions}\n skipMinimumNumberMapped={true}\n onClose={onCloseImportPositions}\n />\n )}\n
\n \n

\n Achieve centimeter-level accuracy with your maps using Ground\n Control Points (GCP).\n

\n

\n GCP is an add-on that allows registering Ground Control Points in\n the images and use them to more accurately georeference the maps.\n

\n \n }\n onDismiss={() => {\n setShowBuyAddOn(false)\n onPermissionsUpdated()\n setShowGcp(uuid())\n }}\n products={gcpAddOnProduct}\n defaultProductId={gcpAddOnProduct[0]?.id}\n createSubscription={subscriptionOptions =>\n apiClient.subscriptions.create({ ...subscriptionOptions })\n }\n getPurchaseUrl={apiClient.user.getPurchaseUrl.bind(apiClient.user)}\n getUserPaymentMethod={apiClient.user.defaultPaymentMethod.bind(\n apiClient.user\n )}\n getStripe={() => getStripe(stripeToken)}\n />\n \n )\n\n function onCloseGcp(state) {\n setShowGcp(false)\n setGcpState(state)\n const [pointsCsv, markersCsv] = createGcpFiles(state)\n\n if (pointsCsv.length > 0 && markersCsv.length > 0) {\n onAddFiles([\n new File([pointsCsv], 'gcp_markers.csv', { type: 'text/csv' }),\n new File([markersCsv], 'gcp_projections.csv', { type: 'text/csv' }),\n ])\n\n setProcessingOption('gcpCrs', state.crs)\n }\n }\n\n function onCloseImportPositions(save, positions) {\n setImportPositions(false)\n if (save) {\n const existingFeatures = {}\n for (const position of positions) {\n const existingFeature = metaData.features.find(\n f => f.properties.filename === position.image\n )\n if (existingFeature) {\n existingFeatures[position.image] = existingFeature\n } else {\n console.warn(\n `Could not find a matching feature for image ${position.image}`\n )\n }\n }\n\n const positionsCsv = positions\n .filter(p => !!existingFeatures[p.image])\n .map(p =>\n [existingFeatures[p.image].id, p.lng, p.lat, p.z]\n .filter(x => x)\n .join(',')\n )\n .join('\\n')\n onAddFiles([\n new File([positionsCsv], 'camera_positions.csv', { type: 'text/csv' }),\n ])\n const newFeatures = positions.map(p => {\n const existingFeature = existingFeatures[p.image]\n return (\n existingFeature && {\n ...existingFeature,\n geometry: {\n type: 'Point',\n coordinates: [p.lng, p.lat, p.z].map(Number),\n },\n properties: {\n ...existingFeature.properties,\n latitude: Number(p.lat),\n longitude: Number(p.lng),\n absolute_altitude: Number(p.z),\n },\n }\n )\n })\n onUpdateMetadata({\n geojson: { type: 'FeatureCollection', features: newFeatures },\n })\n }\n }\n}\n\nUploadFiles.propTypes = {\n crops: PropTypes.array,\n files: PropTypes.object,\n projectId: PropTypes.number,\n projectType: PropTypes.string,\n crop: PropTypes.string,\n status: PropTypes.string,\n fieldName: PropTypes.string,\n fields: PropTypes.array,\n onFieldNameChange: PropTypes.func,\n onCropChange: PropTypes.func,\n onUpload: PropTypes.func,\n farms: PropTypes.array,\n farmId: PropTypes.number,\n onFarmChange: PropTypes.func,\n options: PropTypes.array,\n onOptionChange: PropTypes.func,\n onPermissionsUpdated: PropTypes.func,\n gcpEnabled: PropTypes.bool,\n onAddFiles: PropTypes.func,\n metaData: PropTypes.object,\n cost: costPropType,\n validationMessage: PropTypes.node,\n onUpdateMetadata: PropTypes.func,\n units: PropTypes.string,\n mapboxToken: PropTypes.string,\n apiClient: PropTypes.shape({\n subscriptions: PropTypes.shape({ create: PropTypes.func }),\n user: PropTypes.shape({\n defaultPaymentMethod: PropTypes.func,\n getPurchaseUrl: PropTypes.func,\n }),\n }),\n stripeToken: PropTypes.string,\n currency: PropTypes.string,\n purchasesEnabled: PropTypes.bool,\n uploadProgress: PropTypes.number,\n setProcessingOption: PropTypes.func,\n}\n\nexport function createGcpFiles({ gcps, markers }) {\n const validGcps = gcps.filter(p => isValidGcp(p, markers))\n const pointsCsv = validGcps\n .map(p => [p.id, ...p.coordinates].join(','))\n .join('\\n')\n const markersCsv = markers\n .filter(m => validGcps.some(gcp => gcp.id === m.gcpId))\n .map(m =>\n [\n m.gcpId,\n m.imageFilename.substring(0, m.imageFilename.lastIndexOf('.')),\n ...m.coordinates,\n ].join(',')\n )\n .join('\\n')\n\n return [pointsCsv, markersCsv]\n}\n\nfunction isValidGcp(gcp, markers) {\n return markers.filter(marker => marker.gcpId === gcp.id).length >= 3\n}\n","import { useEffect, useState } from 'react'\nimport PropTypes from 'prop-types'\nimport { Properties, Property } from '../ui/shared/properties'\nimport { getImage } from '../../exif-utils'\nimport { distanceToString } from '../../units'\n\nexport default function FileMetadata({\n lastSelectedCaptureFeatures,\n lastSelectedFiles,\n units,\n}) {\n const [imgsrc, setImgsrc] = useState([])\n\n const getPreviewImage = () => {\n if (lastSelectedCaptureFeatures && lastSelectedFiles) {\n const imageFeature = lastSelectedCaptureFeatures[0]\n const file = lastSelectedFiles.find(file => file.id === imageFeature.id)\n .file\n if (file) {\n return getImage(imageFeature, () => file, {\n bands: guessBands(imageFeature),\n })\n }\n }\n return Promise.resolve()\n }\n\n useEffect(() => {\n getPreviewImage().then(img => {\n if (img) {\n setImgsrc([img.src])\n }\n })\n }, [lastSelectedFiles])\n\n return (\n (lastSelectedCaptureFeatures && lastSelectedFiles && (\n
\n {imgsrc.map(src => (\n \n ))}\n
\n {lastSelectedCaptureFeatures.length > 1 && (\n
Images in capture
\n )}\n {lastSelectedCaptureFeatures.map(feature => (\n \n {feature.properties.filename}\n {!lastSelectedFiles.find(f => f.id === feature.id).file ? (\n \n ) : !feature.geometry ? (\n \n ) : null}\n

\n ))}\n
\n \n x)\n .join(' ') || 'Unknown'\n }\n />\n \n \n {(lastSelectedCaptureFeatures[0].properties.relative_altitude && (\n \n )) || (\n \n )}\n \n
\n )) || (\n
\n

NO IMAGE SELECTED

\n
\n )\n )\n}\n\nFileMetadata.propTypes = {\n imageFeature: PropTypes.object,\n file: PropTypes.object,\n units: PropTypes.string,\n lastSelectedCaptureFeatures: PropTypes.array,\n lastSelectedFiles: PropTypes.array,\n}\n\nfunction guessBands(imageFeature) {\n if (\n imageFeature.properties.model &&\n imageFeature.properties.model.toLowerCase() === 'maia'\n ) {\n return 'rrr'\n } else {\n return null\n }\n}\n","import { useRef, useEffect, useState, useContext, useMemo } from 'react'\nimport PropTypes from 'prop-types'\nimport FileList from './file-list'\n\nimport Map from 'ol/Map'\nimport View from 'ol/View'\nimport TileLayer from 'ol/layer/Tile'\nimport XYZSource from 'ol/source/XYZ'\nimport Style from 'ol/style/Style'\nimport Fill from 'ol/style/Fill'\nimport Stroke from 'ol/style/Stroke'\nimport Circle from 'ol/style/Circle'\n\nimport PreviewMapFeatureSelect from './preview-map-feature-select'\nimport PreviewMapLayer from './preview-map-layer'\n\nimport UploadFiles from './upload-files'\nimport FileMetadata from './file-metadata'\n\nimport { CreateProjectDispatch } from './create-project'\nimport LoadingDots from '../ui/shared/loading-dots'\nimport Blur from '../ui/shared/blur'\n\nimport { cost as costPropType } from './prop-types'\nimport { maxOrthoZoom } from '../../ol-styles'\n\nexport default function PreviewFiles({\n files,\n captures: groupedFileList,\n mapboxToken,\n metaData,\n metadataInitializing,\n crops,\n farms,\n farmId,\n fields,\n fieldName,\n crop,\n lastSelected,\n status,\n units,\n projectId,\n projectType,\n options,\n cameraProperties,\n gcpEnabled,\n cost,\n validationMessage,\n isMissingFiles,\n hasMetaDataErrors,\n apiClient,\n stripeToken,\n purchasesEnabled,\n currency,\n allowChanges,\n}) {\n const previewFilesMapRef = useRef(null)\n const [map, setMap] = useState(null)\n const [geotaggedLayer, setGeotaggedLayer] = useState(null)\n const dispatch = useContext(CreateProjectDispatch)\n // TODO: could probably just be !metadataInitializing, but I\n // don't have the time to properly test this\n const metaDataInitialized =\n !metadataInitializing || (!metaData && hasMetaDataErrors)\n\n useEffect(() => {\n const map = new Map({\n target: previewFilesMapRef.current,\n logo: false,\n controls: [],\n layers: [\n new TileLayer({\n source: new XYZSource({\n maxZoom: 17,\n tileSize: [512, 512],\n url:\n 'https://api.mapbox.com/styles/v1/mapbox/satellite-streets-v11/tiles/{z}/{x}/{y}?access_token=' +\n mapboxToken,\n }),\n }),\n ],\n view: new View({\n maxZoom: maxOrthoZoom,\n center: [0, 0],\n zoom: 3,\n }) /* 24 corresponds to about 1cm/px */,\n })\n setMap(map)\n }, [mapboxToken, previewFilesMapRef])\n\n // TODO ONLY Captureid?\n const onSelectImagesInMap = featureCollection => {\n const captureIds = featureCollection.features.map(\n f => f.properties.capture_id\n )\n const fileIds = Array.prototype.concat.apply(\n [],\n captureIds.map(captureId => groupedFileList[captureId])\n )\n dispatch({\n type: 'SELECT_FILES',\n payload: fileIds,\n })\n dispatch({\n type: 'SET_LAST_SELECTED',\n payload: captureIds[0],\n })\n }\n const onDeselectImagesInMap = featureCollection => {\n const properties = featureCollection.features[0].properties\n\n dispatch({\n type: 'UNSELECT_FILES',\n payload: groupedFileList[properties.capture_id],\n })\n\n if (lastSelected === properties.capture_id) {\n dispatch({\n type: 'SET_LAST_SELECTED',\n payload: null,\n })\n }\n }\n\n const lastSelectedCaptureFeatures = useMemo(\n () =>\n lastSelected &&\n metaData?.features?.filter(\n feature => feature.properties.capture_id === lastSelected\n ),\n [lastSelected]\n )\n const lastSelectedFiles = useMemo(\n () =>\n lastSelected &&\n groupedFileList[lastSelected].map(fileId => files[fileId]),\n [lastSelected]\n )\n\n const uploadedFiles = useMemo(\n () =>\n new Set(\n groupedFileList\n ? Object.keys(groupedFileList).filter(key =>\n groupedFileList[key].every(\n fileId => files[fileId].uploadStatus === 'done'\n )\n )\n : []\n ),\n [files, groupedFileList]\n )\n const selectedCaptures = useMemo(() => {\n return new Set(\n groupedFileList\n ? Object.keys(groupedFileList).filter(key =>\n groupedFileList[key].every(fileId => files[fileId].isSelected)\n )\n : []\n )\n }, [files, groupedFileList])\n\n return (\n <>\n
\n
\n
\n \n {!metaDataInitialized && (\n
\n
\n

\n Please wait, examining images...\n

\n \n
\n
\n )}\n
\n {status === 'success' && }\n \n \n dispatch({ type: 'UPDATE_FARM_ID', payload: farmId })\n }\n onFieldNameChange={fieldName =>\n dispatch({ type: 'UPDATE_FIELD_NAME', payload: fieldName })\n }\n onCropChange={crop =>\n dispatch({ type: 'UPDATE_CROP', payload: crop })\n }\n onUpload={() => dispatch({ type: 'BEGIN_UPLOAD' })}\n options={options}\n onOptionChange={(key, active) =>\n dispatch({ type: 'SET_OPTION', payload: { key, active } })\n }\n validationMessage={validationMessage}\n gcpEnabled={gcpEnabled}\n onAddFiles={files =>\n dispatch({ type: 'ADD_EXTRA_FILES', payload: files })\n }\n onUpdateMetadata={metadata =>\n dispatch({ type: 'UPDATE_METADATA', payload: metadata })\n }\n onPermissionsUpdated={async () => {\n dispatch({\n type: 'UPDATE_PERMISSIONS',\n payload: await apiClient.getCurrentPermissions(),\n })\n }}\n setProcessingOption={(option, value) =>\n dispatch({\n type: 'SET_PROCESSING_OPTION',\n payload: { key: option, value },\n })\n }\n />\n
\n
\n \n \n {map && metaData && (\n <>\n {\n setGeotaggedLayer(layer)\n }}\n onLayerUpdate={layer => {\n setGeotaggedLayer(layer)\n }}\n onLayerRemoved={() => {\n setGeotaggedLayer(null)\n }}\n />\n \n \n )}\n \n )\n}\n\nPreviewFiles.propTypes = {\n files: PropTypes.object.isRequired,\n allSelected: PropTypes.bool,\n mapboxToken: PropTypes.string,\n metaData: PropTypes.object,\n metadataInitializing: PropTypes.bool,\n crops: PropTypes.array,\n units: PropTypes.string,\n projectId: PropTypes.number,\n captures: PropTypes.object,\n farms: PropTypes.array,\n farmId: PropTypes.number,\n fields: PropTypes.array,\n fieldName: PropTypes.string,\n crop: PropTypes.string,\n lastSelected: PropTypes.string,\n status: PropTypes.string,\n projectType: PropTypes.string,\n options: PropTypes.array,\n cameraProperties: PropTypes.object,\n gcpEnabled: PropTypes.bool,\n cost: costPropType,\n validationMessage: PropTypes.node,\n isMissingFiles: PropTypes.bool,\n hasMetaDataErrors: PropTypes.bool,\n apiClient: PropTypes.object,\n stripeToken: PropTypes.string,\n purchasesEnabled: PropTypes.bool,\n currency: PropTypes.string,\n allowChanges: PropTypes.bool,\n}\n","import { useMemo, useState } from 'react'\nimport Button from '../ui/elements/button'\nimport ModalOverlay, {\n ModalOverlayContent,\n ModalOverlayFooter,\n} from '../ui/shared/overlays/modal-overlay'\nimport bandOrders from '../../band-orders'\nimport Select from '../ui/elements/select'\nimport ValidationMessage from '../ui/shared/validation-message'\nimport InfoText from '../ui/shared/info-text'\n\ntype BandsModal = {\n numberBands: number\n bands: string\n show: boolean\n onSave: (bands: string) => void\n onDismiss: () => void\n}\n\nconst bandOptions: [string, string, string][] = [\n [' ', 'Not mapped', 'tw-text-system-grey-200 tw-bg-system-grey-100'],\n ['r', 'Red', 'tw-text-danger-200 tw-bg-danger-100'],\n ['g', 'Green', 'tw-text-success-300 tw-bg-success-100'],\n ['b', 'Blue', 'tw-text-primary-300 tw-bg-primary-100'],\n ['n', 'NIR', 'tw-text-system-grey-400 tw-bg-system-grey-100'],\n ['e', 'Red edge', 'tw-text-system-grey-400 tw-bg-system-grey-100'],\n ['t', 'Thermal', 'tw-text-system-grey-400 tw-bg-system-grey-100'],\n ['a', 'Alpha', 'tw-text-system-grey-400 tw-bg-white'],\n]\n\nexport default function BandsModal({\n numberBands,\n bands: initialBands,\n show,\n onSave,\n onDismiss,\n}: BandsModal) {\n const [bands, setBands] = useState(initialBands)\n const [valid, configurationName] = useBandsConfiguration(\n bands,\n numberBands,\n false\n )\n\n return (\n \n \n
\n \n Please choose band configuration for the Orthomosaic\n \n
\n
\n {Array.from({ length: numberBands }).map((_, i) => (\n \n
\n Band {i + 1}\n
\n {\n const newValue = e.target.value\n const nextBands = Array.from(bands)\n const currentIndex = bands.indexOf(newValue)\n if (currentIndex >= 0) {\n nextBands[currentIndex] = nextBands[i]\n }\n nextBands[i] = newValue\n setBands(nextBands.join(''))\n }}>\n {bandOptions.map(([id, name, className]) => (\n \n ))}\n \n
\n ))}\n \n
\n {valid ? (\n <>\n
\n Current configuration\n
\n
{configurationName || 'Custom configuration'}
\n \n ) : (\n Please map all bands\n )}\n
\n
\n \n
\n onSave(bands)}>\n Save\n \n \n
\n
\n
\n )\n}\n\nexport function useBandsConfiguration(\n bands: string | undefined,\n numberBands: number | undefined,\n short: boolean\n) {\n return useMemo(() => {\n if (\n !bands ||\n numberBands == null ||\n bands?.length !== numberBands ||\n bands?.includes(' ')\n )\n return [false, 'Incomplete band configuration']\n\n const joinedBands = [...bands]\n .map(\n b =>\n bandOptions.find(\n ([bandAbbreviation]) => bandAbbreviation === b\n )?.[1] || b\n )\n .join(', ')\n\n if (!short || joinedBands.length < 40) {\n return [true, joinedBands]\n } else {\n return [true, bands]\n }\n }, [bands, numberBands, short])\n}\n","import { useEffect, useState } from 'react'\nimport PropTypes from 'prop-types'\nimport { Properties, Property } from '../ui/shared/properties'\nimport { getImage } from '../../exif-utils'\nimport { areaToString } from '../../units'\nimport area from '@turf/area'\nimport Button from '../ui/elements/button'\nimport BandsModal, { useBandsConfiguration } from './bands-modal'\nimport { getDefaultDisplayBands } from '../../ortho-utils'\n\nexport default function GeoTIFFMetadata({\n file,\n imageFeature,\n units,\n setImageProperties,\n}) {\n const [imgsrc, setImgsrc] = useState(null)\n\n useEffect(() => {\n setImgsrc(null)\n getPreviewImage()\n .then(img => {\n if (img) {\n setImgsrc(img.src)\n }\n })\n .catch(err => console.debug('Failed to get preview image', err))\n\n function getPreviewImage() {\n try {\n if (imageFeature) {\n const bands = imageFeature.properties.bands\n return getImage(imageFeature, () => file, {\n maxDimensions: { width: 1024, height: 1024 },\n bands: getDefaultDisplayBands(bands),\n })\n }\n } catch (err) {\n console.warn('Failed to get preview image', err)\n }\n return Promise.resolve()\n }\n }, [file, imageFeature])\n\n const properties = imageFeature && imageFeature.properties // check length\n const bbox = imageFeature && imageFeature.bbox // check length\n const [bandsValid, bandConfigurationName] = useBandsConfiguration(\n properties?.bands,\n properties?.samplesPerPixel,\n true\n )\n const [showBandModal, setShowBandModal] = useState(false)\n\n return (\n (properties && (\n <>\n
\n \n
\n

\n {properties.filename}\n

\n \n \n \n \n \n \n \n setShowBandModal(true)}>\n {bandsValid ? bandConfigurationName : 'Not Selected'}\n \n }\n />\n \n
\n
\n {\n setImageProperties({ ...properties, bands })\n setShowBandModal(false)\n }}\n onDismiss={() => setShowBandModal(false)}\n />\n \n )) || (\n
\n

No preview available

\n
\n )\n )\n\n function formatDegrees(x, prefixes) {\n return `${x >= 0 ? prefixes[0] : prefixes[1]} ${Math.abs(x).toFixed(4)}°`\n }\n}\n\nGeoTIFFMetadata.propTypes = {\n imageFeature: PropTypes.object,\n file: PropTypes.object,\n units: PropTypes.string,\n setImageProperties: PropTypes.func.isRequired,\n}\n","import { useRef, useContext, useEffect, useState, useMemo } from 'react'\nimport UploadFiles from './upload-files'\nimport Blur from '../ui/shared/blur'\nimport { CreateProjectDispatch } from './create-project'\nimport Map from 'ol/Map'\nimport View from 'ol/View'\nimport TileLayer from 'ol/layer/Tile'\nimport XYZSource from 'ol/source/XYZ'\nimport PreviewMapLayer from './preview-map-layer'\nimport { createInteractivePolygonStyle, maxOrthoZoom } from '../../ol-styles'\nimport GeoTIFFMetadata from './geotiff-metadata'\nimport FilePicker from './file-picker'\nimport Button from '../ui/elements/button'\nimport PropTypes from 'prop-types'\nimport { featureCollection } from '@turf/helpers'\n\nexport default function PreviewGeoTIFF({\n files,\n metaData,\n mapboxToken,\n farms,\n farmId,\n fields,\n fieldName,\n crop,\n crops,\n status,\n units,\n projectId,\n projectType,\n options,\n validationMessage,\n isMissingFiles,\n gcpEnabled,\n apiClient,\n stripeToken,\n purchasesEnabled,\n uploadedBytes,\n totalBytes,\n canAddNew,\n}) {\n const dispatch = useContext(CreateProjectDispatch)\n const mapContainerRef = useRef()\n const [map, setMap] = useState(null)\n const polygonStyle = useMemo(() => createInteractivePolygonStyle(), [])\n\n const metaDataInitialized = metaData && metaData.features.length > 0\n\n useEffect(() => {\n const map = new Map({\n target: mapContainerRef.current,\n logo: false,\n controls: [],\n layers: [\n new TileLayer({\n source: new XYZSource({\n maxZoom: 17,\n tileSize: [512, 512],\n url:\n 'https://api.mapbox.com/styles/v1/mapbox/satellite-streets-v11/tiles/{z}/{x}/{y}?access_token=' +\n mapboxToken,\n }),\n }),\n ],\n view: new View({\n maxZoom: maxOrthoZoom,\n center: [0, 0],\n zoom: 3,\n }) /* 24 corresponds to about 1cm/px */,\n })\n setMap(map)\n\n return () => {\n setMap(undefined)\n map.setTarget(null)\n }\n }, [mapboxToken, mapContainerRef])\n\n const fileValues = files && Object.values(files)\n const file = fileValues && fileValues[0] && fileValues[0].file\n const invalidFile = file && metaData && metaData.features.length === 0\n const canAddFile = canAddNew || !fileValues[0].file\n\n return (\n <>\n
\n
\n
\n
\n {status === 'success' && }\n {!invalidFile ? (\n
\n {\n dispatch({\n type: 'UPDATE_METADATA',\n payload: {\n geojson: featureCollection([\n { ...metaData.features[0], properties },\n ]),\n exif: [],\n },\n })\n dispatch({\n type: 'SET_PROCESSING_OPTION',\n payload: {\n key: 'bands',\n value: properties.bands,\n },\n })\n }}\n />\n
\n ) : (\n
\n Could not read selected file, please make sure it is a valid\n GeoTIFF.\n
\n )}\n {canAddFile ? (\n {\n dispatch({ type: 'RESET_FILES' })\n }}>\n {!isMissingFiles ? 'Select File' : 'Add Missing File'}\n \n ) : null}\n {!invalidFile && !file && (\n \n dispatch({ type: 'UPDATE_FILES', payload: files })\n }\n value={files}\n />\n )}\n
\n \n dispatch({ type: 'UPDATE_FARM_ID', payload: farmId })\n }\n onFieldNameChange={fieldName =>\n dispatch({ type: 'UPDATE_FIELD_NAME', payload: fieldName })\n }\n onCropChange={crop =>\n dispatch({ type: 'UPDATE_CROP', payload: crop })\n }\n onPermissionsUpdated={async () => {\n dispatch({\n type: 'UPDATE_PERMISSIONS',\n payload: await apiClient.getCurrentPermissions(),\n })\n }}\n onUpload={() => dispatch({ type: 'BEGIN_UPLOAD' })}\n options={options}\n onOptionChange={(key, active) =>\n dispatch({ type: 'SET_OPTION', payload: { key, active } })\n }\n validationMessage={validationMessage}\n gcpEnabled={gcpEnabled}\n purchasesEnabled={purchasesEnabled}\n onAddFiles={files =>\n dispatch({ type: 'ADD_EXTRA_FILES', payload: files })\n }\n uploadProgress={\n totalBytes > 0 ? (uploadedBytes / totalBytes) * 100 : undefined\n }\n />\n
\n
\n
\n \n {map && metaData && (\n {}}\n onLayerUpdate={() => {}}\n onLayerRemoved={() => {}}\n />\n )}\n \n )\n}\n\nPreviewGeoTIFF.propTypes = {\n files: PropTypes.object,\n metaData: PropTypes.object,\n mapboxToken: PropTypes.string,\n farms: PropTypes.array,\n farmId: PropTypes.number,\n fields: PropTypes.array,\n fieldName: PropTypes.string,\n crop: PropTypes.string,\n crops: PropTypes.array,\n status: PropTypes.string,\n units: PropTypes.string,\n projectId: PropTypes.number,\n projectType: PropTypes.string,\n options: PropTypes.array,\n validationMessage: PropTypes.string,\n isMissingFiles: PropTypes.bool,\n gcpEnabled: PropTypes.bool,\n apiClient: PropTypes.object,\n stripeToken: PropTypes.string,\n purchasesEnabled: PropTypes.bool,\n uploadedBytes: PropTypes.number,\n totalBytes: PropTypes.number,\n canAddNew: PropTypes.bool,\n}\n","import { blobToImage, scaleAndRotate, copyExif } from '../../exif-utils'\nimport uuidv4 from 'uuid/v4'\nimport { logException } from '../../logger'\n\nconst sourceImagerGeojsonFilename = 'source-imagery.geojson'\nconst sourceImagerGeojsonPath = `results/${sourceImagerGeojsonFilename}`\n\nexport async function createProject({\n apiClient,\n farmId,\n fieldName,\n crop,\n metaData,\n cameraProperties,\n options: uploadOptions,\n projectType,\n processingOptions,\n pipelineProfiles,\n}) {\n const features = metaData.features\n const projectOptions = {\n project_type: getBackendProjectType(projectType),\n ...getProjectOptions(uploadOptions, features),\n }\n\n const { id } = await apiClient.createProject(\n farmId,\n fieldName,\n projectOptions,\n {\n crop,\n relative_altitude: median(\n features.map(f => f.properties.relative_altitude)\n ),\n absolute_altitude: median(\n features.map(f => f.properties.absolute_altitude)\n ),\n camera: getCameraName(features),\n camera_properties: cameraProperties,\n number_cameras: features.length,\n processing_options: {\n ...processingOptions,\n ...getProcessingOptions(uploadOptions),\n ...pipelineProfiles?.[getBackendProjectType(projectType)],\n },\n resources: [\n {\n id: uuidv4(),\n type: 'source_imagery',\n path: sourceImagerGeojsonPath,\n },\n ],\n created_using: 'web-client',\n },\n metaData\n )\n\n return id\n}\n\nexport async function updateProject({\n projectId,\n apiClient,\n farmId,\n fieldName,\n crop,\n metaData,\n cameraProperties,\n options: uploadOptions,\n projectType,\n processingOptions,\n pipelineProfiles,\n}) {\n const features = metaData.features\n const projectOptions = getProjectOptions(uploadOptions, features)\n await apiClient.updateProject(projectId, {\n ...projectOptions,\n farm_id: farmId,\n fields: fieldName,\n metadata: {\n resources: [\n {\n id: uuidv4(),\n type: 'source_imagery',\n path: sourceImagerGeojsonPath,\n },\n ],\n crop,\n relative_altitude: median(\n features.map(f => f.properties.relative_altitude)\n ),\n absolute_altitude: median(\n features.map(f => f.properties.absolute_altitude)\n ),\n camera: getCameraName(features),\n camera_properties: cameraProperties,\n number_cameras: features.length,\n processing_options: {\n ...processingOptions,\n ...getProcessingOptions(uploadOptions),\n ...pipelineProfiles?.[getBackendProjectType(projectType)],\n },\n project_type: getBackendProjectType(projectType),\n created_using: 'web-client',\n },\n })\n}\n\nexport async function uploadProject({\n projectId: id,\n apiClient,\n files,\n metaData,\n extraFiles,\n projectType,\n options: uploadOptions,\n progressCallback,\n pipelineProfiles,\n processingOptions,\n}) {\n const expressUpload = !!uploadOptions.find(\n o => o.key === 'expressUpload' && o.active\n )\n const fileArray = [\n new File([JSON.stringify(metaData)], sourceImagerGeojsonFilename),\n ...extraFiles,\n ...Object.values(files)\n .filter(f => f.uploadStatus !== 'done')\n .map(f => new File([f.file], f.id, { type: f.file.type })),\n ]\n await apiClient.updateProject(id, { status: 'uploading' })\n if (projectType !== 'geotiff') {\n await apiClient.uploadProjectPhotos(id, fileArray, {\n preproccessCallback,\n progressCallback,\n backOffTime: 15000,\n retries: 7,\n })\n } else {\n const orthoFile = fileArray[fileArray.length - 1]\n await apiClient.uploadProjectPhotos(id, fileArray.slice(0, -1), {\n preproccessCallback,\n progressCallback,\n backOffTime: 15000,\n retries: 7,\n })\n await apiClient.uploadOrtho(id, orthoFile, progressCallback)\n }\n\n await apiClient.startProcessing(id, {\n ...processingOptions,\n ...pipelineProfiles?.[getBackendProjectType(projectType)],\n ...getProcessingOptions(uploadOptions),\n })\n\n return id\n\n function preproccessCallback(f) {\n if (expressUpload && f.type.startsWith('image/')) {\n // Scale down image and make sure original EXIF is copied to\n // the resulting scaled image.\n return blobToImage(f)\n .then(img => {\n const canvas = scaleAndRotate(img, 1, { width: 2000, height: 2000 })\n return new Promise(resolve => {\n canvas.toBlob(blob => {\n return copyExif(f, blob).then(result => {\n result.name = f.name\n resolve(result)\n })\n }, 'image/jpeg')\n })\n })\n .catch(err => {\n logException(err)\n return f\n })\n } else {\n return Promise.resolve(f)\n }\n }\n}\n\nfunction getProjectOptions(uploadOptions, features) {\n return uploadOptions.reduce(\n (os, o) => {\n if (o.active && o.updateProject) {\n o.updateProject(os)\n }\n\n return os\n },\n {\n survey_date: features[0].properties.datetime,\n photos_count: features.length,\n }\n )\n}\n\nfunction getProcessingOptions(uploadOptions) {\n return uploadOptions.reduce((os, o) => {\n if (o.active && o.updateProcessingOptions) {\n o.updateProcessingOptions(os)\n }\n return os\n }, {})\n}\n\nfunction getBackendProjectType(projectType) {\n // Backend use other type names than the create-upload client does\n switch (projectType) {\n case 'individual':\n return 'individual_images'\n case 'overlapping':\n return 'orthomosaic'\n case 'geotiff':\n return 'geotiff'\n default:\n throw new Error(`Unknown project type \"${projectType}.`)\n }\n}\n\nexport function getFrontendProjectType(projectType) {\n // Reverse of getBackendProjectType: given a backend project type,\n // return the corresponding create-upload project type\n switch (projectType) {\n case 'individual_images':\n return 'individual'\n case 'orthomosaic':\n return 'overlapping'\n case 'geotiff':\n return 'geotiff'\n default:\n throw new Error(`Unknown project type \"${projectType}.`)\n }\n}\n\nfunction median(xs) {\n const sorted = xs.filter(x => !!x).sort()\n\n if (sorted.length < 1) return\n\n return sorted.length % 2\n ? sorted[Math.floor(sorted.length / 2)]\n : (sorted[sorted.length / 2] + sorted[sorted.length / 2 + 1]) / 2\n}\n\nfunction getCameraName(features) {\n return [features[0].properties.make, features[0].properties.model]\n .filter(s => !!s)\n .join(' ')\n}\n","import { costHasInsufficientQuota, insufficientQuotaMessage } from './cost'\nimport { areaToString } from '../../units'\nimport intersect from '@turf/intersect'\nimport { intersects } from 'ol/extent'\nimport bbox from '@turf/bbox'\nimport { logMessage } from '../../logger'\n\nexport function getValidationMessage(props, state) {\n const validationState = new ValidationState(state, props)\n\n for (const [prop, messageFn] of validators) {\n if (validationState.get(prop)) {\n return messageFn(validationState)\n }\n }\n\n return null\n}\n\nconst validators = [\n ['failedToLoadAny', () => `Images could not be loaded`],\n ['missingMetadata', () => 'Wait for images to load...'],\n [\n 'isMixedFileType',\n () => 'Please upload JPEG and TIFF images in separate uploads',\n ],\n ['cameraPropertiesError', vs => vs.get('cameraPropertiesError')],\n [\n 'multispectralWithoutPermission',\n () => (\n <>\n Multispectral 6+ band imagery is a feature of the Professional plan.\n Please{' '}\n \n upgrade your plan\n {' '}\n to upload this imagery.\n \n ),\n ],\n [\n 'thermalWithoutPermission',\n () => (\n <>\n Thermal imagery is a feature of the Professional plan. Please{' '}\n \n upgrade your plan\n {' '}\n to upload this imagery.\n \n ),\n ],\n [\n 'unmappedBands',\n () => 'Please choose band configuration for the Orthomosaic',\n ],\n [\n 'isMixedDimensions',\n vs => {\n const dimensions = new Set()\n for (const feature of vs.state.metaData.features) {\n dimensions.add(\n `${feature.properties.width}x${feature.properties.height}`\n )\n }\n const firstDimensions = [...dimensions]\n .slice(0, 2)\n .map(d => `${d} px`)\n .join(' and ')\n\n return `Selected images are of different sizes: ${firstDimensions}. Please select images of one size only.`\n },\n ],\n [\n 'missingFiles',\n vs =>\n vs.state.projectType !== 'geotiff'\n ? 'To resume the upload, click the \"Add Missing Images\" button in the top-left corner and select all images again. The Upload tool will automatically upload only the images not already uploaded.'\n : 'To resume the upload, click the \"Add Missing File\" button to the right and select all images again.',\n ],\n [\n 'isMissingImagesInCaptures',\n () =>\n 'Some captures are missing images. Please, remove them or add the missing images',\n ],\n [\n 'tooFewCaptures',\n vs =>\n vs.get('minCaptures') > 1\n ? `Add at least ${vs.get('minCaptures')} ${\n vs.get('imagesPerCapture') > 1 ? 'captures' : 'images'\n } to upload`\n : 'Please select a GeoTIFF file to upload',\n ],\n [\n 'hasInsufficientQuota',\n vs => (\n <>\n {insufficientQuotaMessage(vs.state.cost)} Please purchase{' '}\n vs.props.callbacks.onBuyCredits()}>\n additional credit\n {' '}\n or{' '}\n \n upgrade subscription\n {' '}\n to process more data.\n \n ),\n ],\n [\n 'tooManyFiles',\n vs => `Up to ${vs.get('maxFiles')} images allowed per upload`,\n ],\n [\n 'tooLargeArea',\n vs =>\n `Area covered by the images is larger than ${areaToString(\n maxArea,\n vs.units,\n {}\n )}`,\n ],\n [\n 'missingGeoreference',\n vs =>\n `${vs.get('numberMissingGeoreference')} ${\n vs.get('numberMissingGeoreference') !== 1 ? 'images are' : 'image is'\n } missing georefence. Remove ${\n vs.get('numberMissingGeoreference') !== 1 ? 'them' : 'it'\n } or use the Import Image Positions tool.`,\n ],\n [\n 'invalidBounds',\n vs =>\n 'The area covered by this image is invalid; check that CRS info is correct.',\n ],\n [\n 'forbiddenArea',\n () =>\n \"This imagery can't be processed. Please contact our support for more information.\",\n ],\n ['missingFieldName', () => 'Please enter a field name before uploading'],\n [\n 'costCalculationFailed',\n () => 'Could not calculate the cost of this upload',\n ],\n [\n 'imagesOutsideField',\n vs =>\n `The selected images are located outside of the boundaries of the field \"${vs.state.fieldName}\". Please, choose another field that matches the location of the images or create a new one.`,\n ],\n]\n\nconst maxArea = 1000 * 10000 // 1000 ha\nconst maxLength = 20000 // 20000 meters\n\nclass ValidationState {\n constructor(state, props) {\n this.state = state\n this.props = props\n this.properties = {}\n }\n\n get(prop) {\n if (!this.properties[prop]) {\n this.properties[prop] = this[prop]()\n }\n\n return this.properties[prop]\n }\n\n failedToLoadAny() {\n return !this.state.metaData && this.state.hasMetaDataErrors\n }\n\n missingMetadata() {\n return (\n !this.state.metaData ||\n this.state.metaData.features.length !== this.get('numberOfFiles')\n )\n }\n\n numberOfFiles() {\n return this.state.files && Object.keys(this.state.files).length\n }\n\n isMixedFileType() {\n let lastExt\n for (const id in this.state.files) {\n const parts = id.split('.')\n const ext = parts[parts.length - 1].toLowerCase()\n if (lastExt && lastExt !== ext) {\n return true\n }\n lastExt = ext\n }\n\n return false\n }\n\n isMixedDimensions() {\n if (this.state.projectType !== 'overlapping') {\n // Mixed dimensions are ok for scouting; geotiff\n // only has one image, so by definition it's not mixed\n return false\n }\n\n const captures = Object.values(this.state.captures || {})\n if (captures.length === 0) return false\n\n const fileIdToFeature = this.state.metaData.features.reduce(\n (acc, feature) => {\n acc[feature.id] = feature\n return acc\n },\n {}\n )\n\n let dimensions = getCaptureDimensions(captures[0])\n\n return captures.some(fileIds => {\n const captureDimensions = getCaptureDimensions(fileIds)\n if (dimensions.length < captureDimensions.length) {\n // The reference capture is incomplete (and will be\n // caught by another validator),\n // use this one as reference instead\n dimensions = captureDimensions\n return false\n }\n\n for (let i = 0; i < captureDimensions.length; i++) {\n const [width, height] = captureDimensions[i]\n if (width !== dimensions[i][0] || height !== dimensions[i][1]) {\n return true\n }\n }\n })\n\n // Returns an array of [width, height] pairs, sorted by width and then height\n // (lexicographically). The reason we sort them is that we currently don't\n // have captures properly sorted by band (they can be in any order), so we\n // need to make sure that we compare the same bands across captures.\n function getCaptureDimensions(fileIds) {\n return fileIds\n .map(fileId => {\n const { width, height } = fileIdToFeature[fileId].properties\n return [width, height]\n })\n .sort(compareWidthHeight)\n }\n function compareWidthHeight(a, b) {\n return a[0] - b[0] || a[1] - b[1]\n }\n }\n\n cameraPropertiesError() {\n return this.state.cameraProperties && this.state.cameraProperties.error\n }\n\n multispectralWithoutPermission() {\n return (\n this.state.cameraProperties?.bands?.length >= 6 &&\n !this.props.permissions.multispectral_upload\n )\n }\n\n thermalWithoutPermission() {\n return (\n this.state.cameraProperties?.bands?.includes('t') &&\n !this.props.permissions.multispectral_upload\n )\n }\n\n tooFewBands() {\n // For overlapping and scouting, we allow fewer than three bands, but for\n // GeoTIFF, we require at least three bands. (Fewer bands usually means it's\n // data we can't handle in a meaningful way; for overlapping, fewer bands can\n // only be uploaded for special cameras where we *do* know how to visualize.)\n return (\n this.state.projectType === 'geotiff' &&\n this.state.metaData?.features?.[0]?.properties.samplesPerPixel < 3\n )\n }\n\n unmappedBands() {\n const properties = this.state.metaData?.features?.[0]?.properties\n const numberBands = properties?.samplesPerPixel\n const bands = properties?.bands\n\n return (\n this.state.projectType === 'geotiff' &&\n (bands?.length !== numberBands || bands?.includes(' '))\n )\n }\n\n missingRedGreenBands() {\n return ['r', 'g'].some(\n reuqiredBand =>\n this.state.cameraProperties?.bands.indexOf(reuqiredBand) < 0\n )\n }\n\n isMissingImagesInCaptures() {\n return (\n this.state.captures &&\n Object.values(this.state.captures).some(\n files => files.length !== this.get('imagesPerCapture')\n )\n )\n }\n\n imagesPerCapture() {\n return (\n (this.state.cameraProperties &&\n this.state.cameraProperties.imagesPerCapture) ||\n 1\n )\n }\n\n numberOfCaptures() {\n return this.state.captures && Object.keys(this.state.captures).length\n }\n\n minCaptures() {\n return this.state.projectType === 'geotiff' ? 1 : 3\n }\n\n tooFewCaptures() {\n return this.get('numberOfCaptures') < this.get('minCaptures')\n }\n\n hasInsufficientQuota() {\n return this.state.cost && costHasInsufficientQuota(this.state.cost)\n }\n\n costCalculationFailed() {\n return !this.state.cost\n }\n\n tooManyFiles() {\n return (\n this.get('hasMaxFiles') &&\n this.get('numberOfFiles') > this.get('maxFiles')\n )\n }\n\n hasMaxFiles() {\n return false\n }\n\n maxFiles() {\n return this.get('hasMaxFiles') ? 100 : null\n }\n\n tooLargeArea() {\n return (\n this.state.projectType === 'overlapping' &&\n this.state.projectMeasurements &&\n (this.state.projectMeasurements.area > maxArea ||\n this.state.projectMeasurements.length > maxLength)\n )\n }\n\n missingGeoreference() {\n return this.get('numberMissingGeoreference') > 0\n }\n\n numberMissingGeoreference() {\n return (\n this.state.metaData &&\n this.state.metaData.features.filter(\n f => !f.geometry && !f.properties.calibration_picture\n ).length\n )\n }\n\n missingFieldName() {\n return this.state.fieldName.trim().length === 0\n }\n\n missingFiles() {\n return this.state.isMissingFiles\n }\n\n invalidBounds() {\n return (\n this.state.projectType === 'geotiff' &&\n this.state.metaData?.features.some(\n feature => feature.bbox && !feature.bbox.every(c => Math.abs(c) <= 180)\n )\n )\n }\n\n forbiddenArea() {\n if (this.props.permissions.upload_all_areas) return false\n\n const bounds = this.state.projectMeasurements?.convexHull\n ? bbox(this.state.projectMeasurements?.convexHull)\n : null\n if (bounds) {\n const isForbidden = forbiddenAreas.some(area => intersects(area, bounds))\n if (isForbidden && !hasWarnedForbiddenArea) {\n logMessage(`Prevented user from uploading images in bounds ${bounds}`, {\n forbiddenArea: true,\n })\n hasWarnedForbiddenArea = true\n }\n\n return isForbidden\n }\n\n return false\n }\n\n imagesOutsideField() {\n const { fieldName, farmId, projectMeasurements } = this.state\n const convexHull = projectMeasurements?.epsg3857Hull\n\n if (!convexHull || !fieldName) return false\n\n const field = this.props.fields.find(\n field => field.label === fieldName && field.farm_id === farmId\n )\n\n if (!field || !field.geometry) return false\n\n return !intersect(convexHull, field.geometry)\n }\n}\n\nlet hasWarnedForbiddenArea = false\n\nconst forbiddenAreas = [\n // Ecuador, mostly western part\n [-82, -2.5, -77, 2],\n]\n","import { getCameraProperties, GENERIC_RGB_CAMERA } from '../../camera_utils'\nimport { getFrontendProjectType } from './upload-project'\nimport convex from '@turf/convex'\nimport area from '@turf/area'\nimport turfLength from '@turf/length'\nimport { getValidationMessage } from './validation'\nimport Checkbox from '../ui/elements/checkbox'\nimport PropTypes from 'prop-types'\nimport { reproject } from 'reproject'\nimport { compare } from '../../object-utils'\nimport Sqids from 'sqids'\n\nexport const initialState = {\n fieldName: '',\n crop: '',\n // Names of newly added files that we have not yet started to fetch metadata for\n newFiles: [],\n // A map of all current files, filename as key, file-data as values\n files: null,\n // A GeoJSON FeatureCollection of files we have fetched metadata for\n metaData: null,\n // Are all files currently selected\n allSelected: false,\n // The last selected captureId\n lastSelected: null,\n // The current project's id, if it has been created\n projectId: null,\n // Number of files uploaded\n uploadCount: 0,\n // The upload options available to the user\n options: [],\n // The type of multispectral sensor, if any\n cameraProperties: null,\n // Files not selected by the user that should be uploaded\n extraFiles: [],\n permissions: {},\n processingOptions: {},\n metadataProgressCount: 0,\n}\n\nexport function reducer(props, state, action) {\n const { pipelineProfiles, callbacks } = props\n switch (action.type) {\n case 'RESET_FILES': {\n if (state.canAddNew) {\n const nextState = {\n ...state,\n newFiles: [],\n files: {},\n metaData: null,\n allSelected: false,\n lastSelected: null,\n cameraProperties: null,\n }\n\n return validate(nextState)\n } else {\n return { ...state, files: { ...state.files } }\n }\n }\n case 'BEGIN_UPDATE_METADATA':\n return {\n ...state,\n metadataProgressCount: state.metadataProgressCount + 1,\n }\n case 'FINISHED_UPDATE_METADATA':\n return {\n ...state,\n metadataProgressCount: state.metadataProgressCount - 1,\n }\n case 'UPDATE_FILES': {\n const nextUploadCount = state.uploadCount + 1\n // New images can only be added if the project hasn't already been created\n // (typically in resume or when upload fails halfway). For these cases, we have\n // already performed validation on the previous set of files, allowing new ones\n // can create an invalid state in the stored files.\n const canAddNew = state.projectId == null\n let numberDiscardedFiles = 0\n const addedFiles = action.payload\n\n const idMappedFiles = Object.keys(addedFiles).reduce(\n (idMap, filename) => {\n const newFile = addedFiles[filename]\n const fileId = getFileId(newFile.file)\n const currentFile = state.files?.[fileId]\n if (!currentFile) {\n if (canAddNew) {\n idMap[fileId] = { ...newFile, id: fileId }\n } else {\n numberDiscardedFiles++\n }\n } else if (!currentFile.file) {\n // This is a \"missing\" file from a resumed upload\n // Add it if it's not already set as done uploading\n if (currentFile.uploadStatus !== 'done') {\n idMap[fileId] = {\n ...newFile,\n ...currentFile,\n id: fileId,\n }\n }\n }\n\n return idMap\n },\n {}\n )\n\n const nextFiles = { ...state.files, ...idMappedFiles }\n\n const nextState = {\n ...state,\n newFiles: [...state.newFiles, ...Object.keys(idMappedFiles)],\n files: nextFiles,\n uploadCount: nextUploadCount,\n isMissingFiles: isMissingFiles(nextFiles),\n numberDiscardedFiles,\n }\n\n return validate(nextState)\n }\n case 'RESET_NEW_FILES':\n return { ...state, newFiles: [] }\n case 'SELECT_FILES': {\n const files = {\n ...state.files,\n }\n action.payload.forEach(\n id => (files[id] = { ...files[id], isSelected: true })\n )\n return {\n ...state,\n files,\n }\n }\n case 'UNSELECT_FILES': {\n const files = {\n ...state.files,\n }\n action.payload.forEach(\n id => (files[id] = { ...files[id], isSelected: false })\n )\n return {\n ...state,\n files,\n }\n }\n case 'REMOVE_FILES': {\n const selectedFiles = Object.values(state.files).filter(f => f.isSelected)\n const nextFiles = { ...state.files }\n selectedFiles.forEach(f => {\n delete nextFiles[f.id]\n })\n const nextFeatures = (\n (state.metaData && state.metaData.features) ||\n []\n ).filter(feature => !state.files[feature.id].isSelected)\n const nextMetaData = { type: 'FeatureCollection', features: nextFeatures }\n\n const nextState = {\n ...state,\n files: nextFiles,\n metaData: nextMetaData,\n captures: groupCaptures(nextMetaData),\n isMissingFiles: isMissingFiles(nextFiles),\n cameraProperties:\n nextFeatures.length > 0\n ? _getCameraProperties(nextFeatures, {\n allowMultipleCameras: state.projectType === 'individual',\n })\n : null,\n projectMeasurements: getProjectMeasurements(nextMetaData),\n }\n\n return validate(nextState)\n }\n case 'SET_FILE_UPLOAD_STATUS': {\n const id = action.payload.id\n if (state.files[id]) {\n return {\n ...state,\n files: {\n ...state.files,\n [id]: {\n ...state.files[action.payload.id],\n uploadStatus: action.payload.status,\n },\n },\n }\n } else {\n return state\n }\n }\n case 'SET_FILE_UPLOAD_PROGRESS': {\n const { uploadedBytes, totalBytes } = action.payload\n return {\n ...state,\n uploadedBytes,\n totalBytes,\n }\n }\n case 'UPDATE_METADATA': {\n // If a file's metadata has an error property, it means we should remove\n // that file\n const filteredFiles = { ...state.files }\n const { exif, geojson } = action.payload\n geojson.features.forEach((f, i) => {\n if (f.properties.error) {\n delete filteredFiles[f.id]\n } else {\n filteredFiles[f.id] = {\n ...filteredFiles[f.id],\n }\n if (exif && exif[i]) {\n filteredFiles[f.id].exif = exif[i]\n }\n }\n })\n\n const filteredFeatures = geojson.features.filter(f => !f.properties.error)\n\n const fileExtension =\n filteredFeatures.length &&\n filteredFeatures[0].properties.filename.split('.').pop().toLowerCase()\n const isJpeg = fileExtension === 'jpg' || fileExtension === 'jpeg'\n let options = state.options\n\n if (\n state.projectType !== 'geotiff' &&\n isJpeg &&\n !options.find(o => o.key === 'expressUpload')\n ) {\n options = [\n ...options,\n createOption({\n key: 'expressUpload',\n name: 'Express Upload',\n active: false,\n }),\n ]\n }\n\n const currentFeatures = (\n (state.metaData && state.metaData.features) ||\n []\n ).filter(f => !filteredFeatures.find(nf => nf.id === f.id))\n\n const nextFeatures = [\n ...currentFeatures,\n ...filteredFeatures,\n ].sort((a, b) =>\n a.properties.datetime && b.properties.datetime\n ? compare(a.properties.datetime, b.properties.datetime)\n : compare(a.properties.filename, b.properties.filename)\n )\n\n if (nextFeatures.length === 0) {\n const nextState = {\n ...state,\n metaData: null,\n hasMetaDataErrors:\n filteredFeatures.length !== geojson.features.length,\n files: filteredFiles,\n captures: {},\n cameraProperties: null,\n projectMeasurements: null,\n }\n\n return validate(nextState)\n }\n\n const cameraProperties = _getCameraProperties(nextFeatures, {\n allowMultipleCameras: state.projectType === 'individual',\n })\n\n if (\n state.projectType === 'overlapping' &&\n cameraProperties.hasDls &&\n !options.find(o => o.key === 'enableDls')\n ) {\n options = [\n ...options,\n createOption({\n key: 'enableDls',\n name: 'Use DLS for Calibration',\n active: false,\n updateProcessingOptions: project => (project.dls_enabled = true),\n }),\n ]\n }\n\n if (cameraProperties.imagesPerCapture === 1) {\n // Use id property to group into capture, to avoid\n // accidentally putting two separate images into the same capture\n nextFeatures.forEach(f => {\n if (!f.properties._capture_id) {\n f.properties._capture_id = f.properties.capture_id\n }\n\n f.properties.capture_id = f.id\n })\n } else {\n // Restore capture_id that was possibly overwritten by logic above\n nextFeatures.forEach(f => {\n f.properties.capture_id =\n f.properties._capture_id || f.properties.capture_id\n delete f.properties._capture_id\n // See groupCaptures function, which keeps its own \"_original_capture_id\" property, which\n // will otherwise be out-of-sync\n delete f.properties._original_capture_id\n })\n }\n\n const nextMetaData = { type: 'FeatureCollection', features: nextFeatures }\n\n const nextState = {\n ...state,\n metaData: nextMetaData,\n hasMetaDataErrors: filteredFeatures.length !== geojson.features.length,\n files: filteredFiles,\n options,\n captures: groupCaptures(nextMetaData),\n cameraProperties,\n projectMeasurements: getProjectMeasurements(nextMetaData),\n processingOptions: {\n ...state.processingOptions,\n },\n }\n\n return validate(nextState)\n }\n case 'SET_ALLSELECTED':\n return { ...state, allSelected: action.payload }\n case 'SET_LAST_SELECTED':\n return { ...state, lastSelected: action.payload }\n case 'UPDATE_FARM_ID': {\n const nextState = { ...state, farmId: action.payload, fieldName: '' }\n return validate(nextState)\n }\n case 'UPDATE_FIELD_NAME': {\n const nextState = { ...state, fieldName: action.payload }\n return validate(nextState)\n }\n case 'UPDATE_CROP':\n return { ...state, crop: action.payload }\n case 'BEGIN_UPLOAD':\n return { ...state, status: 'uploading' }\n case 'SET_PROJECT_ID':\n return { ...state, projectId: action.payload }\n case 'SUCCESS_UPLOAD':\n return { ...state, status: 'success' }\n case 'ERROR_UPLOAD': {\n return { ...state, status: 'error' }\n }\n case 'ABORT_UPLOAD': {\n return { ...state, status: undefined }\n }\n case 'SET_PROJECT_TYPE': {\n const projectType = action.payload\n const options = []\n\n if (projectType === 'overlapping' && state.permissions.create_3d_model) {\n options.push(\n createOption({\n key: 'create3dModel',\n name: 'Create 3D Model',\n active: false,\n updateProcessingOptions: options => {\n options.obj_enabled = true\n options.las_enabled = true\n if (pipelineProfiles?.['3d']) {\n Object.keys(pipelineProfiles['3d']).forEach(key => {\n options[key] = pipelineProfiles['3d'][key]\n })\n }\n },\n })\n )\n }\n\n const nextState = { ...state, projectType, options }\n\n return validate(nextState)\n }\n case 'SET_OPTION': {\n const { key, active } = action.payload\n const nextOptions = [...state.options]\n const index = state.options.findIndex(o => o.key === key)\n const option = nextOptions[index]\n nextOptions[index] = { ...option, key, active }\n\n return { ...state, options: nextOptions }\n }\n case 'ADD_EXTRA_FILES': {\n const newFiles = action.payload\n const filteredDuplicates = state.extraFiles.filter(\n f => !newFiles.find(nf => nf.name === f.name)\n )\n return { ...state, extraFiles: [...filteredDuplicates, ...newFiles] }\n }\n case 'SET_PROCESSING_OPTION': {\n const { key, value } = action.payload\n return {\n ...state,\n processingOptions: { ...state.processingOptions, [key]: value },\n }\n }\n case 'SET_COST': {\n const nextState = { ...state, cost: action.payload }\n return validate(nextState)\n }\n case 'UPDATE_PERMISSIONS': {\n const nextState = { ...state, permissions: action.payload }\n return validate(nextState)\n }\n default:\n throw new Error(`Unknown action type \"${action.type}\".`)\n }\n\n function validate(state) {\n return {\n ...state,\n validationMessage: getValidationMessage(props, state, callbacks),\n }\n }\n}\n\nconst sqids = new Sqids({ minLength: 10 })\n\nexport function getFileId(file) {\n const { name } = file\n const idParts = []\n for (let param of [file.lastModified, file.size]) {\n param = Number(param)\n if (isNaN(param)) throw new Error('All params must be positive numbers')\n if (param < 0) throw new Error('All params must be positive')\n do {\n idParts.push(param & 0xffff)\n param >>= 16\n } while (param > 0)\n }\n\n const id = sqids.encode(idParts)\n const parts = name.split('.')\n\n if (parts.length > 1) {\n const basename = parts.slice(0, parts.length - 1).join('.')\n\n return `${basename}_${id}.${parts[parts.length - 1]}`\n } else {\n return `${name}_${id}`\n }\n}\n\nexport function groupCaptures(metaData) {\n const timeTolerance = 5 * 1000\n const captures = {}\n const captureTimestamps = {}\n\n for (const { properties, id } of metaData.features) {\n const { capture_id: captureId, datetime: datetimeString } = properties\n const datetime = new Date(datetimeString).getTime()\n const timestamps = captureTimestamps[captureId]\n let timestamp\n if (timestamps) {\n const timestampsWithinTolerance = timestamps.filter(\n t => Math.abs(t - datetime) < timeTolerance\n )\n if (timestampsWithinTolerance.length > 0) {\n timestamp = timestampsWithinTolerance[0]\n } else {\n timestamp = datetime\n timestamps.push(timestamp)\n }\n } else {\n timestamp = datetime\n captureTimestamps[captureId] = [timestamp]\n }\n\n // Preserve the original capture id, so if this runs\n // multiple times, we do not concatenate timestamps more than once\n if (!properties._original_capture_id) {\n properties._original_capture_id = captureId\n }\n const timestampedCaptureId = `${properties._original_capture_id}_${timestamp}`\n properties.capture_id = timestampedCaptureId\n\n const capture = captures[timestampedCaptureId]\n if (capture) {\n capture.push(id)\n } else {\n captures[timestampedCaptureId] = [id]\n }\n }\n\n return captures\n}\n\nfunction isMissingFiles(files) {\n return (\n files &&\n Object.values(files).some(f => !f.file && f.uploadStatus !== 'done')\n )\n}\n\nfunction _getCameraProperties(features, options) {\n try {\n return getCameraProperties(\n features.map(feature => feature.properties),\n options\n )\n } catch (error) {\n return {\n ...GENERIC_RGB_CAMERA,\n error: `Images do not match camera: ${error.message}`,\n }\n }\n}\n\nexport function createInitialState(props) {\n const {\n project,\n uploadedFiles,\n permissions,\n farmId,\n sourceImagery: metaData,\n } = props\n if (metaData) {\n // Legacy projects don't have feature ids but just filenames\n for (const feature of metaData.features) {\n if (!feature.id) {\n feature.id = feature.properties.filename\n }\n }\n }\n const cameraProperties =\n metaData && getCameraProperties(metaData.features.map(f => f.properties))\n const captures = metaData && groupCaptures(metaData)\n const files = metaData?.features.reduce((files, feature) => {\n const id = feature.id\n const uploaded = uploadedFiles.some(f => f.filename === id)\n files[id] = {\n id,\n uploadStatus: uploaded ? 'done' : null,\n uploadedMd5: uploaded && uploaded.md5,\n }\n return files\n }, {})\n\n const state = {\n ...initialState,\n fieldName: (project && project.fields[0] && project.fields[0].name) || '',\n farmId: (project && project.farmId) || farmId,\n crop: project && project.metadata && project.metadata.data.crop,\n metaData,\n files,\n projectId: project && project.id,\n projectType: project && getFrontendProjectType(project.project_type),\n cameraProperties,\n captures,\n isMissingFiles: isMissingFiles(files),\n permissions,\n }\n\n return {\n ...state,\n validationMessage: getValidationMessage(props, state),\n }\n}\n\nfunction getProjectMeasurements(metaData) {\n const convexHull = getHull()\n const hasConvexHull =\n convexHull &&\n convexHull.geometry &&\n convexHull.geometry.coordinates[0].length > 2\n return hasConvexHull\n ? {\n convexHull,\n epsg3857Hull: reproject(\n convexHull,\n 'EPSG:4326',\n '+proj=merc +a=6378137 +b=6378137 +lat_ts=0 +lon_0=0 +x_0=0 +y_0=0 +k=1 +units=m +nadgrids=@null +wktext +no_defs +type=crs'\n ),\n area: area(convexHull),\n length: turfLength(convexHull) * 1000,\n }\n : undefined\n\n function getHull() {\n // We've had some issues with turf sometimes throwing here,\n // try to better log the circumstances.\n try {\n return convex(metaData)\n } catch (e) {\n throw new Error(\n `Could not build convex hull: ${e}; metadata: ${JSON.stringify(\n metaData\n )}`\n )\n }\n }\n}\n\nfunction createOption({\n key,\n name,\n active,\n updateProject,\n updateProcessingOptions,\n}) {\n return {\n key,\n Component: props => {\n return