Re: [mapserver-users] MapCache Larger tiles, reduce number of files

2020-03-09 Thread Stephen Woodbridge

Are you sure you have the set the tile size correctly in OpenLayers?
Because if OL is requesting tiles that you don't have it sounds like 
that is the reason.
And if you do load tile and there is a miss-match, then I would expect 
the resolution of be off.


Here are a few links that might help:

https://openlayers.org/en/latest/examples/wms-custom-tilegrid-512x256.html
https://openlayers.org/en/latest/apidoc/module-ol_tilegrid_TileGrid-TileGrid.html
https://stackoverflow.com/questions/57072232/how-to-change-tilesize-in-xyz-tilelayer-from-default256-256-to-something-e

On 3/9/2020 3:21 PM, Jean-Philippe Chenel wrote:

Steve,

It is what I supposed, but when I've generated the tiles 512x512 using 
the default resolution GoogleMapCompatible, with the cache template 
{z}/{x}/{y}.{ext} and loaded it in OpenLayers using ol.source.XYZ, 
I've noticied that the x tile being tried to load was not in the good 
range.


z/x/-y.png

Tiles generated:
.../8/37 and 38/64 and 65.png

Tiles loaded by OpenLayers (with error 404):
.../8/73 to 77/130 and 131.png

Thanks,

*De :* mapserver-users  de la 
part de Stephen Woodbridge 

*Envoyé :* 9 mars 2020 14:56
*À :* mapserver-users@lists.osgeo.org 
*Objet :* Re: [mapserver-users] MapCache Larger tiles, reduce number 
of files

Jean-Philippe,

I don't think it works like that. Resolution is determined by zoom
factor so you generate  metatile at that resolution then you chop that
metatile in tiles of whatever size you specify. So resolution is
controled by zoom not tile size.

-Steve W

On 3/9/2020 2:45 PM, Jean-Philippe Chenel wrote:
> Hi,
>
> With MapCache, I want to generate the tiles that will be copied to a
> mobile device, on a viewer created with OpenLayers.
>
> When generating a large extent, with multiple levels of zoom, the
> files count is really big, so I want to reduce the number of files by
> increasing the tile size. I've made a test with tiles 512x512, but
> I've realized that the resolution must be changed when changing tiles
> size. So, the tiles are bigger, but changing the resolution make
> generating the same number of files.
>
> I'm open for workaround and other tricks.
>
> mapcache.xml
>
> 
> 
> GoogleMaps512
> 
> -20037508.3427892480 -20037508.3427892480 20037508.3427892480
> 20037508.3427892480
> EPSG:3857
> EPSG:900913
> m
> 512 512
> 156543.0339280410 78271.51696402048 39135.75848201023
> 19567.87924100512 9783.939620502561 4891.969810251280
> 2445.984905125640 1222.992452562820 611.4962262814100
> 305.7481131407048 152.8740565703525 76.43702828517624
> 38.21851414258813 19.10925707129406 9.554628535647032
> 4.777314267823516 2.388657133911758 1.194328566955879
> 0.5971642834779395
> 
>
> 
> 
/data/mapcache/tiles/{tileset}/{grid}/{z}/{x}/{y}.{ext}

> 
>
> 
> vmap0
> tmpl_xyz
> GoogleMaps512
> PNG
> 
>
> With best regards,
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] MapCache Larger tiles, reduce number of files

2020-03-09 Thread Jean-Philippe Chenel
Steve,

It is what I supposed, but when I've generated the tiles 512x512 using the 
default resolution GoogleMapCompatible, with the cache template 
{z}/{x}/{y}.{ext} and loaded it in OpenLayers using ol.source.XYZ, I've 
noticied that the x tile being tried to load was not in the good range.

z/x/-y.png

Tiles generated:
.../8/37 and 38/64 and 65.png

Tiles loaded by OpenLayers (with error 404):
.../8/73 to 77/130 and 131.png

Thanks,

De : mapserver-users  de la part de 
Stephen Woodbridge 
Envoyé : 9 mars 2020 14:56
À : mapserver-users@lists.osgeo.org 
Objet : Re: [mapserver-users] MapCache Larger tiles, reduce number of files

Jean-Philippe,

I don't think it works like that. Resolution is determined by zoom
factor so you generate  metatile at that resolution then you chop that
metatile in tiles of whatever size you specify. So resolution is
controled by zoom not tile size.

-Steve W

