Download & Extend

Rewrite the function get_group_wkt() using geoPHP

Project:OpenLayers
Version:7.x-2.x-dev
Component:OL Views
Category:task
Priority:normal
Assigned:Pol
Status:closed (fixed)

Issue Summary

Now that this geoPHP bug has been fixed, we can replace the function get_group_wkt() with:

<?php
 
/**
   * Combine all group wkt into a single geometry collection
   *
   * openlayers_views_style_data specific
   */
 
function get_group_wkt($wkt_array) {
   
geophp_load();
   
$geophp = geoPHP::load($wkt_array, 'wkt');
    return
$geophp->out('wkt');
  }
?>

I'm looking for people to test and give me feedback. The patch is following.

Comments

#1

Status:active» needs review

For OL 7.x-2.x.

AttachmentSizeStatusTest resultOperations
0001-Issue-1741220-Rewrite-get_group_wkt.patch3.5 KBIdlePASSED: [[SimpleTest]]: [MySQL] 238 pass(es).View details

#2

Wouldn't this break if a site hasn't enabled geoPHP? Unless something's changed recently, geoPHP isn't a requirement for OL 7.x-2.x

#3

True, it should be a requirement, I committed the patch.

http://drupalcode.org/project/openlayers.git/commit/edc9290

Thanks !

#4

Status:needs review» fixed

Patch committed.

#5

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.