Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error determining namespaces from schema component 'null': null #1751

Open
Zia- opened this issue Oct 14, 2024 · 2 comments
Open

Error determining namespaces from schema component 'null': null #1751

Zia- opened this issue Oct 14, 2024 · 2 comments
Labels
documentation documentation question user question workspace deegree workspace configuration

Comments

@Zia-
Copy link

Zia- commented Oct 14, 2024

Hello there,

I'm pretty new to deegree3 after spending years with Geoserver; and pretty much in exploration phase. Below is my coverage xml (name is utah-cov) inside default workspace:

<?xml version="1.0"?>
<Pyramid xmlns="http://www.deegree.org/datasource/coverage/pyramid" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.deegree.org/datasource/coverage/pyramid https://schemas.deegree.org/core/3.5/datasource/coverage/raster/pyramid.xsd">
  <PyramidFile>/<path to my geotiff>/Satellite_Provo.tif</PyramidFile>
</Pyramid>

And this one is for layer xml (name is utah-layer):

<?xml version="1.0" encoding="UTF-8"?>
<CoverageLayers xmlns="http://www.deegree.org/layers/coverage" xmlns:l="http://www.deegree.org/layers/base" xmlns:d="http://www.deegree.org/metadata/description" xmlns:s="http://www.deegree.org/metadata/spatial" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.deegree.org/layers/coverage https://schemas.deegree.org/core/3.5/layers/coverage/coverage.xsd">
  <CoverageStoreId>utah-cov</CoverageStoreId>
  <CoverageLayer>
    <l:Name>orthophoto</l:Name>
    <d:Title>Orthophoto of Saltlake City</d:Title>
    <d:Abstract>Aerial image of the city of Saltlake City</d:Abstract>
    <d:Keywords>
      <d:Keyword>Aerial image</d:Keyword>
      <d:Keyword>Utah</d:Keyword>
    </d:Keywords>
    <s:CRS>EPSG:26912 EPSG:4326 EPSG:4258</s:CRS>
    <!-- <l:ScaleDenominators min="0.0" max="10000.0" />  -->
    <!-- Trying to configure a legend graphic file, which is currently (3.2pre9-SNAPSHOT) not possible. -->
    <!-- 
    <l:StyleRef>
      <l:StyleStoreId>dummy</l:StyleStoreId>
      <l:Style>
        <l:StyleName>default</l:StyleName>
        <l:LayerNameRef>dummy</l:LayerNameRef>
        <l:StyleNameRef>dummy</l:StyleNameRef>
        <l:LegendGraphic outputGetLegendGraphicUrl="true">../styles/legendgraphics/legend_aerial_image.png</l:LegendGraphic>
      </l:Style>
    </l:StyleRef>
     -->
  </CoverageLayer>
</CoverageLayers>

following deegree's docs https://download.deegree.org/documentation/3.5.8/html/#_raster

When I try to hit the following url:

http://localhost:8080/default/services?LAYERS=utah-layer&TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&FORMAT=image%2Fpng&SRS=EPSG%3A26912&BBOX=441174.0000000000000000,4448455.0000000000000000,447810.0000000000000000,4456039.0000000000000000&WIDTH=999&HEIGHT=831

I get:
image

Above url is an inspiration from

https://demo.deegree.org/utah-workspace/services?LAYERS=orthophoto&TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&FORMAT=image%2Fpng&SRS=EPSG%3A900913&BBOX=-12960414.152967,3755900.069157,-11874396.855243,5788513.5250335&WIDTH=444&HEIGHT=831

Not sure what I'm missing here.

@tfr42 tfr42 added question user question documentation documentation workspace deegree workspace configuration labels Oct 21, 2024
@julianzz98
Copy link
Contributor

Hi @Zia-,
I was able to replicate the described behavior using your configuration. However, it is expected to not work due to missing configurations files as well as a wrong request URL.

Missing configuration files:

  • WMS
    • In the GUI under web services > services > WMS, to match your naming pattern called utah-wms.xml:
<wms:deegreeWMS xmlns:wms="http://www.deegree.org/services/wms" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dgws="http://www.deegree.org/webservices" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.deegree.org/services/wms https://schemas.deegree.org/core/3.5/services/wms/wms_configuration.xsd">
  
  <wms:SupportedVersions>
    <wms:Version>1.1.1</wms:Version>
    <wms:Version>1.3.0</wms:Version>
  </wms:SupportedVersions>
 
  <wms:ServiceConfiguration>
    <wms:ThemeId>utah-theme</wms:ThemeId>
  </wms:ServiceConfiguration>

</wms:deegreeWMS>
  • Theme
    • In the GUI under map layers > themes > standard, to match your naming pattern called utah-theme.xml:
<?xml version="1.0"?>
<Themes xmlns="http://www.deegree.org/themes/standard" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xmlns:d="http://www.deegree.org/metadata/description"
  xmlns:s="http://www.deegree.org/metadata/spatial" xsi:schemaLocation="http://www.deegree.org/themes/standard https://schemas.deegree.org/core/3.5/themes/themes.xsd">

  <LayerStoreId>utah-layer</LayerStoreId>


 <Theme>
   <d:Title>utah ortho</d:Title>
   <s:CRS>EPSG:26912 EPSG:4326 EPSG:4258 CRS:84</s:CRS>
   <Theme>
     <Identifier>orthophoto</Identifier>
     <d:Title>Orthophoto of Saltlake City</d:Title>
     <Layer>orthophoto</Layer>
   </Theme>
 </Theme>

</Themes>

Adding these configuration files to your workspace default will make the layer available, here shown in QGIS:
image
The configuration I created is pretty minimal, so feel free to enhance it!

Lastly, the request generated based on our demo environment results in a HTTP 404 error due to the use of a reverse proxy. Here is your request with the needed changes to work based on your configuration files:

or with WMS 1.3.0:

I hope the information provided helps you get your deegree service up and running! For a deeper understanding, I recommend reviewing the documentation at https://download.deegree.org/documentation/3.5.8/html/#anchor-configuration-wms.

@julianzz98
Copy link
Contributor

@Zia- do you have any further remarks/questions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation documentation question user question workspace deegree workspace configuration
Projects
None yet
Development

No branches or pull requests

3 participants