From c1681a1e052535c583ba94b6fb4365dbcae85968 Mon Sep 17 00:00:00 2001 From: Wouter Goedhart Date: Tue, 8 Oct 2024 09:30:23 +0200 Subject: [PATCH] Add DXF extension to WPS and WFS services --- README.md | 1 + src/apps/geoserver/webui/pom.xml | 8 ++++++++ .../cloud/autoconfigure/web/wfs/WfsConfiguration.java | 3 ++- .../cloud/autoconfigure/web/wps/WpsConfiguration.java | 4 +++- src/apps/geoserver/wfs/pom.xml | 4 ++++ .../cloud/wfs/config/WfsAutoConfiguration.java | 3 ++- src/apps/geoserver/wps/pom.xml | 8 ++++++++ .../cloud/wps/WpsApplicationConfiguration.java | 2 ++ src/pom.xml | 10 ++++++++++ 9 files changed, 40 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 84326bb50..697dafd0e 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,7 @@ Only a curated list of the [vast amount](http://geoserver.org/release/stable/) o - Pregeneralized feature datastore - vectortiles - flatgeobuf +- dxf - cog - importer - imagepyramid diff --git a/src/apps/geoserver/webui/pom.xml b/src/apps/geoserver/webui/pom.xml index 9d4fbcfcd..33512e602 100644 --- a/src/apps/geoserver/webui/pom.xml +++ b/src/apps/geoserver/webui/pom.xml @@ -112,6 +112,14 @@ org.geoserver.community gs-flatgeobuf + + org.geoserver.extension + gs-dxf-core + + + org.geoserver.extension + gs-dxf-wps + org.geoserver gs-wms diff --git a/src/apps/geoserver/webui/src/main/java/org/geoserver/cloud/autoconfigure/web/wfs/WfsConfiguration.java b/src/apps/geoserver/webui/src/main/java/org/geoserver/cloud/autoconfigure/web/wfs/WfsConfiguration.java index e2af9aca3..2dffd299d 100644 --- a/src/apps/geoserver/webui/src/main/java/org/geoserver/cloud/autoconfigure/web/wfs/WfsConfiguration.java +++ b/src/apps/geoserver/webui/src/main/java/org/geoserver/cloud/autoconfigure/web/wfs/WfsConfiguration.java @@ -14,7 +14,8 @@ locations = { // "jar:gs-web-wfs-.*!/applicationContext.xml", // "jar:gs-wfs-.*!/applicationContext.xml", - "jar:gs-flatgeobuf-.*!/applicationContext.xml#name=.*" + "jar:gs-flatgeobuf-.*!/applicationContext.xml#name=.*", + "jar:gs-dxf-core-.*!/applicationContext.xml#name=.*" } // ) public class WfsConfiguration {} diff --git a/src/apps/geoserver/webui/src/main/java/org/geoserver/cloud/autoconfigure/web/wps/WpsConfiguration.java b/src/apps/geoserver/webui/src/main/java/org/geoserver/cloud/autoconfigure/web/wps/WpsConfiguration.java index d6e686b1b..0c54d8da5 100644 --- a/src/apps/geoserver/webui/src/main/java/org/geoserver/cloud/autoconfigure/web/wps/WpsConfiguration.java +++ b/src/apps/geoserver/webui/src/main/java/org/geoserver/cloud/autoconfigure/web/wps/WpsConfiguration.java @@ -15,6 +15,8 @@ // exclude wpsRequestBuilder, DemosAutoConfiguration takes care of it "jar:gs-web-wps-.*!/applicationContext.xml#name=^(?!wpsRequestBuilder).*$", "jar:gs-wps-.*!/applicationContext.xml", - "jar:gs-wcs-.*!/applicationContext.xml" + "jar:gs-wcs-.*!/applicationContext.xml", + "jar:gs-dxf-core-.*!/applicationContext.xml#name=.*", + "jar:gs-dxf-wps-.*!/applicationContext.xml#name=.*" }) public class WpsConfiguration {} diff --git a/src/apps/geoserver/wfs/pom.xml b/src/apps/geoserver/wfs/pom.xml index 0c3572fb8..b72b0989f 100644 --- a/src/apps/geoserver/wfs/pom.xml +++ b/src/apps/geoserver/wfs/pom.xml @@ -30,6 +30,10 @@ org.geoserver.community gs-flatgeobuf + + org.geoserver.extension + gs-dxf-core + org.testcontainers junit-jupiter diff --git a/src/apps/geoserver/wfs/src/main/java/org/geoserver/cloud/wfs/config/WfsAutoConfiguration.java b/src/apps/geoserver/wfs/src/main/java/org/geoserver/cloud/wfs/config/WfsAutoConfiguration.java index 20d3aa8e8..06503d42f 100644 --- a/src/apps/geoserver/wfs/src/main/java/org/geoserver/cloud/wfs/config/WfsAutoConfiguration.java +++ b/src/apps/geoserver/wfs/src/main/java/org/geoserver/cloud/wfs/config/WfsAutoConfiguration.java @@ -18,7 +18,8 @@ reader = FilteringXmlBeanDefinitionReader.class, // locations = { "jar:gs-wfs-.*!/applicationContext.xml#name=.*", - "jar:gs-flatgeobuf-.*!/applicationContext.xml#name=.*" + "jar:gs-flatgeobuf-.*!/applicationContext.xml#name=.*", + "jar:gs-dxf-core-.*!/applicationContext.xml#name=.*" } // ) public class WfsAutoConfiguration { diff --git a/src/apps/geoserver/wps/pom.xml b/src/apps/geoserver/wps/pom.xml index f9688c16c..e974de9cc 100644 --- a/src/apps/geoserver/wps/pom.xml +++ b/src/apps/geoserver/wps/pom.xml @@ -21,6 +21,14 @@ org.geoserver.cloud gs-cloud-starter-raster-formats + + org.geoserver.extension + gs-dxf-core + + + org.geoserver.extension + gs-dxf-wps + diff --git a/src/apps/geoserver/wps/src/main/java/org/geoserver/cloud/wps/WpsApplicationConfiguration.java b/src/apps/geoserver/wps/src/main/java/org/geoserver/cloud/wps/WpsApplicationConfiguration.java index 6a8c1d225..52338e89b 100644 --- a/src/apps/geoserver/wps/src/main/java/org/geoserver/cloud/wps/WpsApplicationConfiguration.java +++ b/src/apps/geoserver/wps/src/main/java/org/geoserver/cloud/wps/WpsApplicationConfiguration.java @@ -22,6 +22,8 @@ "jar:gs-wcs1_1-.*!/applicationContext.xml", // "jar:gs-wcs2_0-.*!/applicationContext.xml", // "jar:gs-wfs-.*!/applicationContext.xml#name=^(?!wfsInsertElementHandler|wfsUpdateElementHandler|wfsDeleteElementHandler|wfsReplaceElementHandler).*$", // + "jar:gs-dxf-core-.*!/applicationContext.xml#name=.*", + "jar:gs-dxf-wps-.*!/applicationContext.xml#name=.*" }) public class WpsApplicationConfiguration { diff --git a/src/pom.xml b/src/pom.xml index 1b13798d4..f54ef11db 100644 --- a/src/pom.xml +++ b/src/pom.xml @@ -588,6 +588,16 @@ gs-flatgeobuf ${gs.version} + + org.geoserver.extension + gs-dxf-core + ${gs.version} + + + org.geoserver.extension + gs-dxf-wps + ${gs.version} + org.geoserver.extension gs-web-resource