Re: [mapserver-users] How can I get a customized MapCache folder structure with several dimensions as subfolders

2016-02-01 Thread thomas bonfort
Carola,

If you are willing to try out the master branch you can specify the keys in
the disk template as {dim:dimname}, I.e. in your case:

/path/{dim:year}/{dim:month}/etc..

Make sure to read the migration-guide.txt as the syntax to define
dimensions has changed a little.

--
Thomas
On Feb 1, 2016 12:33 PM, "Carola Kaiser"  wrote:

> Hello,
>
>
>
> I am using MapServer 7.0 with MapCache and would like to customize the
> cache storage directory structure by using several dimensions as subfolders.
>
> The goal is to get a cache folder structure like:
>
> C:/ms4w/tmp/ms_tmp/cache/{YEAR}/{MONTH}/{DAY}/{z}/{y}/{x}.{ext}
>
>
>
> Here is what I have tried in my mapcache.xml file:
>
> 1.   Use the  absolute path
>
>
>
>
>
>   C:/ms4w/tmp/ms_tmp/cache/
>
>
>
>
>
>
>
> …
>
>
>
>
>
>
>
>   vmap0
>
>   disk
>
>   WGS84
>
>   PNG
>
>   
>
>  default="2016">^[0-9]{4}$
>
>   default="00">^[0-9]{2}$
>
>  default="00">^[0-9]{2}$
>
>   
>
>
>
>
>
> This works pretty nice but the final folder structure is:
>
> C:/ms4w/tmp/ms_tmp/cache/test/WGS84/{YEAR}/{MONTH}/{DAY}/{z}/{y}/{x}.{ext}
>
> How can I get rid of the test/WGS84 folders?
>
>
>
> 2.   Use the cache template tag
>
>
>
>
>
>
> C:/ms4w/tmp/ms_tmp/cache/{YEAR}/{MONTH}/{DAY}/{z}/{y}/{x}.{ext}
>
>
>
>
>
>
>
> …
>
>
>
>
>
>
>
>   vmap0
>
>   disk
>
>   WGS84
>
>   PNG
>
>   
>
>default="2016">^[0-9]{4}$
>
>default="00">^[0-9]{2}$
>
>default="00">^[0-9]{2}$
>
>   
>
>
>
>
>
> The template does only allow me to concatenate all dimensions like
> {YEAR}_{MONTH}_{DAY} but not to create a subfolder name from each dimension:
>
> /{YEAR}/{MONTH}/{DAY}/
>
>
>
> Is it possible to customize the cache folder structure and how can I
> achieve this? Any help is very much appreciated!
>
>
>
> Thanks!
>
> Carola
>
>
>
> ~~
>
> Carola Kaiser, IT Consultant & GIS specialist
>
> Center for Computation & Technology
>
> Louisiana State University
>
> e-mail: ckai...@cct.lsu.edu
>
> CERA: http://coastalemergency.org
>
>
>
>
>
>
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] File GDB performance vs Shapefile Performance

2016-02-01 Thread Simon Mercier

you should try tile4ms or ogrtindex instead of using ogr connection.

http://mapserver.org/utilities/tile4ms.html
http://www.gdal.org/ogrtindex.html

simon



On 2/1/2016 3:39 PM, Mark Volz wrote:


Hello,

My interactive mapping application is currently using Shapefiles to 
store the contour lines.  At 1.5 GB the Shapefiles are rather large.  
Instead I am considering using a File Geodatabase which will only take 
up about 500 MB.


Is there a significant performance loss between Shapefiles and File 
Geodatabases?  And are there any performance tips and tricks for using 
File Geodatabases?


Thanks

Sincerely,

*Mark Volz, GISP*

*Lyon County GIS Coordinator*



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


--
Simon Mercier
mapgears.com
Quebec: +1 418.476.7139 #101
Toll Free: +1 888.696.5056 #101

evouala.com - Location Intelligence Made Easy

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

Re: [mapserver-users] How can I get a customized MapCache folder structure with several dimensions as subfolders

2016-02-01 Thread Jeff McKenna

Hi Carola,

MS4W builds contain MapCache 1.4.0 (released in July).  The next MS4W 
release will include MapCache-master, but in fact we've recently been 
hitting a compiler error with MapCache-master.


