- /
- /
- /
FTP Output Provider
Very similar to the File Output Provider, this output provider writes his data over FTP to a folder on a server in a slippymap compatible folder structure.
The connection to the FTP server is configured like the DB connection. However since it is an outgoing connection it is not placed in the datasource but in the datatarget tag.
MapRender will open the connection to the FTP server on startup and close it before shutting down. All render threads share this connection and reuse it for saving the tiles.
<maprender> <datasource> ...</datasource> <bounds>...</bounds> <processing>...</processing> <datatarget> <ftp> <server>127.0.0.1</server> <port>21</port> <username>ftp-username</username> <password>ftp-password</password> <sftp>false</sftp> </ftp> </datatarget> <jobs> <job name="demo"> <configuration>C:\maprender\configs\osm-styles\style-demo.xml</configuration> <output imagetype="png"> <ftp folder="/var/www/tiles/demo"></ftp> </output> </job> </jobs> </maprender>
The given folder will act as the root folder on the server for the slippymap folder structure.
Slippymap folder structure means that the image and folders have specific names indicating the X and Y coordinates and the zoom level: e.g. <root-folder>/zoom/x/y.png
The sub-folders will be automatically generated.