Permalink
Browse files

Added MapScript setter/getter for layer geomtransform

  • Loading branch information...
1 parent b3746cf commit 29936580ff130187ea1366db013d98398a6d04f4 Alan Boudreault committed Feb 19, 2013
View
@@ -2705,7 +2705,7 @@ int loadStyle(styleObj *style)
int s;
if((s = getSymbol(2, MS_STRING, MS_EXPRESSION)) == -1) return(MS_FAILURE);
if(s == MS_STRING)
- msSetGeomTransform(&style->_geomtransform, msyystring_buffer);
+ msStyleSetGeomTransform(&style->_geomtransform, msyystring_buffer);
else {
/* handle expression case here for the moment */
msFree(style->_geomtransform.string);
View
@@ -32,7 +32,7 @@
extern int yyparse(parseObj *p);
-void msSetGeomTransform(expressionObj *g, char *transform)
+void msStyleSetGeomTransform(expressionObj *g, char *transform)
{
msFree(g->string);
g->string = msStrdup(transform);
@@ -210,7 +210,7 @@ int msDrawTransformedShape(mapObj *map, symbolSetObj *symbolset, imageObj *image
}
/*
- * RFCXX implementation:
+ * RFC89 implementation:
* - transform directly the shapeobj
* - Only shape depression supported for layers
*/
View
@@ -165,7 +165,7 @@ PHP_METHOD(classObj, __construct)
PHP_METHOD(classObj, __get)
{
char *property;
- long property_len;
+ long property_len = 0;
zval *zobj = getThis();
php_class_object *php_class;
@@ -201,7 +201,7 @@ PHP_METHOD(classObj, __get)
PHP_METHOD(classObj, __set)
{
char *property;
- long property_len;
+ long property_len = 0;
zval *value;
zval *zobj = getThis();
php_class_object *php_class;
@@ -338,7 +338,7 @@ PHP_METHOD(classObj, getLabel)
PHP_METHOD(classObj, updateFromString)
{
char *snippet;
- long snippet_len;
+ long snippet_len = 0;
zval *zobj = getThis();
php_class_object *php_class;
int status = MS_FAILURE;
@@ -370,7 +370,7 @@ PHP_METHOD(classObj, updateFromString)
PHP_METHOD(classObj, setExpression)
{
char *expression;
- long expression_len;
+ long expression_len = 0;
zval *zobj = getThis();
php_class_object *php_class;
int status = MS_FAILURE;
@@ -429,7 +429,7 @@ PHP_METHOD(classObj, getExpressionString)
PHP_METHOD(classObj, setText)
{
char *text;
- long text_len;
+ long text_len = 0;
zval *zobj = getThis();
php_class_object *php_class;
php_layer_object *php_layer;
@@ -66,7 +66,7 @@ PHP_METHOD(clusterObj, __construct)
PHP_METHOD(clusterObj, __get)
{
char *property;
- long property_len;
+ long property_len = 0;
zval *zobj = getThis();
php_cluster_object *php_cluster;
@@ -91,7 +91,7 @@ PHP_METHOD(clusterObj, __get)
PHP_METHOD(clusterObj, __set)
{
char *property;
- long property_len;
+ long property_len = 0;
zval *value;
zval *zobj = getThis();
php_cluster_object *php_cluster;
@@ -119,7 +119,7 @@ PHP_METHOD(clusterObj, __set)
PHP_METHOD(clusterObj, updateFromString)
{
char *snippet;
- long snippet_len;
+ long snippet_len = 0;
zval *zobj = getThis();
php_cluster_object *php_cluster;
int status = MS_FAILURE;
@@ -151,7 +151,7 @@ PHP_METHOD(clusterObj, updateFromString)
PHP_METHOD(clusterObj, setGroup)
{
char *group = NULL;
- long group_len;
+ long group_len = 0;
zval *zobj = getThis();
php_cluster_object *php_cluster;
int status = MS_FAILURE;
@@ -207,7 +207,7 @@ PHP_METHOD(clusterObj, getGroupString)
PHP_METHOD(clusterObj, setFilter)
{
char *filter = NULL;
- long filter_len;
+ long filter_len = 0;
zval *zobj = getThis();
php_cluster_object *php_cluster;
int status = MS_FAILURE;
@@ -59,7 +59,7 @@ PHP_METHOD(colorObj, __construct)
PHP_METHOD(colorObj, __get)
{
char *property;
- long property_len;
+ long property_len = 0;
zval *zobj = getThis();
php_color_object *php_color;
@@ -85,7 +85,7 @@ PHP_METHOD(colorObj, __get)
PHP_METHOD(colorObj, __set)
{
char *property;
- long property_len;
+ long property_len = 0;
zval *value;
zval *zobj = getThis();
php_color_object *php_color;
@@ -53,7 +53,7 @@ PHP_METHOD(errorObj, __construct)
PHP_METHOD(errorObj, __get)
{
char *property;
- long property_len;
+ long property_len = 0;
zval *zobj = getThis();
php_error_object *php_error;
@@ -79,7 +79,7 @@ PHP_METHOD(errorObj, __get)
PHP_METHOD(errorObj, __set)
{
char *property;
- long property_len;
+ long property_len = 0;
zval *value;
zval *zobj = getThis();
php_error_object *php_error;
@@ -95,7 +95,7 @@ PHP_METHOD(gridObj, __construct)
PHP_METHOD(gridObj, __get)
{
char *property;
- long property_len;
+ long property_len = 0;
zval *zobj = getThis();
php_grid_object *php_grid;
@@ -124,7 +124,7 @@ PHP_METHOD(gridObj, __get)
PHP_METHOD(gridObj, __set)
{
char *property;
- long property_len;
+ long property_len = 0;
zval *value;
zval *zobj = getThis();
php_grid_object *php_grid;
@@ -70,7 +70,7 @@ PHP_METHOD(hashtableObj, __construct)
PHP_METHOD(hashtableObj, __get)
{
char *property;
- long property_len;
+ long property_len = 0;
zval *zobj = getThis();
php_hashtable_object *php_hashtable;
@@ -93,7 +93,7 @@ PHP_METHOD(hashtableObj, __get)
PHP_METHOD(hashtableObj, __set)
{
char *property;
- long property_len;
+ long property_len = 0;
zval *value;
PHP_MAPSCRIPT_ERROR_HANDLING(TRUE);
@@ -116,7 +116,7 @@ PHP_METHOD(hashtableObj, __set)
PHP_METHOD(hashtableObj, get)
{
char *key;
- long key_len;
+ long key_len = 0;
zval *zobj = getThis();
const char *value = NULL;
php_hashtable_object *php_hashtable;
@@ -145,7 +145,7 @@ PHP_METHOD(hashtableObj, get)
PHP_METHOD(hashtableObj, set)
{
char *key, *value;
- long key_len, value_len;
+ long key_len, value_len = 0;
zval *zobj = getThis();
int status = MS_FAILURE;
php_hashtable_object *php_hashtable;
@@ -174,7 +174,7 @@ PHP_METHOD(hashtableObj, set)
PHP_METHOD(hashtableObj, remove)
{
char *key;
- long key_len;
+ long key_len = 0;
zval *zobj = getThis();
int status = MS_FAILURE;
php_hashtable_object *php_hashtable;
@@ -224,7 +224,7 @@ PHP_METHOD(hashtableObj, clear)
PHP_METHOD(hashtableObj, nextKey)
{
char *key;
- long key_len;
+ long key_len = 0;
zval *zobj = getThis();
const char *value = NULL;
php_hashtable_object *php_hashtable;
@@ -69,7 +69,7 @@ PHP_METHOD(imageObj, __construct)
PHP_METHOD(imageObj, __get)
{
char *property;
- long property_len;
+ long property_len = 0;
zval *zobj = getThis();
php_image_object *php_image;
@@ -98,7 +98,7 @@ PHP_METHOD(imageObj, __get)
PHP_METHOD(imageObj, __set)
{
char *property;
- long property_len;
+ long property_len = 0;
zval *value;
zval *zobj = getThis();
php_image_object *php_image;
@@ -110,7 +110,7 @@ PHP_METHOD(labelObj, __construct)
PHP_METHOD(labelObj, __get)
{
char *property;
- long property_len;
+ long property_len = 0;
zval *zobj = getThis();
php_label_object *php_label;
@@ -167,7 +167,7 @@ PHP_METHOD(labelObj, __get)
PHP_METHOD(labelObj, __set)
{
char *property;
- long property_len;
+ long property_len = 0;
zval *value;
zval *zobj = getThis();
php_label_object *php_label;
@@ -231,7 +231,7 @@ PHP_METHOD(labelObj, updateFromString)
{
zval *zobj = getThis();
char *snippet;
- long snippet_len;
+ long snippet_len = 0;
int status = MS_FAILURE;
php_label_object *php_label;
@@ -260,7 +260,7 @@ PHP_METHOD(labelObj, setBinding)
{
zval *zobj = getThis();
char *value;
- long value_len;
+ long value_len = 0;
long bindingId;
php_label_object *php_label;
@@ -53,7 +53,7 @@ PHP_METHOD(labelCacheMemberObj, __construct)
PHP_METHOD(labelCacheMemberObj, __get)
{
char *property;
- long property_len;
+ long property_len = 0;
zval *zobj = getThis();
php_labelcachemember_object *php_labelcachemember;
@@ -88,7 +88,7 @@ PHP_METHOD(labelCacheMemberObj, __get)
PHP_METHOD(labelCacheMemberObj, __set)
{
char *property;
- long property_len;
+ long property_len = 0;
zval *value;
zval *zobj = getThis();
php_labelcachemember_object *php_labelcachemember;
@@ -51,7 +51,7 @@ PHP_METHOD(labelLeaderObj, __construct)
PHP_METHOD(labelLeaderObj, __get)
{
char *property;
- long property_len;
+ long property_len = 0;
zval *zobj = getThis();
php_labelleader_object *php_labelleader;
@@ -75,7 +75,7 @@ PHP_METHOD(labelLeaderObj, __get)
PHP_METHOD(labelLeaderObj, __set)
{
char *property;
- long property_len;
+ long property_len = 0;
zval *value;
PHP_MAPSCRIPT_ERROR_HANDLING(TRUE);
Oops, something went wrong.

0 comments on commit 2993658

Please sign in to comment.