You can follow along this progress, in the associated MapCache ticket 
(https://github.com/mapserver/mapcache/issues/139) as well as the MS4W 
ticket for adding this support (http://ms4w.com/trac/ticket/39).


Thanks,

-jeff



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



On 2016-02-01 3:20 PM, thomas bonfort wrote:

Carola,

If you are willing to try out the master branch you can specify the keys
in the disk template as {dim:dimname}, I.e. in your case:

/path/{dim:year}/{dim:month}/etc..

Make sure to read the migration-guide.txt as the syntax to define
dimensions has changed a little.

--
Thomas

On Feb 1, 2016 12:33 PM, "Carola Kaiser" > wrote:

Hello,

__ __

I am using MapServer 7.0 with MapCache and would like to customize
the cache storage directory structure by using several dimensions as
subfolders.

The goal is to get a cache folder structure like:

C:/ms4w/tmp/ms_tmp/cache/{YEAR}/{MONTH}/{DAY}/{z}/{y}/{x}.{ext}

__ __

Here is what I have tried in my mapcache.xml file:

__1.__Use the  absolute path

__ __



   C:/ms4w/tmp/ms_tmp/cache/





 

…







   vmap0

   disk

   WGS84

   PNG

   

 ^[0-9]{4}$

  ^[0-9]{2}$

 ^[0-9]{2}$

   



__ __

This works pretty nice but the final folder structure is:


C:/ms4w/tmp/ms_tmp/cache/test/WGS84/{YEAR}/{MONTH}/{DAY}/{z}/{y}/{x}.{ext}

How can I get rid of the test/WGS84 folders?

__ __

__2.__Use the cache template tag

__ __





C:/ms4w/tmp/ms_tmp/cache/{YEAR}/{MONTH}/{DAY}/{z}/{y}/{x}.{ext}







…







   vmap0

   disk

   WGS84

   PNG

   

   ^[0-9]{4}$

   ^[0-9]{2}$

   ^[0-9]{2}$

   



__ __

The template does only allow me to concatenate all dimensions like
{YEAR}_{MONTH}_{DAY} but not to create a subfolder name from each
dimension:

/{YEAR}/{MONTH}/{DAY}/

__ __

Is it possible to customize the cache folder structure and how can I
achieve this? Any help is very much appreciated!

__ __

Thanks!

Carola

__ __

~~

Carola Kaiser, IT Consultant & GIS specialist

Center for Computation & Technology

Louisiana State University

e-mail: ckai...@cct.lsu.edu 

CERA: http://coastalemergency.org

__ __

__ __





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

[mapserver-users] File GDB performance vs Shapefile Performance

2016-02-01 Thread Mark Volz
Hello,

My interactive mapping application is currently using Shapefiles to store the 
contour lines.  At 1.5 GB the Shapefiles are rather large.  Instead I am 
considering using a File Geodatabase which will only take up about 500 MB.

Is there a significant performance loss between Shapefiles and File 
Geodatabases?  And are there any performance tips and tricks for using File 
Geodatabases?

Thanks

Sincerely,
Mark Volz, GISP
Lyon County GIS Coordinator


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

Re: [mapserver-users] File GDB performance vs Shapefile Performance

2016-02-01 Thread Lime, Steve D (MNIT)
You'll really just have to test side-by-side see. I've only done anecdotal 
testing with more moderate-size layers and found file geodatabases to be about 
twice as slow as a shapefile. Maybe others have done more rigorous benchmarking.

MapServer 7.0
ESRI FileGDB API 1.2
GDAL 1.11.2

Steve

From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Mark Volz
Sent: Monday, February 01, 2016 2:39 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] File GDB performance vs Shapefile Performance

Hello,

My interactive mapping application is currently using Shapefiles to store the 
contour lines.  At 1.5 GB the Shapefiles are rather large.  Instead I am 
considering using a File Geodatabase which will only take up about 500 MB.

Is there a significant performance loss between Shapefiles and File 
Geodatabases?  And are there any performance tips and tricks for using File 
Geodatabases?

Thanks

Sincerely,
Mark Volz, GISP
Lyon County GIS Coordinator


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

[mapserver-users] How can I get a customized MapCache folder structure with several dimensions as subfolders

2016-02-01 Thread Carola Kaiser
Hello,

 

I am using MapServer 7.0 with MapCache and would like to customize the cache
storage directory structure by using several dimensions as subfolders.

The goal is to get a cache folder structure like:

C:/ms4w/tmp/ms_tmp/cache/{YEAR}/{MONTH}/{DAY}/{z}/{y}/{x}.{ext}

 

Here is what I have tried in my mapcache.xml file:

1.   Use the  absolute path

 

   

  C:/ms4w/tmp/ms_tmp/cache/

   

   



.

   

   

   

  vmap0

  disk

  WGS84

  PNG

  

^[0-9]{4}$

 ^[0-9]{2}$

^[0-9]{2}$

  

   

 

This works pretty nice but the final folder structure is:

C:/ms4w/tmp/ms_tmp/cache/test/WGS84/{YEAR}/{MONTH}/{DAY}/{z}/{y}/{x}.{ext}

How can I get rid of the test/WGS84 folders?

 

2.   Use the cache template tag

 

   

 
C:/ms4w/tmp/ms_tmp/cache/{YEAR}/{MONTH}/{DAY}/{z}/{y}/{x}.{ext}

   

   

   

.

   

   

   

  vmap0

  disk

  WGS84

  PNG

  

  ^[0-9]{4}$

  ^[0-9]{2}$

  ^[0-9]{2}$

  

   

 

The template does only allow me to concatenate all dimensions like
{YEAR}_{MONTH}_{DAY} but not to create a subfolder name from each dimension:

/{YEAR}/{MONTH}/{DAY}/

 

Is it possible to customize the cache folder structure and how can I achieve
this? Any help is very much appreciated!

 

Thanks!

Carola

 

~~

Carola Kaiser, IT Consultant & GIS specialist

Center for Computation & Technology

Louisiana State University

e-mail:   ckai...@cct.lsu.edu

CERA:   http://coastalemergency.org

 

 

 

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