On 3/9/2020 2:45 PM, Jean-Philippe Chenel wrote:
> Hi,
>
> With MapCache, I want to generate the tiles that will be copied to a
> mobile device, on a viewer created with OpenLayers.
>
> When generating a large extent, with multiple levels of zoom, the
> files count is really big, so I want to reduce the number of files by
> increasing the tile size. I've made a test with tiles 512x512, but
> I've realized that the resolution must be changed when changing tiles
> size. So, the tiles are bigger, but changing the resolution make
> generating the same number of files.
>
> I'm open for workaround and other tricks.
>
> mapcache.xml
>
> 
> 
> GoogleMaps512
> 
> -20037508.3427892480 -20037508.3427892480 20037508.3427892480
> 20037508.3427892480
> EPSG:3857
> EPSG:900913
> m
> 512 512
> 156543.0339280410 78271.51696402048 39135.75848201023
> 19567.87924100512 9783.939620502561 4891.969810251280
> 2445.984905125640 1222.992452562820 611.4962262814100
> 305.7481131407048 152.8740565703525 76.43702828517624
> 38.21851414258813 19.10925707129406 9.554628535647032
> 4.777314267823516 2.388657133911758 1.194328566955879
> 0.5971642834779395
> 
>
> 
> /data/mapcache/tiles/{tileset}/{grid}/{z}/{x}/{y}.{ext}
> 
>
> 
> vmap0
> tmpl_xyz
> GoogleMaps512
> PNG
> 
>
> With best regards,
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] MapCache Larger tiles, reduce number of files

2020-03-09 Thread Stephen Woodbridge

Jean-Philippe,

I don't think it works like that. Resolution is determined by zoom 
factor so you generate  metatile at that resolution then you chop that 
metatile in tiles of whatever size you specify. So resolution is 
controled by zoom not tile size.


-Steve W

On 3/9/2020 2:45 PM, Jean-Philippe Chenel wrote:

Hi,

With MapCache, I want to generate the tiles that will be copied to a 
mobile device, on a viewer created with OpenLayers.


When generating a large extent, with multiple levels of zoom, the 
files count is really big, so I want to reduce the number of files by 
increasing the tile size. I've made a test with tiles 512x512, but 
I've realized that the resolution must be changed when changing tiles 
size. So, the tiles are bigger, but changing the resolution make 
generating the same number of files.


I'm open for workaround and other tricks.

mapcache.xml



GoogleMaps512

-20037508.3427892480 -20037508.3427892480 20037508.3427892480 
20037508.3427892480

EPSG:3857
EPSG:900913
m
512 512
156543.0339280410 78271.51696402048 39135.75848201023 
19567.87924100512 9783.939620502561 4891.969810251280 
2445.984905125640 1222.992452562820 611.4962262814100 
305.7481131407048 152.8740565703525 76.43702828517624 
38.21851414258813 19.10925707129406 9.554628535647032 
4.777314267823516 2.388657133911758 1.194328566955879 
0.5971642834779395




/data/mapcache/tiles/{tileset}/{grid}/{z}/{x}/{y}.{ext}



vmap0
tmpl_xyz
GoogleMaps512
PNG


With best regards,

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] MapCache Larger tiles, reduce number of files

2020-03-09 Thread Jean-Philippe Chenel
Hi,

With MapCache, I want to generate the tiles that will be copied to a mobile 
device, on a viewer created with OpenLayers.

When generating a large extent, with multiple levels of zoom, the files count 
is really big, so I want to reduce the number of files by increasing the tile 
size. I've made a test with tiles 512x512, but I've realized that the 
resolution must be changed when changing tiles size. So, the tiles are bigger, 
but changing the resolution make generating the same number of files.

I'm open for workaround and other tricks.

mapcache.xml



GoogleMaps512

-20037508.3427892480 -20037508.3427892480 20037508.3427892480 
20037508.3427892480
EPSG:3857
EPSG:900913
m
512 512
156543.0339280410 78271.51696402048 39135.75848201023 
19567.87924100512 9783.939620502561 4891.969810251280 2445.984905125640 
1222.992452562820 611.4962262814100 305.7481131407048 152.8740565703525 
76.43702828517624 38.21851414258813 19.10925707129406 9.554628535647032 
4.777314267823516 2.388657133911758 1.194328566955879 
0.5971642834779395



  /data/mapcache/tiles/{tileset}/{grid}/{z}/{x}/{y}.{ext}



vmap0
tmpl_xyz
GoogleMaps512
PNG


With best regards,
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] question on demo.mapserver.org

2020-03-09 Thread Jeff McKenna

On 2020-03-09 11:55 a.m., Jörg Thomsen (WhereGroup) wrote:

Hello,

could please anyone tell me how the classitem for the layer
continents of https://demo.mapserver.org/cgi-bin/wms? is named?

I want to create demo-request for wms ogc-filter.

Viele Grüße,
Jörg



Also, if you ever need a change made to the demo services (such as 
adding an OUTPUTFORMAT etc.) then please file a ticket in the docs 
repository (https://github.com/mapserver/docs).


thanks,

-jeff



--
Jeff McKenna
MapServer Consulting and Training Services
https://gatewaygeomatics.com/


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] question on demo.mapserver.org

