Re: [MapServer-users] Creating UTF grids with MapServer and MapCache

2022-09-07 Thread karsten
Yes that worked now to restart Apache ! 
 
Here is the final config snippets in case it helps someone 
and remember the format tags aka 'MVT' are case sensitive ;)
 
mapfile
OUTPUTFORMAT
   NAME "MVT"
   DRIVER MVT
   FORMATOPTION "EDGE_BUFFER=10"
END
 
LAYER 

# added:
UTFITEM   "gml_id"   
UTFDATA
"{\"gml_id\":\"[gml_id]\",\"fkz\":\"[flurstueckskennzeichen]\",\"gemeindenam
e\":\"[gemeindename]\",\"Gemarkungsname\":\"[Gemarkungsname]\",\"zaehler\":\
"[zaehler]\",\"nenner\":\"[nenner]\"}" 
END

mapcache.xml
 

 mvt
 application/vnd.mapbox-vector-tile
   
 
   
  
 
MVT
flurst_gff
/xyz/utfgrid.map
 
  
  
 http://theurl/cgi-bin/mapserv
  
   
 
   
  
 Flurst UTF
 Flurst UTF
  
  flurst_utf
  disk
  GoogleMapsCompatible
  MVT

 
 
  _  

From: karsten [mailto:kars...@terragis.net] 
Sent: Wednesday, September 07, 2022 14:49
To: 'mapserver-users@lists.osgeo.org'
Subject: RE: Creating UTF grids with MapServer and MapCache


Oh yes that could be the problem, so far I have
 
OUTPUTFORMAT
  NAME "utfgrid" 
  DRIVER UTFGRID
  MIMETYPE "application/json" 
  EXTENSION "json" 
  FORMATOPTION "UTFRESOLUTION=4" 
  FORMATOPTION "DUPLICATES=false" 
END
 
will try with mvt now (goal is to create utfgrid json though)


  _  

From: karsten [mailto:kars...@terragis.net] 
Sent: Wednesday, September 07, 2022 12:38
To: 'mapserver-users@lists.osgeo.org'
Subject: RE: Creating UTF grids with MapServer and MapCache


Thanks Scott,
 
I do have a tileset like this below
 
  
  
 Flurst UTF
 Flurst UTF
  
  flurst_utf
  disk
  GoogleMapsCompatible
  mvt
  5 5
  10
  3600

 
but also with this get the error
 
tileset "flurst_utf_tiles" references format "mvt", but it is not configured
 
  _  

From: karsten [mailto:kars...@terragis.net] 
Sent: Wednesday, September 07, 2022 12:08
To: 'mapserver-users@lists.osgeo.org'
Subject: Creating UTF grids with MapServer and MapCache



Hi All,
 
I am working on a correct configuration to cerate UTFGrid json tiles  via
MapCache and MapServer to seed a json tile set 
 
MapCache is up and running on my ubuntu 20 server and WMS requests (PNG,
Jpeg ) are working as is the seeding utility.
Now I am trying to add a UTFGrid tile layer and added the mvt format into
the (working for the other layers correctly) mapcache.xml:

 mvt
 application/vnd.mapbox-vector-tile
   
the layer is
   
  
 
mvt
flurst
/var/mapdata/utfgrid.map
 
  
  
 http://myserver/cgi-bin/mapserv
  
   
When tryign to restrart apache however I get this error message 
systemctl status apache2.service
● apache2.service - The Apache HTTP Server
 Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor
preset: enabled)
 Active: failed (Result: exit-code) since Wed 2022-09-07 20:31:58 CEST;
28s ago
   Docs: https://httpd.apache.org/docs/2.4/
Process: 1265907 ExecStart=/usr/sbin/apachectl start (code=exited,
status=1/FAILURE)
Sep 07 20:31:58 terraz systemd[1]: Starting The Apache HTTP Server...
Sep 07 20:31:58 terraz apachectl[1265919]: AH00526: Syntax error on line 43
of /etc/apache2/sites-enabled/000-default.conf:
Sep 07 20:31:58 terraz apachectl[1265919]: tileset "flurst_utf_tiles"
references format "mvt", but it is not configured
Sep 07 20:31:58 terraz apachectl[1265907]: Action 'start' failed.

What am I missing here ?
Thanks
 

Karsten Vennemann
  www.terragis.net
 
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [MapServer-users] Creating UTF grids with MapServer and MapCache

2022-09-07 Thread karsten
Oh yes that could be the problem, so far I have
 
