Skip to content
You are here: Home » Resources » Single point data converter (lat/long to c-square code)

Single point data converter (lat/long to c-square code)

Document Actions
Please overwrite the example shown with your own co-ordinates
latitude (decimal degrees)
longitude (decimal degrees)

Required resolution for Single lat/long to C-Square conversions
Please select a cell size (in degrees) or use the default 'auto'. 'Auto' will return a c-square to suit your highest co-ordinate resolution.
NB: Smallest is most precise; largest is most space-efficient for data reduction (suggested value=1).



C-square validator and decoder

... checks whether a supplied c-square code is valid, and if it is, returns the N, S, W, E limits for that square

Please overwrite the example shown with your desired c-square code
C-square



Line data converter

Input the latitude then longitude with a space in between
Please overwrite the example shown with your own co-ordinates
Start point (decimal degrees)-
End point (decimal degrees)-  

Resolution
Please select a cell size (decimal degrees)


... line may extend across 180 degrees E (treat negative values of longitude as eastward extensions of the line past 180 deg. E)



Bounding box data converter

Input the north, south, east, west coordinates in decimal degrees, comma separated (no spaces)
Please overwrite the example shown with your own co-ordinates
N,S,E,W coordinates -

Resolution
Please select a cell size (decimal degrees)


Return format
Please select desired format ("plain" will return the text string alone, with no associated markup)


Compression
Please select as needed ("no compression" will return an uncompressed string which can be very long for large areas)




Polyline/polygon data converter

Please overwrite point string example (shown in "reverse Anzlic" format) with your own co-ordinates
NB, if a polygon to be filled, must be minimum of 4 pairs of coordinates, last pair must duplicate the first (i.e., a closed polygon)

... in decimal degrees based on WGS84 (=EPSG:4326) datum

Anzlic
(Australian standard)

style input
Enter data as long1 lat1, long2 lat2 etc.
LONGITUDE precedes LATITUDE, pairs separated by COMMAS (with a space between long and lat)
"Reverse Anzlic"
style input
Enter data as lat1 long1, lat2 long2 etc.
LATITUDE precedes LONGITUDE, pairs separated by COMMAS (with a space between lat and long)
GML
style input
Enter data as long1,lat1 long2,lat2 etc.
LONGITUDE precedes LATITUDE, pairs separated by SPACES (with a comma between long and lat)
"Reverse GML"
style input
Enter data as lat1,long1 lat2,long2 etc.
LATITUDE precedes LONGITUDE, pairs separated by SPACES (with a comma between lat and long)
Resolution
cell size
Please select a cell size (decimal degrees)
NB: beware, small cell sizes can result in noticeably slower running times for this procedure!
Show me
a poly line
This will return a poly line of c-squares - i.e., a set of lines where the end point of any one is the start point of the next, until the last point specified is reached (need not be a closed shape)
Show me
a filled polygon
This will return a filled polygon of c-squares



... polyline/polygon may extend across 180 degrees E (treat negative values of longitude as eastward extensions of the polyline/polygon past 180 deg. E)

... polar satellite mode (NB, use this mode if your polygons are better represented in polar projection - as with polar orbiting satellites)
.. .. .. Example: 60 65, 45 -105, 45 -115, 60 75, 60 65

Created by admin
Last modified 2006-03-23 08:26
 

Personal tools
The c-squares mapper perl script is now on sourceforge at http://sourceforge.net/projects/csquares/
A "c-squares-discuss" listserver has been established for interested developers and/or implementers to exchange information or post enquiries relevant to c-squares. To join the list, send an email to c-squares-discuss-request@marine.csiro.au with the word 'subscribe' in the BODY of the email.