leaflet and WMS version >= 1.3.0 - leaflet

I'm using lealflet to represent some layers obtained from a WMS server over OSM.
The WMS version is 1.3.0 and I have to project coordinates from EPSG:6706 to EPSG:4326
I know that passing from version 1.1.1 to 1.3.0 there are two changes in the GetMap request:
SRS -->CRS
the order of the BBOX coordinates goes from "longMin,latMin,longMax,latMax" to "latMin,longMin,latMax,longMax"
Leaflet has no problem with point no.1 while does not change the boundind box representation.
I spent some time looking for a parameter or something like in openlayer (axisOrientation: 'neu') but I did not found anything moreover I tried setting bbox in the options with no success.
Can anyone help me?
Thanks

Related

QGIS: UTM Grid at slight angle to OpenStreetMap - steps to fix?

I'm learning QGIS, having moved over from the old OziExplorer. I'm pretty sure my issue is to do with 2 different CRS's. I'm trying to create a map with:
OpenStreetMap or OpenCycleMap (EPSG:3857, WGS 84 / Pseudo-Mercator)
A grid (and POIs) in UTM (EPSG: 32755, UTM Zone 55S)
It shows up as:
Is there a set of steps to do so the Grid is not slightly rotated...or should I just live with it? UTM is great as we are metric and a grid like this is in Metres (1km here). Thanks.

Imported aerial imagery coming into qgis crooked

I'm new to qgis and am learning how to download basemaps from various sources. I've been working on a fairly simple map using aerial imagery downloaded from the USGS National Map. Whenever I import the map into my qgis project, the map comes in crooked. Instead of normal north/south orientation, the maps are rotated (approximately 45 degrees) counterclockwise. Is this a projection problem, or am I doing something else wrong. Also, is there a way to correct that within qgis (rotate axis to true north/south).
In similar situations I've found that the projection of the layers didn't match. Something to check

vector tiles and textpath

I am using TileStache to render a vector tile layer, works nicely in OpenLayers 3.
http://standup.csc.kth.se/maps/projects.html
However, I would like to add "text path" along the roads (e.g. show the year of expected completion). I could not find any way to do textpath in OpenLayers 3. I only found one for OpenLayers2...
I looked at Leaflet for the this purpose but... it does not work with vector tiles, except with plugins that don't seem to allow a combination with the Leaflet textpath plugin...
Is there any solution for doing textpath with vector tiles ?
Text paths along lines are not yet supported in OpenLayers 3, but are a planned feature that should be available later this year.
In the meantime, you could calculate label points and angles on the server and add those to your vector tiles. Then you can style them with a simple ol.style.Text and the rotation option.

reproject layers in openlayers 3

I downloaded some data from OpenStreetMap and put them in PostGIS a couple of months ago. In all the tables that contain spatial data, the spatial column is way geometry(Geometry,900913) In Geoserver, native SRS is EPSG:900913 so I guess the EPSG of the data is 900913.
In my Openlayers 3.9.0 , the projection is left to default (EPSG:3857).
I want to create a tiled WMS layer of the PostGIS data.
By setting params: {'CRS': 'EPSG:3857'}, in the layer , will this automatically reproject it from 900913 to 3857, or I have to do some extra work?
Thanks
The SRID 900913 was originally "defined" by OpenStreetMap for the projection Google Maps was using (replace G with 9, squint while looking at it, and let your mind wander over it). Later, EPSG added that SRS to their database but using code EPSG:3857. So they are identical.
I am not sure if OpenLayers is smart enough to do a no-op when data with SRID=900913 needs to be displayed as SRID=3857. Just to make your life easier, update your way columns in PostGIS to use SRID=3857. You can use ST_SetSRID() for that.

Newbe help on getting from polygon shape file to Leaflet polygon

Learning Leaflet. Had success with point data. Now want to create polygons.
The process starts with an Access record with a Parcel Identification Number. Using ArcMap desktop, the records are joined to a parcel shape file for the county.
What the best approach to get to Leaflet polygons from here? Like with point data, do I need to add fields to contain the lat/lon data?
I don't need a lot of detail; just a pointer in the right direction. I don't mind doing homework.
My approach would be to convert the shapefile to geojson and then load the geojson into your Leaflet map.
I'm aware of some ArcGIS plugins to export geojson, but an alternative approach is to use the command line tool GDAL (ogr2ogr).
See the links on this answer for more details, but the command will end up being something like the following...
ogr2ogr -f GeoJSON -t_srs "EPSG:4326" [name][.geojson|.json] [name].shp
From there you can preview the results in geojson.io or github before creating your Leaflet map.