Proceed to GeoCommunity Home Page


SpatialNewsGIS Data DepotGeoImaging ChannelGIS and MappingSoftwareGIS JobsGeoBids-RFPsGeoCommunity MarketplaceGIS Event Listings
HomeLoginAccountsAboutContactAdvertiseSearchFAQsForumsCartFree Newsletter

Sponsored by:


TOPICS
Today's News

Submit News

Feature Articles

Product Reviews

Education

News Affiliates

Discussions

Newsletters

Email Lists

Polls

Editor's Corner


SpatialNews Daily Newswire!
Subscribe now!

Latest Industry Headlines
SiteVision GIS Partnership With City of Roanoke VA Goes Live
Garmin® Introduces Delta™ Upland Remote Trainer with Beeper
Caliper Offers Updated Chile Data for Use with Maptitude 2013
Southampton’s Go! Rhinos Trail Mapped by Ordnance Survey
New Approach to Measuring Coral Growth Offers Valuable Tool for Reef Managers
Topo ly - Tailor-Fit for Companies' Online Mapping Needs

Latest GeoBids-RFPs
Nautical Charts*Poland
Software & Telemetry GPS
Spatial Data Management-DC
Geospatial and Mapping-DC
Next-Gen 911-MO

Recent Job Opportunities
Planner/GIS Specialist
Team Leader- Grape Supply Systems
Geospatial Developer

Recent Discussions
Raster images
cartographic symbology
Telephone Exchange areas in Europe
Problem showcasing Vector map on Windows CE device
Base map

GeoCommunity Mailing List
 
Mailing List Archives

Subject: Re: [gislist] Coordinate systems in SVG maps
Date:  04/09/2006 09:05:01 PM
From:  nyem



Bill,

The questions are best posted to svg-developers@yahoogroups.com, or you
can check http://www.carto.net/ or http://www.svgx.org/learning.html for
comprehensive svg-mapping resources.

My method is to place map objects within a group that is flipped

<g transform="scale(1,-1)">

and reverse the scale for text objects

<text x="0" y="0"
transform="translate(102.924000,1.840570) scale(1,-1)">
My Label
</text>

The difficult part would be to track the coordinates between the map,
the svg viewbox and the screen, but once you understood the coordinate
system (see http://www.perfectxml.com/LearnSVG.asp) you can go very far.

There are many ways to do it, choose the one that works best for you.

Good luck,
- nyem



Bill Thoen wrote:
> I've recently gotten re-interested in Scalable Vector Graphics (SVG) maps
> after experimenting with Firefox 1.5's built-in SVG support, but I've
> always found fitting map coordinates to the SVG system (x-coordinates
> increases from left to right and y-coordinates increase from top to bottom)
> to be somewhat problematic. What do people think is the best way to
> transform coordinates from real-world to SVG?
>
> Do you convert geographic coordinates to local coordinates (like screen
> pixels), or do you reverse the y-axis by multiplying by -1, or do you
> perform a local transform on the y-axis so that you can use the coordinates
> in SVG directly, or what?
>
> The choice impacts things like coordinate tracking or text placement, and
> other features that you may want to support in an online map presentation.
> I also wonder about issues like whether it's more efficient with GML paths
> to compress floating point coordinates to integers. Looking around the
> 'net, I see examples of all sorts of coordinate-transforming techniques in
> SVG maps, so is there any consensus on the "best" method, and why?
>
> Does anyone here have any experience with this SVG mapping topic and have
> you an opinion?
>
> - Bill Thoen
>
> _______________________________________________
> gislist mailing list
> gislist@lists.geocomm.com
> http://lists.geocomm.com/mailman/listinfo/gislist
>
> _________________________________
> This list is brought to you by
> The GeoCommunity
> http://www.geocomm.com/
>
>
>

_______________________________________________
gislist mailing list
gislist@lists.geocomm.com
http://lists.geocomm.com/mailman/listinfo/gislist

_________________________________
This list is brought to you by
The GeoCommunity
http://www.geocomm.com/

Sponsored by:

For information
regarding
advertising rates
Click Here!

Copyright© 1995-2012 MindSites Group / Privacy Policy

GeoCommunity™, Wireless Developer Network™, GIS Data Depot®, and Spatial News™
including all logos and other service marks
are registered trademarks and trade communities of
MindSites Group