Re: [mapserver-users] data parameter in tileindex

2021-03-24 Thread Lars Schylberg
I also have this fascination about tile indexes.I have one example how to use shp2tile and create faster setup if You have large data files. It shows how to set up ogrtindex. I still use this script in some projects. I guess I must have shared it on the users-list a couple of years ago, since i

Re: [mapserver-users] data parameter in tileindex

2021-03-24 Thread Jeff McKenna
Spurred on by Zmitser, I've given some much needed love to the tileindex examples (see https://mapserver.org/optimization/tileindex.html#long-ogrtindex-example ). It doesn't answer Zmitser's exact questions but it hopefully helps the next person understand how to implement. Also, pull reques

Re: [mapserver-users] data parameter in tileindex

2021-03-24 Thread Zmitser Kozhukh via mapserver-users
Thank you very much, Edward, for the suggestion. But I use tiles of vector data. And currently the problem is how to put postgis connection and data parameter in one (so that mapserver parses it correctly from location column of tileindex) . With best regards, Zmitser   >Среда, 24 марта 2021,

Re: [mapserver-users] data parameter in tileindex

2021-03-24 Thread Zmitser Kozhukh via mapserver-users
Dear Jukka, you right with OGR it works. If I type something like: "PG:"dbname=database host=127.0.0.1 port=5432 user=admin password=admin  tables=objects_in_countryA(geom)"" It works. Because for OGR layer types, providing connection is enough. But for PostGIS , also the data part need to be prov

Re: [mapserver-users] data parameter in tileindex

2021-03-24 Thread Rahkonen Jukka (MML)
Hi, Obviously you are playing with vector data, not rasters, and you are trying to make a ogrtileindex instead of gdaltindex. I know, technically there is no difference. I have used ogrtileindex with great success with shapefiles. I have never tried to do the same with PostGIS data and I can o

Re: [mapserver-users] data parameter in tileindex

2021-03-24 Thread Edward Mac Gillavry
Zmister, Check out the GH repo of the Amsterdam municipality. The MAP-file for 2020 is at https://github.com/Amsterdam/mapserver/blob/master/lufo2020.map where you can see the DATA connection to the Shape file that holds the tile index. The Shape files for the various years are in the folder h

Re: [mapserver-users] data parameter in tileindex

2021-03-24 Thread Zmitser Kozhukh via mapserver-users
Dear Carlos, it is not about mapfile, it is in location cell of tileindex. It is one cell in table (database table, dbf file etc.), and I need to put there both connection and data details. The question is how to make it so that mapserver parses it correctly. Sincerely, Zmitser >Среда, 24 марта