Skip to content

[OgcApiFeatures] Add new OgcApiFeatures source#1831

Merged
Phocacius merged 18 commits into
developfrom
feature/ogc-api-datasource
Mar 19, 2026
Merged

[OgcApiFeatures] Add new OgcApiFeatures source#1831
Phocacius merged 18 commits into
developfrom
feature/ogc-api-datasource

Conversation

@PhilVanB

@PhilVanB PhilVanB commented Mar 10, 2026

Copy link
Copy Markdown
Contributor

See Pull #165

Needs database update: php bin/console doctrine:schema:update --complete --force

YAML-Config for OGC-API-Features-Source:

liegenschaften_nrw:
     type: ogc_api_features
     title: Liegenschaftskataster NRW
     jsonUrl:  https://ogc-api.nrw.de/lika/v1
     layers:
       31: { collectionId: flurstueck, title: Flurstück, active: true, minScale: ~, maxScale: ~, selected: true, allowSelected: true, info: true, allowInfo: true, featureLimit: 90 }
       32: { collectionId: flurstueck_punkt, title: Flurstückspunkt, active: true, minScale: ~, maxScale: ~, selected: true, allowSelected: true, info: true, allowInfo: true, featureLimit: 90 }
       30: { collectionId: gebaeude_bauwerk, title: 'Gebäude, Bauwerk', active: true, minScale: ~, maxScale: ~, selected: true, allowSelected: true, info: true, allowInfo: true, featureLimit: 90 }
     visible: false
     opacity: 100
     isBaseSource: false
     selected: false
     allowSelected: true
     toggle: false
     allowToggle: true
     minScale: ~
     maxScale: ~
     featureLimit: 100
     featureInfoPropertyMap:
       -
         aktualit: 'Aktualität'
       -
         'gebnutzbez'

Comment thread src/Mapbender/OgcApiFeaturesBundle/Component/OgcApiFeaturesLoader.php Outdated
Comment thread src/Mapbender/OgcApiFeaturesBundle/Entity/OgcApiFeaturesSource.php
Comment thread src/Mapbender/OgcApiFeaturesBundle/Component/OgcApiFeaturesConfigGenerator.php Outdated
Comment thread src/Mapbender/OgcApiFeaturesBundle/Component/OgcApiFeaturesConfigGenerator.php Outdated
Comment thread src/Mapbender/OgcApiFeaturesBundle/Component/OgcApiFeaturesRenderer.php Outdated
@astroidex astroidex added this to the 5.0.0 milestone Mar 12, 2026

@astroidex astroidex left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could not load the service and got an SQL error.

  • solution:I had to modify the column disc in Table mb_core_source as text "ogc_api_features" has length 17 characters
  • suggestion change the size from varchar(15) to varchar(50)
  • BaseSourceswitcher: Feature Instance can be set to Basesource - Then it can be selected in the Element BaseSourceSwitcher -> But in the Application the new BaseSource is not visible
  1. Symbol same as WMS
  2. add possibility to toggle all on/off (see WMS)
  3. smaller input
  4. Title mor space for input
    max features: set 10000 as default for service
    null for the collection min/maxscaledenom
backend_ogc_api_features

Metadataurl

  • Klick auf das Metadata-Icon führt zu 404
klick_metadata

Style

  • add legend

@Phocacius

Copy link
Copy Markdown
Member

My issues are all fixed, thanks!

@PhilVanB

Copy link
Copy Markdown
Contributor Author

@astroidex Please check:

  • feature limit is now set to 1000 by default
  • collection table: the input field for featureLimit now appears before the min-/max-Scale-fields
  • collection table: the title field is wider now; min-/max-Scale and featureLimit-fields are smaller now

@Phocacius Phocacius merged commit 1a763fc into develop Mar 19, 2026
@Phocacius Phocacius deleted the feature/ogc-api-datasource branch March 19, 2026 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants