Skip to content

Commit b864705

Browse files
committed
update names
1 parent e6e34ca commit b864705

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/mapnik_image.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ PyObject* tostring1( image_any const& im)
6868
#else
6969
::PyString_FromStringAndSize
7070
#endif
71-
((const char*)im.getBytes(),im.getSize());
71+
((const char*)im.bytes(),im.size());
7272
}
7373

7474
// encode (png,jpeg)
@@ -156,14 +156,14 @@ struct get_pixel_visitor
156156
{
157157
throw std::runtime_error("Can not return a null image from a pixel (shouldn't have reached here)");
158158
}
159-
159+
160160
template <typename T>
161161
object operator() (T const& im)
162162
{
163163
using pixel_type = typename T::pixel_type;
164164
return object(mapnik::get_pixel<pixel_type>(im, x_, y_));
165165
}
166-
166+
167167
private:
168168
unsigned x_;
169169
unsigned y_;
@@ -173,7 +173,7 @@ object get_pixel(mapnik::image_any const& im, unsigned x, unsigned y, bool get_c
173173
{
174174
if (x < static_cast<unsigned>(im.width()) && y < static_cast<unsigned>(im.height()))
175175
{
176-
if (get_color)
176+
if (get_color)
177177
{
178178
return object(
179179
mapnik::get_pixel<mapnik::color>(im, x, y)
@@ -312,7 +312,7 @@ void composite(image_any & dst, image_any & src, mapnik::composite_mode_e mode,
312312
bool demultiply_dst = mapnik::premultiply_alpha(dst);
313313
bool demultiply_src = mapnik::premultiply_alpha(src);
314314
mapnik::composite(dst,src,mode,opacity,dx,dy);
315-
if (demultiply_dst)
315+
if (demultiply_dst)
316316
{
317317
mapnik::demultiply_alpha(dst);
318318
}

src/python_grid_utils.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ void grid2utf(T const& grid_type,
7373
{
7474
std::uint16_t idx = 0;
7575
const std::unique_ptr<Py_UNICODE[]> line(new Py_UNICODE[array_size]);
76-
typename T::value_type const* row = data.getRow(y);
76+
typename T::value_type const* row = data.get_row(y);
7777
for (unsigned x = 0; x < data.width(); ++x)
7878
{
7979
typename T::value_type feature_id = row[x];
@@ -136,7 +136,7 @@ void grid2utf(T const& grid_type,
136136
{
137137
std::uint16_t idx = 0;
138138
const std::unique_ptr<Py_UNICODE[]> line(new Py_UNICODE[array_size]);
139-
mapnik::grid::value_type const* row = grid_type.getRow(y);
139+
mapnik::grid::value_type const* row = grid_type.get_row(y);
140140
for (unsigned x = 0; x < grid_type.width(); x=x+resolution)
141141
{
142142
typename T::value_type feature_id = row[x];
@@ -203,7 +203,7 @@ void grid2utf2(T const& grid_type,
203203
{
204204
uint16_t idx = 0;
205205
const std::unique_ptr<Py_UNICODE[]> line(new Py_UNICODE[array_size]);
206-
mapnik::grid::value_type * row = target.getRow(y);
206+
mapnik::grid::value_type * row = target.get_row(y);
207207
unsigned x;
208208
for (x = 0; x < target.width(); ++x)
209209
{

0 commit comments

Comments
 (0)