Comments (5)
Thanks @sweco-semara, I absolutely agree. Also, you're correct about the assumptions made in Admin's code. It seems like nobody really tested standalone GWC before, hence the missing support. It'd be fantastic to get it implemented.
Given the differences that you've identified, it seems valid to add another serverType
. I'd vote for geowebcache-standalone
, given that it's less ambiguous and states clearly that it targets the standalone GWC. But you can call it whatever you prefer. 😄
We can absolutely talk about it on the upcoming meeting. 👍
from hajk.
I've added some labels, please correct if I'm mistaken (specifically I'm not sure if this will require work in Client and Backend too).
from hajk.
@Hallbergs @jacobwod I am trying to get a customer to see the benefit of Sweco contributing to Hajk for making Hajk-integration with stand-alone GWC smoother. If accepted, let's discuss solutions on upcoming code meetings. Heads-up with the idea of "qualifying" GeoWebCache to it's own Server Type in Hajk admin. Do you agree with that idea? Would you choose "geowebcache" or "geowebcache-standalone" in that case? (All other server types seems to be lowercase only in Hajk admin so my initial suggestion follows this principle.) NB! Bug report is not really complete yet, more details will follow.
from hajk.
This was tested successfully against a standalone GWC instance in dev, test and prod environments. Starting to clean up code and proceed with the PR.
Core devs, for your information (initially a question but changed on second thought, see potential downsides below - moved to potential future work instead) Seeing where the implementation landed the changes might, with small adjustments, be extrapolated from GeoWebCache stand-alone to some generic "WMS server but not GeoServer" setting, i.e. Any WMS Server, not having the GeoServer REST API available for listing workspaces. The servertype name could then be changed, I guess e.g. QGIS Server would behave similar, to a bit more generic (e.g. from "geowebcache-standalone" to generic-wms
).
Potential downsides and reasoning against proceeding with generalization of all non-GeoServer WMS types already now, i.e. the reason to go ahead with proven "geowebcache-standalone" only for a first PR:
- Not yet tested with other servertypes
- GeoWebCache not supporting serveral WMS service versions and an assumption in admin to not query for all versions (GWC will not care if WMS version 1.3.0 is requested for capabilties, it will incorrectly respond with 1.1.1 syntax and HTTP/200 OK status which is not WMS spec conformant)
- Setting servertype = geowebcache-standalone currently automatically sets tiled=true in Hajk admin
The new GWC stand-alone support and existing QGIS Server type will be a good base for generalization in a future Hajk improvement, GWC stand-alone PR could be a good starting point for "extracting up"/generalizing to a common server type for "geowebcache-standalone" + "qgis" to e.g. "generic-wms". Hower due to reasons above this might be complicated with e.g. WMS version defaults, so leaving it as-is for now with the proven and tested GWC stand-alone support.
from hajk.
PR is now ready for review. It includes several improvements for avoiding Hajk admin crashing on all sorts of configuration errors thrown at it during testing, including CORS block / WMS servers missing CORS headers for Hajk which has been a pretty common error in our customer's test and productions environments (before pointing this out).
from hajk.
Related Issues (20)
- Edit Plugin: Cannot edit empty layers if the geometry name is not 'geom'
- Sketch plugin: Save error with arrow object HOT 4
- LayerSwitcher: add an option that rotates the map's View to a pre-defined value when a layer is made visible HOT 1
- Sketch: Arrow features aren't saved in temporary store HOT 1
- Sketch plugin: Rotate drawn objects HOT 4
- DocumentHandler: Blockqoute and Accordion issues in dark mode.
- FIR Plugin: Allow comma separated search and multiline search
- Tooltips should not capture pointer events. HOT 2
- InfoClick: Icon - allow url to svg icon
- InfoClick: Highlight in collection view. HOT 2
- Missing folder new-backend/App_Data/Upload creating crash HOT 3
- QrCode implementation in Print/Anchor HOT 6
- Removal of Babel for back-end build inhibits building Hajk on Windows HOT 7
- Add Dockerfile for "Simple Hajk" deployment on OpenShift
- Adding Hajk Tooltip Component to generalise settings and behaviour
- Docker 26+ does not allow .git/ to be copied onto the image HOT 1
- Add marker configuration to coordinates plug-in
- Cannot create or delete map configurations with Hajk admin since the deletion of API v1
- Admin: Add the functionality to duplicate maps HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hajk.