deegree / deegree3

Official deegree repository providing geospatial core libraries, data access and advanced OGC web service implementations
https://www.deegree.org
GNU Lesser General Public License v2.1
149 stars 101 forks source link

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

Open Zia- opened 1 week ago

Zia- commented 1 week ago

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.

julianzz98 commented 1 day ago

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: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">

utah-layer utah ortho EPSG:26912 EPSG:4326 EPSG:4258 CRS:84 orthophoto Orthophoto of Saltlake City orthophoto


Adding these configuration files to your workspace _default_ will make the layer available, here shown in QGIS:
![image](https://github.com/user-attachments/assets/7686e8e1-0eb6-4f2e-84a5-ceb1818ba40d)
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:

* http://localhost:8080/deegree-webservices/services/utah-wms?LAYERS=orthophoto&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

or with WMS 1.3.0:
* http://localhost:8080/deegree-webservices/services/utah-wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=40.18441766000000115%2C-111.6917084100000039%2C40.25318049999999914%2C-111.6187039132852163&CRS=EPSG%3A4326&WIDTH=801&HEIGHT=754&LAYERS=orthophoto&STYLES=&FORMAT=image%2Fpng&DPI=96&MAP_RESOLUTION=96&FORMAT_OPTIONS=dpi%3A96&TRANSPARENT=TRUE

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.