OUTPUTFORMAT
  NAME "utfgrid" 
  DRIVER UTFGRID
  MIMETYPE "application/json" 
  EXTENSION "json" 
  FORMATOPTION "UTFRESOLUTION=4" 
  FORMATOPTION "DUPLICATES=false" 
END
 
will try with mvt now (goal is to create utfgrid json though)


  _  

From: karsten [mailto:kars...@terragis.net] 
Sent: Wednesday, September 07, 2022 12:38
To: 'mapserver-users@lists.osgeo.org'
Subject: RE: Creating UTF grids with MapServer and MapCache


Thanks Scott,
 
I do have a tileset like this below
 
  
  
 Flurst UTF
 Flurst UTF
  
  flurst_utf
  disk
  GoogleMapsCompatible
  mvt
  5 5
  10
  3600

 
but also with this get the error
 
tileset "flurst_utf_tiles" references format "mvt", but it is not configured
 
  _  

From: karsten [mailto:kars...@terragis.net] 
Sent: Wednesday, September 07, 2022 12:08
To: 'mapserver-users@lists.osgeo.org'
Subject: Creating UTF grids with MapServer and MapCache



Hi All,
 
I am working on a correct configuration to cerate UTFGrid json tiles  via
MapCache and MapServer to seed a json tile set 
 
MapCache is up and running on my ubuntu 20 server and WMS requests (PNG,
Jpeg ) are working as is the seeding utility.
Now I am trying to add a UTFGrid tile layer and added the mvt format into
the (working for the other layers correctly) mapcache.xml:

 mvt
 application/vnd.mapbox-vector-tile
   
the layer is
   
  
 
mvt
flurst
/var/mapdata/utfgrid.map
 
  
  
 http://myserver/cgi-bin/mapserv
  
   
When tryign to restrart apache however I get this error message 
systemctl status apache2.service
● apache2.service - The Apache HTTP Server
 Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor
preset: enabled)
 Active: failed (Result: exit-code) since Wed 2022-09-07 20:31:58 CEST;
28s ago
   Docs: https://httpd.apache.org/docs/2.4/
Process: 1265907 ExecStart=/usr/sbin/apachectl start (code=exited,
status=1/FAILURE)
Sep 07 20:31:58 terraz systemd[1]: Starting The Apache HTTP Server...
Sep 07 20:31:58 terraz apachectl[1265919]: AH00526: Syntax error on line 43
of /etc/apache2/sites-enabled/000-default.conf:
Sep 07 20:31:58 terraz apachectl[1265919]: tileset "flurst_utf_tiles"
references format "mvt", but it is not configured
Sep 07 20:31:58 terraz apachectl[1265907]: Action 'start' failed.

What am I missing here ?
Thanks
 

Karsten Vennemann
  www.terragis.net
 
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [MapServer-users] Creating UTF grids with MapServer and MapCache

2022-09-07 Thread Scott

In your .map file do you have the MVT format defined, something like:

 OUTPUTFORMAT
NAME "mvt"
DRIVER MVT
FORMATOPTION "EDGE_BUFFER=10"
  END

On 9/7/22 12:38, karsten wrote:

Thanks Scott,
I do have a tileset like this below
   

Flurst UTF
Flurst UTF

flurst_utf
disk
   GoogleMapsCompatible

mvt
5 5
10
3600

but also with this get the error
tileset "flurst_utf_tiles" references format "mvt", but it is not configured

*From:* karsten [mailto:kars...@terragis.net]
*Sent:* Wednesday, September 07, 2022 12:08
*To:* 'mapserver-users@lists.osgeo.org'
*Subject:* Creating UTF grids with MapServer and MapCache

Hi All,
I am working on a correct configuration to cerate UTFGrid json tiles via 
MapCache and MapServerto seed a json tile set
MapCache is up and running on my ubuntu 20 server and WMS requests (PNG, 
Jpeg ) are working as is the seeding utility.


Now I am trying to add a UTFGrid tile layer and added the mvt format 
into the (working for the other layers correctly) mapcache.xml:


    
  mvt
  application/vnd.mapbox-vector-tile
    

the layer is

    
   
  
     mvt
     flurst
     /var/mapdata/utfgrid.map
  
   
   
  http://myserver/cgi-bin/mapserv
   
    

When tryign to restrart apache however I get this error message

systemctl status apache2.service
● apache2.service - The Apache HTTP Server
  Loaded: loaded (/lib/systemd/system/apache2.service; enabled; 
vendor preset: enabled)
  Active: failed (Result: exit-code) since Wed 2022-09-07 20:31:58 
