Re: [svg-developers] esri shapefiles to SVG?
A way more flexible (and dificult) is using PostgreSQL with PostGIS. The version 8.1 is compatible with Windows, and have the shp2sql.exe program. When you run this, the result is a SQL script for PostgreSQL and then is possible introduce de shape into the database. Then is possible modify de map, make new ones with spatial analysis, export then again to SHP, or make a SVG map with the function asSVG() witch is explain in the PostGIS manual. Andreas Neumann in his Web site have more details: http://www.carto.net/papers/svg/postgis_geturl_xmlhttprequest/ Jeroen Vanattenhoven [EMAIL PROTECTED] escribió: Andreas Neumann has created a little tool which you can use for free. It is commandline with several options (including id options if I remember correctly). You can get it at http://www.carto.net/papers/svg/utils/shp2svg/. Jeroen csorba_edith schreef: Hi, I am new to the group, so if this question was already debated, sorry for that. I have a problem with transfering shapefiles from ArcMap to SVG format. If I use the export map to SVG format option in ArcMap it doesn't use the coordinates in meters and doesn't add ID's, which I need to connect to my database. I tried using GeoCon, but the output SVG file is more like a map of black stains, than an actual map. I have around 10 shapefiles on the map, and they are quite detailed. Any hint, any help? Thanks. Edith Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm __ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ¡gratis! Regístrate ya - http://correo.espanol.yahoo.com/ [Non-text portions of this message have been removed] Yahoo! Groups Sponsor ~-- Get to your groups with one click. Know instantly when new email arrives http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/1U_rlB/TM ~- - To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click edit my membership Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [!! SPAM] [svg-developers] Re: What this error mean in FF?
Try this: this.nameElement.style.setProperty(fill,rgb(0,0,0),); this.nameElement.style.setProperty(font-size,14px,); That work in IE, but I'm not sure in FF. I think that must work. Edgar Nicole Ueberschär [EMAIL PROTECTED] escribió: FF doesn't like the style-attribute. The better way is to use so called presentation-attributes like font-size=xx fill=#000 etc. Nicole chmavrog schrieb: Björn thanks for the reply, Indeed when i create the rectangles i put inside text and setting fontsize like this this.nameElement=document.createElementNS(svgNS,text); this.nameElement.setAttributeNS(null,x,x+1); this.nameElement.setAttributeNS(null,y,y); this.nameElement.setAttributeNS (null,style,fill:#000;font-size:14px;); what's the right way to put in FF?Is there an example or a reference? Also can be the units a problem? . [Non-text portions of this message have been removed] __ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ¡gratis! Regístrate ya - http://correo.espanol.yahoo.com/ [Non-text portions of this message have been removed] Yahoo! Groups Sponsor ~-- You can search right from your browser? It's easy and it's free. See how. http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/1U_rlB/TM ~- - To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click edit my membership Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [svg-developers] Hi all. How can I get version SVG viewer using JavaScript?
Hi. I use this code for IE/ASV and Firefox: !-- script to check SVG availability and version -- !-- MOST OF THIS IS FROM SUN and another guy I don't remember. Sorry. -- !-- Check if browsers have SVG support and record if we need to use VBScript detection method if the number of MIME types is 0. -- script language=JavaScript1.1 // Variable to keep track of user's SVG support var hasSVGSupport = false; var svgVersion; var svgCtl; // Variable to indicate whether we need to use VBScript method to // detect SVG support var useVBMethod = false; // Internet Explorer returns 0 as the number of MIME types, // so this code will not be executed by it. This is our indication // to use VBScript to detect SVG support. if (navigator.mimeTypes != null navigator.mimeTypes.length 0) { var plugin = 0; if (navigator.mimeTypes navigator.mimeTypes[image/svg+xml]){ plugin = navigator.mimeTypes[image/svg+xml].enabledPlugin; } if (plugin) { hasSVGSupport = true; svgVersion = plugin.description; } else{ // Firefox 1.5+ has SVG native support. Checking with a user agent match. // If there is a more refined way to do this, please tell me. var xua = window.navigator.userAgent; var xpos_firefox = xua.toLowerCase().indexOf('firefox'); if(xpos_firefox != -1){ xversion = xua.substr(xpos_firefox).split('/')[1].split('.'); var xnum_ver = parseInt(xversion[0]) * 100 + parseInt(xversion[1]); if(xnum_ver = 105){ hasSVGSupport = true; svgVersion = xversion.join('.'); } } } } else { useVBMethod = true; } /script !-- Visual Basic Script to detect support of Adobe SVG plugin. This code is not run on browsers which report they have MIME types, and it is also not run by browsers which do not have VBScript support. -- script language=VBScript On Error Resume Next If useVBMethod = true Then Set svgCtl = CreateObject(Adobe.SVGCtl) svgVersion = svgCtl.getSVGViewerVersion() hasSVGSupport = IsObject(svgCtl) End If /script SCRIPT language=JavaScript1.2 if (!hasSVGSupport) { location.href = location.href.replace(location.href.split('/').pop(), 'error_plugin_svg.htm'); } else{ //that is only for testing: alert('SVG SUPPORT!\nsvgVersion: ' + svgVersion); } /script I hope this help you. --- Nikolya Patskov [EMAIL PROTECTED] escribió: Hi all. How can I get version SVG viewer using JavaScript? Nikolya __ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ¡gratis! Regístrate ya - http://correo.espanol.yahoo.com/ Yahoo! Groups Sponsor ~-- Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/I258zB/QnQLAA/TtwFAA/1U_rlB/TM ~- - To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click edit my membership Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [svg-developers] Hi all. How can I get version SVG viewer using JavaScript?
I hope this can be a bit more clear: !-- Script to check SVG availability and version -- !-- Detect IE/ASV and Firefox SVG support -- !-- MOST OF THIS IS FROM SUN and another guy I don't remember. Sorry. -- !-- Check if browsers have SVG support and record if we need to use VBScript detection method if the number of MIME types is 0. -- «script language=JavaScript1.1» // Variable to keep track of user's SVG support var hasSVGSupport = false; var svgVersion; var svgCtl; // Variable to indicate whether we need to use // VBScript method to detect SVG support var useVBMethod = false; // Internet Explorer returns 0 as the number of // MIME types, so this code will not be executed // by it. This is our indication to use VBScript // to detect SVG support. if (navigator.mimeTypes != null navigator.mimeTypes.length 0) { var plugin = 0; if (navigator.mimeTypes navigator.mimeTypes[image/svg+xml]){ plugin = navigator.mimeTypes[image/svg+xml].enabledPlugin; } if (plugin) { hasSVGSupport = true; svgVersion = plugin.description; } else{ // Firefox 1.5+ has SVG native support. // Checking with a user agent match. // If there is a more refined way // to do this, please tell me. var xua = window.navigator.userAgent; var xpos_firefox = xua.toLowerCase().indexOf('firefox'); if(xpos_firefox != -1){ xversion = xua.substr(xpos_firefox).split('/')[1].split('.'); var xnum_ver = parseInt(xversion[0]) * 100 + parseInt(xversion[1]); if(xnum_ver = 105){ hasSVGSupport = true; svgVersion = xversion.join('.'); } } } } else { useVBMethod = true; } /script !-- Visual Basic Script to detect support of Adobe SVG plugin. This code is not run on browsers which report they have MIME types, and it is also not run by browsers which do not have VBScript support. -- «script language=VBScript» On Error Resume Next If useVBMethod = true Then Set svgCtl = CreateObject(Adobe.SVGCtl) svgVersion = svgCtl.getSVGViewerVersion() hasSVGSupport = IsObject(svgCtl) End If /script «script language=JavaScript1.2» if (!hasSVGSupport) { location.href = location.href.replace(location.href.split('/').pop(), 'svgerror.htm'); } else{ //that is only for testing: alert('SVG SUPPORT!\nsvgVersion: '+svgVersion); } /script __ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ¡gratis! Regístrate ya - http://correo.espanol.yahoo.com/ Yahoo! Groups Sponsor ~-- AIDS in India: A lurking bomb. Click and help stop AIDS now. http://us.click.yahoo.com/9QUssC/lzNLAA/TtwFAA/1U_rlB/TM ~- - To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click edit my membership Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [svg-developers] Re: manipulate HTML from within SVG...help please!!!
There was two errors. First, in the HTML lack the tag 'SCRIPT', and then in the SVG change the event onfiltered by onclick. That work whit Inernet Explorer and Adobe SVG Viewer. index.htm code: HTML HEAD SCRIPT function alertMe(){ alert(hello world!); } /SCRIPT /HEAD BODY embed src=example.svg width=800 height=400/ /BODY /HTML example.svg code: svg width=800 height=400 image onclick=alertMe() x=10 y=10 width=715 height=384 xlink:href=image.png/ /svg Also you need a image named image.png, but the message is shown without it. alertMe() or top.alertMe() is irrelevant in this example. joobs_27 [EMAIL PROTECTED] escribió: --- In svg-developers@yahoogroups.com, Clara [EMAIL PROTECTED] wrote: Can someone please give me an example of calling HTML page script functions from within SVG?? say when I click an image on an SVG that is embedded in an HTML file,..I want an alert to come up.. How can I do that?? I suppose that I should call javascript function when I click the image..but how do I get the alert shown? Here's some help. I'm not sure what player you're using, but this works in Adobes. HTML Example HTML HEAD SCRIPT function alertMe() { alert(hello world!); } /SCRIPT /HEAD BODY embed src=example.svg width=800 height=400/ /BODY /HTML SVG (example.svg) svg width=800 height=400 image onclick=alertMe() x=10 y=10 width=715 height=384 xlink:href=image.png/ /svg - To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click edit my membership - Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. - Do You Yahoo!? Todo lo que quieres saber de Estados Unidos, América Latina y el resto del Mundo. Visíta Yahoo! Noticias. [Non-text portions of this message have been removed] - To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click edit my membership Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [svg-developers] Re: manipulate HTML from within SVG...help please!!!
In the svg try 'top.alertMe()' . Clara [EMAIL PROTECTED] escribió: Hmm,..I tried the code,..but it doesn't work..I got an error message that says out of stack spaceI wonder why.. --- In svg-developers@yahoogroups.com, joobs_27 [EMAIL PROTECTED] wrote: --- In svg-developers@yahoogroups.com, Clara [EMAIL PROTECTED] wrote: Can someone please give me an example of calling HTML page script functions from within SVG?? say when I click an image on an SVG that is embedded in an HTML file,..I want an alert to come up.. How can I do that?? I suppose that I should call javascript function when I click the image..but how do I get the alert shown? Here's some help. I'm not sure what player you're using, but this works in Adobes. HTML Example HTML HEAD SCRIPT function alertMe() { alert(hello world!); } /SCRIPT /HEAD BODY embed src=example.svg width=800 height=400/ /BODY /HTML SVG (example.svg) svg width=800 height=400 image onclick=alertMe() x=10 y=10 width=715 height=384 xlink:href=image.png/ /svg - To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click edit my membership - Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. - Do You Yahoo!? Todo lo que quieres saber de Estados Unidos, América Latina y el resto del Mundo. Visíta Yahoo! Noticias. [Non-text portions of this message have been removed] - To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click edit my membership Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[svg-developers] Frameset reference HELP!
Hi everybody I have a frameset with a svg document reference like this: html head titleMy Map/title script language=javascript function access(id){ var svgdoc = frames.mapFrame.document.getSVGDocument(); //error var svgdoc = frames.mapFrame.getSVGDocument(); //error var svgdoc = frames.mapFrame.document; //without error, but... svgobj = svgdoc.getElementById(id); //null reference svgstyle = svgobj.getStyle(); //error again ... } /script /head frameset ... frame src=frame_map.svg name=mapFrame frame src=frame_scale.htm name=scaleFrame /frameset /html Somebody have the why? Thanks by any response. - Do You Yahoo!? Todo lo que quieres saber de Estados Unidos, América Latina y el resto del Mundo. Visíta Yahoo! Noticias. [Non-text portions of this message have been removed] - To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click edit my membership Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[svg-developers] SVG speculum
Hi. Sorry for my bad english. I have a problem with the shp2pgsql.exe tool (download since Carto.net) and my PHP-MySQL application. I dont know why my SVG is resulting how if it was reflected by a horizontal mirror. The PHP code (after de SQL spatial query) is like this: //geometry in Well-Know-Text format $wkt=MULTIPOLYGON(((0 0,0 3,3 3,3 0,0 0),(1 1,1 2,2 2,2 1,1,1)),((6 7,8 9,4 5,6 7))); $d= str_replace(MULTIPOLYGON(((, M , $wkt); $d = str_replace()),((, z \n M , $d); $d = str_replace(),(, z \n M , $d); $d = str_replace(,, L , $d); $d = str_replace())), z \n, $d); /* result: M 0 0 L 0 3 L 3 3 L 3 0 L 0 0 z \n M 1 1 L 1 2 L 2 2 L 2 1 L 1 1 z \n M 6 7 L 8 9 L 4 5 L 6 7 z \n */ There is a simple manner for turn the image since SVG, how change the coordinate system or something like? I know there is simple making a PHP function that do that, but my SVGs are little big and could consume too many resources and processing time. First of all, I need to preserve the performance and the easy-to-use issue. Someone have any idea? Thanks, Ed - Do You Yahoo!? Todo lo que quieres saber de Estados Unidos, América Latina y el resto del Mundo. Visíta Yahoo! Noticias. [Non-text portions of this message have been removed] - To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click edit my membership Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [svg-developers] SVG speculum
Thanks by the response. Yes, you're right, but I need a process more or less complicated. I need a simply and if is possible, automatic way to do that for a good performance. Barend Köbben [EMAIL PROTECTED] wrote:Hi, the key is in the inverted y-axis that SVG has as opposed to most GIS (and therefore shp file) data. In SVG 0 is topleft, y+ is going down, in GIS y+ is going up. Easiest solution is negating all y values (by multiplying * -1). Barend Köbben International Institute for Geo-information Sciences and Earth Observation (ITC) PO Box 6, 7500AA Enschede (The Netherlands) ph: +31-(0)534874253; fax: +31-(0)534874335 _ From: svg-developers@yahoogroups.com on behalf of Edgar Valarezo Sent: Sat 16-Apr-05 21:35 To: svg-developers@yahoogroups.com Subject: [svg-developers] SVG speculum Hi. Sorry for my bad english. I have a problem with the shp2pgsql.exe tool (download since Carto.net) and my PHP-MySQL application. I don't know why my SVG is resulting how if it was reflected by a horizontal mirror. The PHP code (after de SQL spatial query) is like this: //geometry in Well-Know-Text format $wkt=MULTIPOLYGON(((0 0,0 3,3 3,3 0,0 0),(1 1,1 2,2 2,2 1,1,1)),((6 7,8 9,4 5,6 7))); $d= str_replace(MULTIPOLYGON(((, M , $wkt); $d = str_replace()),((, z \n M , $d); $d = str_replace(),(, z \n M , $d); $d = str_replace(,, L , $d); $d = str_replace())), z \n, $d); /* result: M 0 0 L 0 3 L 3 3 L 3 0 L 0 0 z \n M 1 1 L 1 2 L 2 2 L 2 1 L 1 1 z \n M 6 7 L 8 9 L 4 5 L 6 7 z \n */ There is a simple manner for turn the image since SVG, how change the coordinate system or something like? I know there is simple making a PHP function that do that, but my SVG's are little big and could consume too many resources and processing time. First of all, I need to preserve the performance and the easy-to-use issue. Someone have any idea? Thanks, Ed - Do You Yahoo!? Todo lo que quieres saber de Estados Unidos, América Latina y el resto del Mundo. Visíta Yahoo! Noticias. [Non-text portions of this message have been removed] - To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click edit my membership Yahoo! Groups Links [Non-text portions of this message have been removed] - To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click edit my membership - Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. - Do You Yahoo!? Todo lo que quieres saber de Estados Unidos, América Latina y el resto del Mundo. Visíta Yahoo! Noticias. [Non-text portions of this message have been removed] - To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click edit my membership Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/