Install SeisComP and scanloc ARM64 nightly packages

This commit is contained in:
Enrico Ellguth
2025-10-29 12:34:04 +00:00
parent 2ff097f9d1
commit 165b829fb7
606 changed files with 24438 additions and 16358 deletions

View File

@ -0,0 +1,80 @@
/***************************************************************************
* Copyright (C) gempa GmbH *
* All rights reserved. *
* Contact: gempa GmbH (seiscomp-dev@gempa.de) *
* *
* GNU Affero General Public License Usage *
* This file may be used under the terms of the GNU Affero *
* Public License version 3.0 as published by the Free Software Foundation *
* and appearing in the file LICENSE included in the packaging of this *
* file. Please review the following information to ensure the GNU Affero *
* Public License version 3.0 requirements will be met: *
* https://www.gnu.org/licenses/agpl-3.0.html. *
* *
* Other Usage *
* Alternatively, this file may be used in accordance with the terms and *
* conditions contained in a signed written agreement between you and *
* gempa GmbH. *
***************************************************************************/
#ifndef SEISCOMP_GEO_FORMATS_FEP_H
#define SEISCOMP_GEO_FORMATS_FEP_H
#include <seiscomp/geo/featureset.h>
namespace Seiscomp::Geo {
/**
* @brief Reads a FEP plus file and adds found features to the feature set.
* In case of an error an exception is thrown. Only closed polygons
* are supported.
*
* Example:
* 13.0 52.0
* 13.0 53.0
* 14.0 53.0
* 14.0 52.0
* 99.0 99.0 4
* L Germany
*
* Format definition:
* longtitude1 latitude1
* ...
* longtitudeN latitudeN
* 99.0 99.0 VERTEX_COUNT
* L POLYGON_NAME
*
* A polygon starts with a number vertex lines. A vetex contains 2 floats,
* longitude and latitude, and may be followed by a comment which must not
* start on a digit.
*
* A polygon is required to declare at least 3 vertices. If the last vertex
* matches the first one a minimum of 4 vertices are required.
*
* After the vertex definition an option vertex count line may follow
* expressed with a longitude and latitude value of 99 followed by the
* vertex count. If the count does not match the vertices read a warning
* is reported.
*
* A polygon is finalized by an mandatory L line defining the polygon name.
*
* All lines read are stipped first. Empty lines and lines starting on '#'
* are ignored.
*
* @param featureSet The target feature that will hold the read features
* @param filename The path to the GeoJSON file
* @param category An optional category attached to all read features
* @return The number of features read
*/
size_t readFEP(GeoFeatureSet &featureSet, const std::string &path,
const Category *category = nullptr);
}
#endif

View File

@ -22,18 +22,20 @@
#define SEISCOMP_GEO_FORMATS_GEOJSON_H
#include <seiscomp/geo/feature.h>
#include <seiscomp/geo/featureset.h>
#include <ostream>
namespace Seiscomp {
namespace Geo {
namespace Seiscomp::Geo {
/**
* @brief Reads a GeoJSON file and adds found features to the feature set.
* In case of an error an exception is thrown.
* @param featureSet The target feature that will hold the read features
* @param filename The path to the GeoJSON file
* @param path The path to the GeoJSON file
* @param category An optional category attached to all read features
* @return The number of features read
*/
@ -41,7 +43,46 @@ size_t readGeoJSON(GeoFeatureSet &featureSet, const std::string &path,
const Category *category = nullptr);
}
/**
* @brief Write a GeoFeature to a ostream.
* @param os The ostream to write to
* @param feature The feature to serialize
* @param indent Indentation depth for pretty printing. Disabled if less than 0.
* @return true if the feature was written
*/
bool writeGeoJSON(std::ostream &os, const GeoFeature &feature, int indent = -1);
/**
* @brief Write a GeoFeature to a GeoJSON file.
* @param path The path to the GeoJSON file
* @param feature The feature to serialize
* @param indent Indentation depth for pretty printing. Disabled if less than 0.
* @return true if the feature was written
*/
bool writeGeoJSON(const std::string &path, const GeoFeature &feature,
int indent = -1);
/**
* @brief Write a GeoFeature vector to a ostream.
* @param os The ostream to write to
* @param gfs The geo feature vector to serialize
* @param indent Indentation depth for pretty printing. Disabled if less than 0.
* @return Number of feature written
*/
size_t writeGeoJSON(std::ostream &os, const GeoFeatureSet::Features &gfs,
int indent = -1);
/**
* @brief Write a GeoFeature vector to a GeoJSON file.
* @param path The path to the GeoJSON file
* @param gfs The geo feature vector to serialize
* @param indent Indentation depth for pretty printing. Disabled if less than 0.
* contained in gfs are appended to the GeoJSON file. When appending the
* @return Number of feature written
*/
size_t writeGeoJSON(const std::string &path, const GeoFeatureSet::Features &gfs,
int indent = -1);
}