{"id":21660313,"url":"https://github.com/slub/geospatial-search-frontend","last_synced_at":"2025-03-20T05:25:37.305Z","repository":{"id":38985376,"uuid":"229299147","full_name":"slub/geospatial-search-frontend","owner":"slub","description":"Geospatial Search Frontend using a TYPO3-Kitodo.Presentation Backend.","archived":false,"fork":false,"pushed_at":"2023-01-27T10:54:09.000Z","size":5241,"stargazers_count":1,"open_issues_count":5,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-25T07:09:05.899Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/slub.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-20T16:27:30.000Z","updated_at":"2024-04-15T21:27:29.000Z","dependencies_parsed_at":"2023-02-15T08:16:51.237Z","dependency_job_id":null,"html_url":"https://github.com/slub/geospatial-search-frontend","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slub%2Fgeospatial-search-frontend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slub%2Fgeospatial-search-frontend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slub%2Fgeospatial-search-frontend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slub%2Fgeospatial-search-frontend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/slub","download_url":"https://codeload.github.com/slub/geospatial-search-frontend/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244555989,"owners_count":20471546,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-25T09:32:51.766Z","updated_at":"2025-03-20T05:25:37.279Z","avatar_url":"https://github.com/slub.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Geospatial Search Frontend\n\nThis 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.\n\n## Requirements\n\n* Solr 8.11\n* [Kitodo.Presentation 3.3](https://github.com/kitodo/kitodo-presentation)\n\nThe Solr must be accessible from the frontend for select queries. You should use some proxy solution to secure your Solr.\n\n## Solr Schema\n\nThe 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.\n\nTo 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.\nThe search application requires `geom` as the name of the field for the geometries. It supports point, polyline and polygon.\n\n```\n\u003ctypes\u003e\n  \u003cfieldType name=\"geojson\" class=\"solr.SpatialRecursivePrefixTreeFieldType\"\n  spatialContextFactory=\"Geo3D\"\n  geo=\"true\"\n  planetModel=\"WGS84\"\n  format=\"GeoJSON\" /\u003e\n...\n\n\u003cfields\u003e\n  \u003cfield name=\"geom\" type=\"geojson\" indexed=\"true\" stored=\"true\" multiValued=\"false\" /\u003e\n```\n\n## GeoJSON\n\nThere is only support for GeoJSON. Solr knows WKT as input format, too. But this was no aspect in developement.\n\nOur usecase is to use Kitodo.Presentation to index documents with GeoJSON data in MODS-metadata field`./mods:mods/#mods:subject/mods:cartographics/mods:coordinates`.\n\n### Example GeoJSON\n\nThere is no documentation about the allowed format of the GeoJSON data inserting by Solr. At least we found none ;-)\n\nSolr can work with the following example from geojson.io.\n\nHint: The `properties` must exist, but no property is understood by Solr. The record will fail with error. So keep it empty.\n\n```\n{\n  \"type\": \"FeatureCollection\",\n  \"features\": [\n    {\n      \"type\": \"Feature\",\n      \"properties\": {},\n      \"geometry\": {\n        \"type\": \"Polygon\",\n        \"coordinates\": [\n          [\n            [\n              12.63427734375,\n              51.51216124955515\n            ],\n            [\n              12.777099609375,\n              51.10007257240614\n            ],\n            [\n              14.0020751953125,\n              50.90996067566236\n            ],\n            [\n              14.3316650390625,\n              51.36835106051133\n            ],\n            [\n              12.63427734375,\n              51.51216124955515\n            ]\n          ]\n        ]\n      }\n    }\n  ]\n}\n```\n\n## Credits\n\nThis 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/).\n\nThis React JS webapp was developed by Jacob Mendt at [PikoBytes GmbH](https://pikobytes.de/) in Dresden in 2019.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslub%2Fgeospatial-search-frontend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslub%2Fgeospatial-search-frontend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslub%2Fgeospatial-search-frontend/lists"}