02-26-2012
Hi,
Thank you for the kind reply,
Yes its an HTTPD (Apache2) server.
I see that using this package I could rewrite some stuff,
but how would I change a simple
HTML Code:
<img src="usaimage" alt="usa image" />
And apply geo coding to it
HTML Code:
if
geo code is USA display <img src="usaimage" alt="usa image" />
if
geo code is INDIA display <img src="indiaimage" alt="india image" />
Last edited by lawstudent; 02-26-2012 at 03:58 AM..
Reason:
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have a text list of about 3,000 file names (image files), which exist on a server and that I want to copy over to another location. I understand the Unix cp code, but what's the string to have it copy multiple files based on an external list?
Many thanks! (4 Replies)
Discussion started by: rebornhonest
4 Replies
2. Shell Programming and Scripting
I am interested in finding out if there is a reliable and economical way for extracting user's location based on his ip address, using php
I tried to get the job done using ip2location.com, but I am not happy how it deals with result inconsistently. (2 Replies)
Discussion started by: siftin-com
2 Replies
3. OS X (Apple)
Hello all,
I've been searching for an answer but coming up with nothing so I figured I'd give it a shot and ask. After installing a fresh version of Leopard (with the latest updates) on a computer and then copying the user data back onto said computer, the location based printing doesn't work... (0 Replies)
Discussion started by: erodrigue
0 Replies
4. Web Development
Hi,
I am new to PHP and at first got a task where I need some clues and help.
So I am here.. The server is build to provide customized access for modules
as per location. If client location is US then it shows modules and pages
specific to US and if location is UK then it shows UK specific... (1 Reply)
Discussion started by: zing_foru
1 Replies
5. Shell Programming and Scripting
I do have a big text file
>A1
ACFGTSDCHG_GDF
DGHA
>A2
A_FGGSD_HG_GSF
DGTA
>A3
AC_GSDD_TU_GDF
DGH_
..
...
there are equal number of characters within all the sub-headers. I want to parse out all the characters under each sub-header from user specified locations. For example, I want... (5 Replies)
Discussion started by: Lucky Ali
5 Replies
6. Shell Programming and Scripting
Hi Gurus,
I am a newbie to shell scripting and I am facing a problem right now.I have to automate the copy of files based on a priority.The scenario is as below:
1) There will be files from Mon-Fri with Mon file being named as abc_def_01_YYYYMMDD and Tue file being abc_def_02_YYYYMMDD and so... (4 Replies)
Discussion started by: vikramgk9
4 Replies
7. Shell Programming and Scripting
hey Guys,
Am a newbie to Linux and have a probable requirement that might come up pretty soon.
I need to understand, how log files and log location can be displayed on a web browser. So that the end user can read the log files and should be able to search for order numbers in the logs. If... (2 Replies)
Discussion started by: ashish_samarth
2 Replies
8. Shell Programming and Scripting
Hi
I need to find a way to automate the deployment of my apache configuration to a few servers. I make change frequently on apache/conf/... etc, and I usually do this manually by copying files to each servers(and country config path)and restart apache servers.Source file will be like... (1 Reply)
Discussion started by: naresh2389
1 Replies
LEARN ABOUT SUSE
map_slippy
map::slippy(n) Mapping utilities map::slippy(n)
__________________________________________________________________________________________________________________________________________________
NAME
map::slippy - Common code for slippy based map packages
SYNOPSIS
package require Tcl 8.4
package require Tk 8.4
package require map::slippy ?0.2?
::map::slippy length level
::map::slippy tiles level
::map::slippy tile size
::map::slippy tile valid tile levels ?msgvar?
::map::slippy geo 2tile geo
::map::slippy geo 2point geo
::map::slippy tile 2geo tile
::map::slippy tile 2point tile
::map::slippy point 2geo point
::map::slippy point 2tile point
_________________________________________________________________
DESCRIPTION
This package provides a number of methods doing things needed by all types of slippy-based map packages.
API
::map::slippy length level
This method returns the width/height of a slippy-based map at the specified zoom level, in pixels. This is, in essence, the result
of
expr { [tiles $level] * [tile size] }
::map::slippy tiles level
This method returns the width/height of a slippy-based map at the specified zoom level, in tiles.
::map::slippy tile size
This method returns the width/height of a tile in a slippy-based map, in pixels.
::map::slippy tile valid tile levels ?msgvar?
This method checks whether tile described a valid tile in a slippy-based map containing that many zoom levels. The result is a bool-
ean value, true if the tile is valid, and false otherwise. For the latter a message is left in the variable named by msgvar, should
it be specified.
A tile identifier as stored in tile is a list containing zoom level, tile row, and tile column, in this order. The command essen-
tially checks this, i.e. the syntax, that the zoom level is between 0 and "levels-1", and that the row/col information is within the
boundaries for the zoom level, i.e. 0 ... "[tiles $zoom]-1".
::map::slippy geo 2tile geo
Converts a geographical location at a zoom level (geo, a list containing zoom level, latitude, and longitude, in this order) to a
tile identifier (list containing zoom level, row, and column) at that level.
::map::slippy geo 2point geo
Converts a geographical location at a zoom level (geo, a list containing zoom level, latitude, and longitude, in this order) to a
pixel position (list containing zoom level, y, and x) at that level.
::map::slippy tile 2geo tile
Converts a tile identifier at a zoom level (tile, list containing zoom level, row, and column) to a geographical location (list con-
taining zoom level, latitude, and longitude, in this order) at that level.
::map::slippy tile 2point tile
Converts a tile identifier at a zoom level (tile, a list containing zoom level, row, and column, in this order) to a pixel position
(list containing zoom level, y, and x) at that level.
::map::slippy point 2geo point
Converts a pixel position at a zoom level (point, list containing zoom level, y, and x) to a geographical location (list containing
zoom level, latitude, and longitude, in this order) at that level.
::map::slippy point 2tile point
Converts a pixel position at a zoom level (point, a list containing zoom level, y, and x, in this order) to a tile identifier (list
containing zoom level, row, and column) at that level.
REFERENCES
[1] http://wiki.openstreetmap.org/wiki/Main_Page
KEYWORDS
geodesy, geography, latitute, location, longitude, map, slippy, zoom
map 0.2 map::slippy(n)