how can i use my own map tiles with tilecache?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

how can i use my own map tiles with tilecache?

leena0001
am trying to use my own map tiles with qgis, but seems like i need to configure the tilecache to be able to receive requests from wms;
 
i am using Quantum gis 1.8.0 with gdal 1.7.0

when i load my xml file with quantum gis using "add raster layer" icon, i get nothin, notice that am specifying the local directory of my map tiles;
<ServerUrl>file:///home/mytiles/${z}/${x}/${y}.png</ServerUrl>

this is my xml file:

<GDAL_WMS>
    <Service name="TMS">
        <ServerUrl>file:///mytiles/${
z}/${x}/${y}.png</ServerUrl>
    </Service>
    <DataWindow>
        <UpperLeftX>-20037508.34</UpperLeftX>
        <UpperLeftY>20037508.34</UpperLeftY>
        <LowerRightX>20037508.34</LowerRightX>
        <LowerRightY>-20037508.34</LowerRightY>
        <TileLevel>18</TileLevel>
        <TileCountX>1</TileCountX>
        <TileCountY>1</TileCountY>
        <YOrigin>top</YOrigin>
    </DataWindow>
    <Projection>EPSG:900913</Projection>
    <BlockSizeX>256</BlockSizeX>
    <BlockSizeY>256</BlockSizeY>
    <BandsCount>3</BandsCount>
    <Cache />
</GDAL_WMS>

so am not really sure how can i set up the tilecache to get the requests from wms server in qgis;
am new with gis technology so i appreciate any help or direction :)

_______________________________________________
Tilecache mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/tilecache
Reply | Threaded
Open this post in threaded view
|

Re: how can i use my own map tiles with tilecache?

Ivan Mincik
On Tue, 2012-09-25 at 17:03 +0400, leena S wrote:

> am trying to use my own map tiles with qgis, but seems like i need to
> configure the tilecache to be able to receive requests from wms;
>  
> i am using Quantum gis 1.8.0 with gdal 1.7.0
>
> when i load my xml file with quantum gis using "add raster layer"
> icon, i get nothin, notice that am specifying the local directory of
> my map tiles;
> <ServerUrl>file:///home/mytiles/${z}/${x}/${y}.png</ServerUrl>
>
> this is my xml file:
>
> <GDAL_WMS>
>     <Service name="TMS">
>         <ServerUrl>file:///mytiles/${
> z}/${x}/${y}.png</ServerUrl>
>     </Service>
>     <DataWindow>
>         <UpperLeftX>-20037508.34</UpperLeftX>
>         <UpperLeftY>20037508.34</UpperLeftY>
>         <LowerRightX>20037508.34</LowerRightX>
>         <LowerRightY>-20037508.34</LowerRightY>
>
>         <TileLevel>18</TileLevel>
>         <TileCountX>1</TileCountX>
>         <TileCountY>1</TileCountY>
>         <YOrigin>top</YOrigin>
>     </DataWindow>
>
>     <Projection>EPSG:900913</Projection>
>     <BlockSizeX>256</BlockSizeX>
>     <BlockSizeY>256</BlockSizeY>
>     <BandsCount>3</BandsCount>
>     <Cache />
> </GDAL_WMS>
>
> so am not really sure how can i set up the tilecache to get the
> requests from wms server in qgis;
> am new with gis technology so i appreciate any help or direction :)

You do not need to write any XML file.
QGIS is able to connect TileCache layers directly (Tiled WMS) using WMS
provider. Just add new WMS service and if TC properly configured, You
will find Your tiles in 'Tilesets' tab after pressing 'Connect' button.



--
Ivan Mincik <[hidden email]>

_______________________________________________
Tilecache mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/tilecache

signature.asc (501 bytes) Download Attachment