// $Id: mapnik.h 185 1994-06-08 08:37:25Z commiter $
// mapnik.h
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.

#ifdef MAPNIK
#ifndef _MAPNIK_DEF_H
#define _MAPNIK_DEF_H

#include "gtk/gtk.h"

void init_mapnik(char *ConfigXML);
int active_mapnik_ysn();
int gen_mapnik_config_xml_ysn(char *Dest, char *Username,int night_color_replace);
int set_mapnik_map_ysn(const double pPosLatDbl, const double pPosLonDbl, int pForceNewCenterYsn, const int pScaleLevelInt);
GdkPixbuf *get_mapnik_gdk_pixbuf ( );
double get_mapnik_mapscale();
double get_mapnik_pixelfactor();
int get_mapnik_newmapysn();
int set_mapnik_newmapysn(int pInt);
void get_mapnik_center(double *pLatDbl, double *pLonDbl);
void get_mapnik_calcxytopos(double *pLatDbl, double *pLonDbl, int pX, int pY, int pXOffInt, int pYOffInt, int zoom, int mapx2Int, int mapy2Int);
void get_mapnik_calcxy(int *pXDbl, int *pYDbl, double pLatDbl, double pLonDbl, int pXOffInt, int pYOffInt, int pZoom, int mapx2Int, int mapy2Int);
void get_mapnik_minixy2latlon(int pXInt, int pYInt, double *pLatDbl, double *pLonDbl);
void get_mapnik_minicalcxy(int *pXDbl, int *pYDbl, double pLatDbl, double pLonDbl, int pZoom);
void convert_mapnik_coords(double *pXDbl, double *pYDbl, double pLatDbl, double pLonDbl, int mode);

#endif // _MAPNIK_DEF_H
#endif // MAPNIK
