-
-
Notifications
You must be signed in to change notification settings - Fork 310
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
Wms Projection with DotSpatial (EPSG:6706 as sample) #2073
Wms Projection with DotSpatial (EPSG:6706 as sample) #2073
Conversation
I added A Sample that uses DotSpatialProjection for EPSG:6706 (Italy) Projection.
|
I do not understand what this is about. Mapsui does not support projection of MRaster, so I would think it should not try to. Raster transformation is hard although not impossible (it was done in SharpMap at some point). So, I assume this is not what this is about, although perhaps DotSpatialProjection has functionality for this. Also I do not understand WMS projection with DotSpatial. Usually a WMS itself supports projection. So you pass in the required CRS and get a bitmap in the expected projection, so you would not need DotSpatial for this. I am sure you are doing something useful, I just do not understand what it is. 🤔 |
Was wrong wording, the Extent from MRaster is now transformed or else it wouldn't work. in the default projectionprovider a coordinate visitor is used to handle extents and geometries... but in the dotspatial provider only geometries were transformed. Now it transforms other than geometry features by coordinate visitors too. |
This service does not allow CORS Access so it doesn't work in blazor unless Cors check is disabled in the Browser (From the security Standpoint a Bad idea). What I thought is that I could display the static Test image instead of the Map when I know that a Sample does not work in Blazor. |
I added a sample that tiles a WmsProvider with Projection using the RasterizingTileLayer |
How about adding a CORS exception just for this service? Allowing everything is the kind of thing you do during the development phase to just get things working and then forget to turn off. I think allowing specific sources is just fine from security perspective. |
I tried to implement a workaround, But because Blazor runs in the Browser the Browser settings override the .Net Code. So the only workaround is to call a Proxy Service, That loads the Data Outside of the Browser. Here an example. |
No description provided.