Michael Stenta Jamie Gaehring Paul Weidner
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$debug = TRUE; | |
// Function for recursively fixing the longitude points within a Geometry. | |
function recursive_fix_lon(&$feature) { | |
$fixed = FALSE; | |
if ($feature->geometryType() == 'Point' && !empty($feature->coords[0])) { | |
$lon = &$feature->coords[0]; | |
$lon = fmod($lon, 360); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $Id$ | |
# | |
# LANGUAGE translation of Drupal (general) | |
# Copyright YEAR NAME <EMAIL@ADDRESS> | |
# Generated from files: | |
# /opt/drupal/web/profiles/farm/farm.install: n/a | |
# /opt/drupal/web/profiles/farm/modules/core/settings/src/Form/FarmSettingsModulesForm.php: n/a | |
# /opt/drupal/web/profiles/farm/farm.profile: n/a | |
# /opt/drupal/web/profiles/farm/modules/core/api/farm_api.info.yml: n/a | |
# /opt/drupal/web/profiles/farm/modules/core/ui/farm_ui.info.yml: n/a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import replaceToEPSG4326 from './replaceToEPSG4326'; | |
replaceToEPSG4326(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Enter the name of the KML file here. | |
$kml_filename = ''; | |
$xml = simplexml_load_file($kml_filename); | |
$folders = $xml->Document->Folder; | |
foreach ($folders as $folder) { | |
print "Name: " . $folder->name . "\n"; | |
print "Description: " . $folder->description . "\n"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Load GeoPHP. | |
geophp_load(); | |
// Function for recursively fixing the longitude points within a Geometry. | |
function recursive_fix_lon(&$feature) { | |
$fixed = FALSE; | |
if ($feature->geometryType() == 'Point' && !empty($feature->coords[0])) { | |
$lon = &$feature->coords[0]; |