Skip to content

Commit a9e2670

Browse files
committed
Merge branch 'develop' into release/6.64.0
2 parents cec0e04 + b8fc210 commit a9e2670

File tree

9 files changed

+198
-68
lines changed

9 files changed

+198
-68
lines changed

README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,19 @@ These instructions will get you a copy of the project up and running on your loc
99

1010
### Prerequisites
1111

12-
* [Redhat Linux 8](https://www.redhat.com/) - Redhat Linux or compatible
13-
* [ClamAV](https://www.clamav.net) - ClamAV® open source antivirus engine
14-
* [PHP 8.1+](http://php.net/docs.php) - General-purpose scripting language
15-
* [PostgreSQL 13+](https://www.postgresql.org) - ORDBMS
12+
* [Redhat Linux 8+](https://www.redhat.com/) - Redhat Linux or compatible
13+
* [PHP 8.2+](http://php.net/docs.php) - General-purpose scripting language
14+
* [Composer 2.8.2+](https://getcomposer.org/) - Dependency Manager for PHP
15+
* [Yarn 1.22.22+](https://yarnpkg.com/en/) - Package Manager
16+
* [PostgreSQL 14+](https://www.postgresql.org) - ORDBMS
17+
* [PostGIS 3.4.3](https://www.postgis.net/) - Geographic Information Systems Extensions to PostgreSQL
1618
* [Elasticsearch 7.17+](https://www.elastic.co/products/elasticsearch) - ElasticSearch Document Indexer
17-
* [Composer 2.5.1+](https://getcomposer.org/) - Dependency Manager for PHP
18-
* [Yarn 1.22.19+](https://yarnpkg.com/en/) - Package Manager
19+
* [Wkhtmltox 0.12.6.1+](https://wkhtmltopdf.org/) - PDF generation utility
20+
* [ClamAV](https://www.clamav.net) - ClamAV® open source antivirus engine
1921

2022
### Installation
2123

22-
Pelagos is a [Symfony 5.4+](https://symfony.com) project, please follow the normal configuration regarding setting up your webserver for a Symfony project.
24+
Pelagos is a [Symfony 6.4+](https://symfony.com) project, please follow the normal configuration regarding setting up your webserver for a Symfony project.
2325

2426
To install fullfill prerequisites then run:
2527
* `composer install`

assets/static/js/geoviz.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -922,7 +922,7 @@ function GeoViz()
922922
}
923923
else
924924
{
925-
pointList = pointList.split(" ");
925+
pointList = pointList.trim().split(" ");
926926
var points = "";
927927
for (var i=0;i<pointList.length;i++)
928928
{
@@ -938,6 +938,12 @@ function GeoViz()
938938
}
939939
if (drawMode == "polygon" || drawMode == "box")
940940
{
941+
const numPairs = pointList.length;
942+
if (numPairs < 3) {
943+
checkMsg = "Not enough point pairs for a polygon! (Minimum of 3)";
944+
jQuery(mapDiv).trigger("coordinateError", checkMsg);
945+
return false;
946+
}
941947
var WKT = "POLYGON((" + points.substring(0,(points.length)-1) + "))";
942948
}
943949
else if (drawMode == "point")

assets/static/js/mapWizard.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ function MapWizard(json)
466466
if (!triedAdd)
467467
{
468468
message = "Those coordinates don't appear to make a valid feature.";
469-
if (typeof errMsg != "undefined") { message += "<p>Reason:"+errMsg+"</p>";errMsg=undefined;};
469+
if (typeof errMsg != "undefined") { message += "<p>Reason: "+errMsg+"</p>";errMsg=undefined;};
470470
$("<div>"+message+"</div>").dialog({
471471
height: "auto",
472472
width: "auto",

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"homepage": "https://github.com/griidc/pelagos/",
77
"license": "BSD-2-Clause",
88
"require": {
9-
"php": "^8.1",
9+
"php": "^8.2",
1010
"ext-ctype": "*",
1111
"ext-curl": "*",
1212
"ext-fileinfo": "*",

composer.lock

Lines changed: 37 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)