https://github.com/slub/geospatial-search-frontend
Geospatial Search Frontend using a TYPO3-Kitodo.Presentation Backend.
https://github.com/slub/geospatial-search-frontend
Last synced: over 1 year ago
JSON representation
Geospatial Search Frontend using a TYPO3-Kitodo.Presentation Backend.
- Host: GitHub
- URL: https://github.com/slub/geospatial-search-frontend
- Owner: slub
- License: gpl-3.0
- Created: 2019-12-20T16:27:30.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-27T10:54:09.000Z (over 3 years ago)
- Last Synced: 2025-01-25T07:09:05.899Z (over 1 year ago)
- Language: JavaScript
- Size: 5 MB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Geospatial Search Frontend
This repository contains a frontend search application which is used in a project at the Saxon State and University Library Dresden (SLUB). The used backend systems are TYPO3 with Kitodo.Presentation 3.3 and Solr 8.x.
## Requirements
* Solr 8.11
* [Kitodo.Presentation 3.3](https://github.com/kitodo/kitodo-presentation)
The Solr must be accessible from the frontend for select queries. You should use some proxy solution to secure your Solr.
## Solr Schema
The application requires the standard schema of Kitodo.Presentation 3.3 which is provided in its repo at https://github.com/kitodo/kitodo-presentation/tree/master/Configuration/ApacheSolr.
To make the geospatial search available in Solr, you need only two settings in the schema.xml. A fieldType "geojson" and a field "geom" which uses this fieldType.
The search application requires `geom` as the name of the field for the geometries. It supports point, polyline and polygon.
```
...
```
## GeoJSON
There is only support for GeoJSON. Solr knows WKT as input format, too. But this was no aspect in developement.
Our usecase is to use Kitodo.Presentation to index documents with GeoJSON data in MODS-metadata field`./mods:mods/#mods:subject/mods:cartographics/mods:coordinates`.
### Example GeoJSON
There is no documentation about the allowed format of the GeoJSON data inserting by Solr. At least we found none ;-)
Solr can work with the following example from geojson.io.
Hint: The `properties` must exist, but no property is understood by Solr. The record will fail with error. So keep it empty.
```
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
12.63427734375,
51.51216124955515
],
[
12.777099609375,
51.10007257240614
],
[
14.0020751953125,
50.90996067566236
],
[
14.3316650390625,
51.36835106051133
],
[
12.63427734375,
51.51216124955515
]
]
]
}
}
]
}
```
## Credits
This project was initially developed for the [Saxon digital geological archive (DiGA.Sax) website](https://www.digas.sachsen.de). This website is maintainted by the [Saxon State and University Library Dresden (SLUB)(https://www.slub-dresden.de/)] in cooperation with the [Sächsisches Landesamt für Umwelt, Landwirtschaft und Geologie (LfULG)](https://www.lfulg.sachsen.de/).
This React JS webapp was developed by Jacob Mendt at [PikoBytes GmbH](https://pikobytes.de/) in Dresden in 2019.