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
-- PostGIS functions which will create an pollygon representing an ellipse using the "Pins and String" method | |
-- | |
-- https://en.wikipedia.org/wiki/Ellipse#Pins-and-string_method | |
-- | |
-- Usage: ST_Ellipse(LINESTRING, DISTANCE, NUMBER OF NODES); | |
-- Usage: ST_Ellipse(LINESTRING, DISTANCE); -- defaults to 8 nodes | |
-- | |
-- Args: | |
-- LINESTRING -- A two point linestring. Use ST_MakeLine(p1,p2) if you have two points |
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
GIS, or Geographic Information Science, is the study and use of data involving | |
locations. It's a broad field that includes spatial statistics, cartography, | |
routing, maps and much more. | |
PHP + MySQL is not a popular combination for GIS projects. However, given | |
how much of the internet the LAMP stack runs, it is inevitable | |
that we as PHP professionals will be asked to implement maps and other | |
spatial solutions in the software we develop. | |
What would you say if a client asked if PHP and MySQL are the right choices |
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 | |
/** | |
* We'll need access to these two objects. | |
*/ | |
global $wp_scripts, $wp_styles; | |
/** | |
* Loop over all queued styles. If a style is still in the queue it hasn't been printed yet. | |
* | |
* Get its info so we can later check if it needs to be loaded. |