SUAS MapServer, the Open Source Web Map Service.

What does EasyWMS mean?

The purpose of EasyWMS is to let more users can use and publish Web Map Server EASILY without special knowledge. And most important is that all the projects of EasyWMS is Open Source based. We can exchange our ideas of WMS and WebGIS here, to develop better and more powerful WebGIS softwares.

All EasyWMS Projects are distributed under the Lesser General Public License. This can be read at GNU Lesser General Public License. You may download, use and distribute the application free of charge. If you use them for commercial purpose, please inform us.

You have not logged in, but you can add comments here. Please go to Forum to log in and have fun!!!

<?php
class tag
{
var $name = "";
var $count = 0;
var $tid = 0;

function getCount()
{
return $this->count;
}
function getName()
{
return $this->name;
}
function setCount($var)
{
$this->count = $var;
}
function setName($var)
{
$this->name = $var;
}
function setTID($var)
{
$this->tid = $var;
}
function getTID()
{
return $this->tid;
}

}
$count = 0; // Overall count of used tags
$threshold = 1; // How many tags are needed to get displayed
$font_size = 1;
$query = "SELECT d.name,d.tid FROM {term_data} d, {term_node} dn WHERE dn.tid=d.tid;";
$result = db_query($query);
$tags['Test'] = 0;
while($node = db_fetch_array($result))
{
if ($tags[$node['name']] == NULL)
{
$tags[$node['name']] = new tag();
$tags[$node['name']]->setName($node['name']);
$tags[$node['name']]->setCount(1);
$tags[$node['name']]->setTID($node['tid']);
$count = $count + 1;
}
else
{
$tags[$node['name']]->setCount(
$tags[$node['name']]->getCount() + 1
);
$count = $count + 1;
}
}
foreach($tags as $tag)
{
$mycount = $tag->count;
if($mycount > $threshold)
{
$fraction = ((int)(($mycount / $count) * 100)) / 10;
if($fraction < $font_size)
{
$fraction = $font_size;
}
echo '' . l($tag->name,'taxonomy/term/' . $tag->tid,array('title="' . $tag->count . ' Nodes"')) . ' ';
}
}
?>