CEST; 28s ago
    Docs: https://httpd.apache.org/docs/2.4/ 

     Process: 1265907 ExecStart=/usr/sbin/apachectl start (code=exited, 
status=1/FAILURE)


Sep 07 20:31:58 terraz systemd[1]: Starting The Apache HTTP Server...
Sep 07 20:31:58 terraz apachectl[1265919]: AH00526: Syntax error on line 
43 of /etc/apache2/sites-enabled/000-default.conf:
Sep 07 20:31:58 terraz apachectl[1265919]: tileset "flurst_utf_tiles" 
references format "mvt", but it is not configured

Sep 07 20:31:58 terraz apachectl[1265907]: Action 'start' failed.

What am I missing here ?

Thanks

  


Karsten Vennemann
www.terragis.net 


___
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] Creating UTF grids with MapServer and MapCache

2022-09-07 Thread karsten
Thanks Scott,
 
I do have a tileset like this below
 
  
  
 Flurst UTF
 Flurst UTF
  
  flurst_utf
  disk
  GoogleMapsCompatible
  mvt
  5 5
  10
  3600

 
but also with this get the error
 
tileset "flurst_utf_tiles" references format "mvt", but it is not configured
 
  _  

From: karsten [mailto:kars...@terragis.net] 
Sent: Wednesday, September 07, 2022 12:08
To: 'mapserver-users@lists.osgeo.org'
Subject: Creating UTF grids with MapServer and MapCache



Hi All,
 
I am working on a correct configuration to cerate UTFGrid json tiles  via
MapCache and MapServer to seed a json tile set 
 
MapCache is up and running on my ubuntu 20 server and WMS requests (PNG,
Jpeg ) are working as is the seeding utility.
Now I am trying to add a UTFGrid tile layer and added the mvt format into
the (working for the other layers correctly) mapcache.xml:

 mvt
 application/vnd.mapbox-vector-tile
   
the layer is
   
  
 
mvt
flurst
/var/mapdata/utfgrid.map
 
  
  
 http://myserver/cgi-bin/mapserv
  
   
When tryign to restrart apache however I get this error message 
systemctl status apache2.service
● apache2.service - The Apache HTTP Server
 Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor
preset: enabled)
 Active: failed (Result: exit-code) since Wed 2022-09-07 20:31:58 CEST;
28s ago
   Docs: https://httpd.apache.org/docs/2.4/
Process: 1265907 ExecStart=/usr/sbin/apachectl start (code=exited,
status=1/FAILURE)
Sep 07 20:31:58 terraz systemd[1]: Starting The Apache HTTP Server...
Sep 07 20:31:58 terraz apachectl[1265919]: AH00526: Syntax error on line 43
of /etc/apache2/sites-enabled/000-default.conf:
Sep 07 20:31:58 terraz apachectl[1265919]: tileset "flurst_utf_tiles"
references format "mvt", but it is not configured
Sep 07 20:31:58 terraz apachectl[1265907]: Action 'start' failed.

What am I missing here ?
Thanks
 

Karsten Vennemann
  www.terragis.net
 
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [MapServer-users] Creating UTF grids with MapServer and MapCache

2022-09-07 Thread Scott

You probably need to define the tileset, something like:


  test_wms_mvt
  myGridName
  disk
  MVT



On 9/7/22 12:08, karsten wrote:

Hi All,
I am working on a correct configuration to cerate UTFGrid json tiles via 
MapCache and MapServerto seed a json tile set
MapCache is up and running on my ubuntu 20 server and WMS requests (PNG, 
Jpeg ) are working as is the seeding utility.


Now I am trying to add a UTFGrid tile layer and added the mvt format 
into the (working for the other layers correctly) mapcache.xml:


    
  mvt
  application/vnd.mapbox-vector-tile
    

the layer is

    
   
  
     mvt
     flurst
     /var/mapdata/utfgrid.map
  
   
   
  http://myserver/cgi-bin/mapserv
   
    

When tryign to restrart apache however I get this error message

systemctl status apache2.service
● apache2.service - The Apache HTTP Server
  Loaded: loaded (/lib/systemd/system/apache2.service; enabled; 
vendor preset: enabled)
  Active: failed (Result: exit-code) since Wed 2022-09-07 20:31:58 
CEST; 28s ago
    Docs: https://httpd.apache.org/docs/2.4/ 

     Process: 1265907 ExecStart=/usr/sbin/apachectl start (code=exited, 
status=1/FAILURE)


Sep 07 20:31:58 terraz systemd[1]: Starting The Apache HTTP Server...
Sep 07 20:31:58 terraz apachectl[1265919]: AH00526: Syntax error on line 
43 of /etc/apache2/sites-enabled/000-default.conf:
Sep 07 20:31:58 terraz apachectl[1265919]: tileset "flurst_utf_tiles" 
references format "mvt", but it is not configured