2020-03-09 Thread Jeff McKenna

Hi Jörg,

Regarding that WMS service[1] here is the classitem syntax:

  CLASSITEM'NA3DESC'

With an example value of 'Africa' or 'Europe  .


[1] 
https://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities



-jeff



--
Jeff McKenna
MapServer Consulting and Training Services
https://gatewaygeomatics.com/




On 2020-03-09 11:55 a.m., Jörg Thomsen (WhereGroup) wrote:

Hello,

could please anyone tell me how the classitem for the layer
continents of https://demo.mapserver.org/cgi-bin/wms? is named?

I want to create demo-request for wms ogc-filter.

Viele Grüße,
Jörg



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] question on demo.mapserver.org

2020-03-09 Thread WhereGroup
Hello,

could please anyone tell me how the classitem for the layer
continents of https://demo.mapserver.org/cgi-bin/wms? is named?

I want to create demo-request for wms ogc-filter.

Viele Grüße,
Jörg

-- 


QGIS Experience Day - jetzt kostenfrei anmelden!
2. April 2020 in Berlin | https://qgis-day.com/


Jörg Thomsen
WhereGroup GmbH
Bundesallee 23
10717 Berlin
Germany

Fon: +49 (0)30 / 5130 278 74
Fax: +49 (0)30 / 5130 278 11

joerg.thom...@wheregroup.com
www.wheregroup.com

Geschäftsführer:
Olaf Knopp, Peter Stamm
Amtsgericht Bonn, HRB 9885

---
Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] Embedbed Web form on a Map.

2020-03-09 Thread Basques, Bob (CI-StPaul)
Hi,

Was wondering if anyone has seen/built an example of embedding (or overlaying) 
a web form on top of a map.

Basically I want to be able to edit attributes of a feature right in the map.  
Click the feature, and a form appears related to the actual feature.  Labels 
/FORM elements follow a polyline for example.

My first aplication will apply some Address range setting form elements to each 
end of a line for editing.  I’ve already figured out how to display the 
elements in a raster output through Mapserver, but still pondering the web 
(edit) form aspects.

Some initial thoughts:

  *   Could a output template be devised to output a rotated (CSS) web form 
with the approriate pixel spacing of the elements right from Mapserver. I think 
so, even so far as rotating individual form elements in the result.  Seems like 
a bit of an uphill battle though . . .
  *   Could a LandScape/Portrait FORM have a rotated background image applied 
to it, based on the preplanned end point locations on the map.  This actually 
seems the quickest to implement, but I wonder if it helps at all with other 
feature types, or if it would be specific to this first need.  It would be nice 
to implement a method for any feature type for example, like being able to edit 
the edges of a polygon.

My first need:

[***] = FORM elements (attributes for editing)


[min_left_add]  [street_name][max_left_add]
O - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - O 
   <— line representation
[min_right_add] [street_type]   [max_right_add]

or

   O
 [max_left_add]|[max_right_add]
   |
   |
   |
   |
  [street_name]|[street_type]
   |
   |
   |
   |
 [min_left_add]|[min_right_add]
   O



Anyway still pondering  . . . .

bobb


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] MapServer WFS server with PostGIS doesn't

2020-03-09 Thread Passmore, James H.
Not sure

Date: Wed, 4 Mar 2020 11:58:48 +0100
From: Martin Hoegh 
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] MapServer WFS server with PostGIS doesn't
respects the axis order defined by the EPSG definition
Message-ID: <5523efd9-fc06-46a1-9023-6a96ae5f1...@mapcentia.com>
Content-Type: text/plain;charset=utf-8


> The 1.1.0 request the axis order is being flipped in the WHERE clause (is 
> lat/lon). But shouldn't WFS 1.1.0 respect the axis order defined by the EPSG 
> definition?

I'm not sure I understand this statement in your question. The EPSG:4326 
definition  
(http://www.epsg-registry.org/export.htm?wkt=urn:ogc:def:crs:EPSG::4326) is 
lat/long.

James


This email and any attachments are intended solely for the use of the named 
recipients. If you are not the intended recipient you must not use, disclose, 
copy or distribute this email or any of its attachments and should notify the 
sender immediately and delete this email from your system.
UK Research and Innovation has taken every reasonable precaution to minimise 
risk of this email or any attachments containing viruses or malware but the 
recipient should carry out its own virus and malware checks before opening the 
attachments. UK Research and Innovation does not accept any liability for any 
losses or damages which the recipient may sustain due to presence of any 
viruses.
Opinions, conclusions or other information in this message and attachments that 
are not related directly to UK Research and Innovation business are solely 
those of the author and do not represent the views of UK Research and 
Innovation.

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users