Hi,
please read my answers bellow:

On 03/08/2017 07:29 AM, kg_loveyou wrote:
Hi,
    I'm confused with some questions.
    1.what does the "xcount" and "ycount" mean?

I guess that by "xcount" and "ycount" you are referring to the "rowRangeCount" and "columnRangeCount" properties.

As said in the documentation (http://docs.geoserver.org/stable/en/user/community/gwc-sqlite/index.html):

   The/templatePath/  property is used to control the granularity of the 
database files (see section above).
   Properties/rowRangeCount/  and/columnRangeCount/  will be used by the path 
template to compute tile ranges.

These properties when used with path template terms "y" and "x" allow you to control the maximum number of tiles per MBTiles file. The default configuration and file template ({layer}/{grid}{format}{params}/{z}-{x}-{y}.sqlite) will make each MBTiles contain at max 250*250 tiles. So file 20-0-250.sqlite will contain tiles for zoom level 20, X tiles 0 to 250 and Y tiles 250 to 500.

    2."In the previous example, tile
(z,x,y)=(15,3024,1534) would be stored in a file named
/path/to/g/mytileset/15/3000-1000.sqlite3 and tile (5,2,8) would be stored
in a file
named /path/to/g/mytileset/5/0-0.sqlite3. "-------The values for x and y
are greater than the corresponding values in the file name?

I don't know which values you used for "rowRangeCount" and "columnRangeCount" but let's say you use 1000 thousand for both.

File '/path/to/g/mytileset/15/3000-1000.sqlite3' will contain X tiles from 3000 to 4000 and Y tiles from 1000 to 2000. File '/path/to/g/mytileset/5/0-0.sqlite3' will contain X tiles from 0 to 1000 and Y tiles from 0 to 1000. The range count is equal for both X and Y in this case.

   3.mbtiles is usually a single file.If I want to use this plugin , i have
to split it into several sqlite files?

You don't need to create several files, the path template just give you options to control the granularity of the databases files. The MBTiles specification (https://github.com/mapbox/mbtiles-spec/blob/master/1.1/spec.md) defines several restrictions regarding the content of the MBTiles files (one layer per file, one image format per file, etc ..).

I don't know what you are trying to achieve (creating MBTiles files to be consumed by another application ?), in this case your template could look like this:

{layer}/{params}/{grid}/{format}/mbtiles.sqlite

Is up to you to define the path template that suits you the best, you need to take in consideration your use case and performance requirements.

Hope it helps.

Regards,

Nuno Oliveira

--
==
GeoServer Professional Services from the experts!
Visit http://goo.gl/it488V for more information.
==
Nuno Miguel Carvalho Oliveira
@nmcoliveira
Software Engineer

GeoSolutions S.A.S.
Via di Montramito 3/A
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:   +39 0584 1660272
mob:   +39  333 8128928

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i 
file/s allegato/i sono
da considerarsi strettamente riservate. Il loro utilizzo è consentito 
esclusivamente al destinatario del messaggio, per le finalità indicate
nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il 
destinatario, Vi preghiamo cortesemente di darcene notizia via e
-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal 
Vostro sistema. Conservare il messaggio stesso, divulgarlo
anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per 
finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.
The information in this message and/or attachments, is intended solely for the attention and use of
the named addressee(s) and may be confidential or proprietary in nature or 
covered by the provisions of privacy act (Legislative Decree
June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in accord 
with its purpose, any disclosure, reproduction, copying,
distribution, or either dissemination, either whole or partial, is strictly 
forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact immediately 
the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender does 
not give any warranty or accept liability as the content,
accuracy or completeness of sent messages and accepts no responsibility  for 
changes made after they were sent or for other risks which
arise as a result of e-mail transmission, viruses, etc.

------------------------------------------------------------------------------
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to