Sep 07 20:31:58 terraz apachectl[1265907]: Action 'start' failed.

What am I missing here ?

Thanks

  


Karsten Vennemann
www.terragis.net 


___
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] Creating UTF grids with MapServer and MapCache

2022-09-07 Thread karsten

Hi All,
 
I am working on a correct configuration to cerate UTFGrid json tiles  via
MapCache and MapServer to seed a json tile set 
 
MapCache is up and running on my ubuntu 20 server and WMS requests (PNG,
Jpeg ) are working as is the seeding utility.
Now I am trying to add a UTFGrid tile layer and added the mvt format into
the (working for the other layers correctly) mapcache.xml:

 mvt
 application/vnd.mapbox-vector-tile
   
the layer is
   
  
 
mvt
flurst
/var/mapdata/utfgrid.map
 
  
  
 http://myserver/cgi-bin/mapserv
  
   
When tryign to restrart apache however I get this error message 
systemctl status apache2.service
● apache2.service - The Apache HTTP Server
 Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor
preset: enabled)
 Active: failed (Result: exit-code) since Wed 2022-09-07 20:31:58 CEST;
28s ago
   Docs: https://httpd.apache.org/docs/2.4/
Process: 1265907 ExecStart=/usr/sbin/apachectl start (code=exited,
status=1/FAILURE)
Sep 07 20:31:58 terraz systemd[1]: Starting The Apache HTTP Server...
Sep 07 20:31:58 terraz apachectl[1265919]: AH00526: Syntax error on line 43
of /etc/apache2/sites-enabled/000-default.conf:
Sep 07 20:31:58 terraz apachectl[1265919]: tileset "flurst_utf_tiles"
references format "mvt", but it is not configured
Sep 07 20:31:58 terraz apachectl[1265907]: Action 'start' failed.

What am I missing here ?
Thanks
 

Karsten Vennemann
  www.terragis.net
 
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [MapServer-users] MB Tiles vs. UTF grids

2022-09-07 Thread karsten
Thanks for the hints on FlatGeoBuf and mbtiles vs.utfgrid specs.
My next steps will be configuring my MapCache installation correctly with
MapServer to create UTFgrid tiles ...

  _  

From: karsten [mailto:kars...@terragis.net] 
Sent: Friday, September 02, 2022 15:22
To: 'mapserver-users@lists.osgeo.org'
Subject: MB Tiles vs. UTF grids 


Hi All,
 
For the first time, I am diving into actually using vector tiles and or UTF
grids on an OpenLayers map. I am confused  about UTF grids, especially I
could not find clear answers whether UTF Grids have been completely replaced
by MB Tiles or if UTF Grids are now a subset of MB Tiles. Posts on the web
seem to suggest that
 UTF grids can be stored inside MB Tiles . Note that I am
trying to stay outside the Mapbox empire (as much as possible) and trying to
use GDAL, MapServer etc.
GDAL can produce MB tiles (but not sure if that includes UTF grid info as
well) and MapServer can deliver UTF grid via WMS on the fly, but not sure
how performance is so far ...
Would anyone have some insights ?
 
Thanks
 
Karsten Vennemann
  www.terragis.net
 
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


[MapServer-users] [REMINDER] Twin Cities - OSGeo Local Chapter Meeting, Sept.14th

2022-09-07 Thread Basques, Bob (CI-StPaul)
All,

This will be a face to face meeting at Sea Salt in Minnehaha Park.

https://goo.gl/maps/hTYgVNmmHBHrcGa58

Time: 4:30

See you there.

Bobb



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


Re: [MapServer-users] msLoadMap(): Unable to access file. (full file path)

2022-09-07 Thread Steve Lime
Hi Michal: AFAIK it's always been that way as an aid to debugging. I can
certainly appreciate the argument that error messages shouldn't contain any
references to file locations and could write that information to debug logs
instead. I'm curious what others think.

I always resort to using mapfile aliases to obfuscate locations but I
believe even that approach could cough up a path (albeit an incorrect one)
if the alias is set incorrectly.

--Steve

On Tue, Sep 6, 2022 at 7:22 AM Michal Seidl  wrote:

>
> Hello,
> is there way not to show the full path in the msLoadMap(): Unable to
> access file error?
>
> I have managed to hide path through the Apache mod_rewrite, but showing
> full path on error in not security issue?
>
> Thanks Michal Seidl
> ___
> 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