[svg-developers] how to detect end of manual panning in ASV?
Is there any reasonable way to detect the end of panning (left mouse button goes up while the cursor is a 'hand')? I ve got some text I have to put into the SVG every time the position of svg changes. But for performance reasons I don't want to call this function while panning, but only once every time the user stops panning (i.e. mouse button goes up and ASV was in panning mode, i.e. you can see a 'hand' cursor) - then I would call my text-placing function. I tested with mouse-up and it doesn't work at all. So finally I use mouseHookEx API function but it makes some troubles in my app, so I would like to avoid it. From the other hand I wouldn't like to use my own panning ('mousedown', 'mousemove', 'mouseup' handling and changing translate of the svg), since we have a strong requirement on how the cursor should look like. Using standard ASV panning I've got a warranty I have a 'hand'-cursor. Is there any way to handle cursors in ASV3.02 (even on the system level), then it could be an alternative to me to use this cursor handling with my own panning. cheers maciek - 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] Re: Executing Java/C# server method from svg
It would be best to make your server application a HTTP server, preferably on port 80, if you want your app to be usable anywhere as that way it will go through proxies, firewalls etc. I think it is much easier in SVG to communicate via HTTP anyway, and a simple HTTP server is very easy to write. - 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] Re: Executing Java/C# server method from svg
This may be a stupid question as I am not that familiar with HTTP servers, but how do I do this? I was planning on writing a C# application which connects to another already-written C# application which houses a databus and connects to a database. There are specific methods to connect to this C# databus app and specific calls you have to make to retrieve data. Will I still write a C# app and somehow put that within the HTTP server or would I do something different in a different language or tool? Sounds like the getURL/postURL method only works with HTTP servers, correct? Thanks for your help. Jan --- In svg-developers@yahoogroups.com, Richard Smith [EMAIL PROTECTED] wrote: It would be best to make your server application a HTTP server, preferably on port 80, if you want your app to be usable anywhere as that way it will go through proxies, firewalls etc. I think it is much easier in SVG to communicate via HTTP anyway, and a simple HTTP server is very easy to write. - 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: Executing Java/C# server method from svg
You'll want to write an ASP.NET class that implements IHttpHandler. This is essentially the .NET equivalent of a servlet. Rick Bullotta Lighthammer Software (http://www.lighthammer.com) -Original Message- From: Jan [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 02, 2005 10:01 AM To: svg-developers@yahoogroups.com Subject: [svg-developers] Re: Executing Java/C# server method from svg This may be a stupid question as I am not that familiar with HTTP servers, but how do I do this? I was planning on writing a C# application which connects to another already-written C# application which houses a databus and connects to a database. There are specific methods to connect to this C# databus app and specific calls you have to make to retrieve data. Will I still write a C# app and somehow put that within the HTTP server or would I do something different in a different language or tool? Sounds like the getURL/postURL method only works with HTTP servers, correct? Thanks for your help. Jan --- In svg-developers@yahoogroups.com, Richard Smith [EMAIL PROTECTED] wrote: It would be best to make your server application a HTTP server, preferably on port 80, if you want your app to be usable anywhere as that way it will go through proxies, firewalls etc. I think it is much easier in SVG to communicate via HTTP anyway, and a simple HTTP server is very easy to write. - 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 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] Re: Executing Java/C# server method from svg
More basic questions. I am a Java/C# developer with not much web experience. I don't know anything about ASP or JSP. 1) I'm assuming that ASP.NET use C# (similar to JSP using Java)? 2) I am using IIS web server and the client's requirement is to stick with this. Do I need an app server to go along with this (such as JBoss) or extension or something in order for servlets to run? Or will my asp just run within IIS alone? 3) Would I then use getURL/postURL from my svg/Javascript to execute the asp class to retrieve my data? Thanks a ton!! I'm a newbie to web development. Jan --- In svg-developers@yahoogroups.com, Rick Bullotta [EMAIL PROTECTED] wrote: You'll want to write an ASP.NET class that implements IHttpHandler. This is essentially the .NET equivalent of a servlet. Rick Bullotta Lighthammer Software (http://www.lighthammer.com) -Original Message- From: Jan [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 02, 2005 10:01 AM To: svg-developers@yahoogroups.com Subject: [svg-developers] Re: Executing Java/C# server method from svg This may be a stupid question as I am not that familiar with HTTP servers, but how do I do this? I was planning on writing a C# application which connects to another already-written C# application which houses a databus and connects to a database. There are specific methods to connect to this C# databus app and specific calls you have to make to retrieve data. Will I still write a C# app and somehow put that within the HTTP server or would I do something different in a different language or tool? Sounds like the getURL/postURL method only works with HTTP servers, correct? Thanks for your help. Jan --- In svg-developers@yahoogroups.com, Richard Smith [EMAIL PROTECTED] wrote: It would be best to make your server application a HTTP server, preferably on port 80, if you want your app to be usable anywhere as that way it will go through proxies, firewalls etc. I think it is much easier in SVG to communicate via HTTP anyway, and a simple HTTP server is very easy to write. - To unsubscribe send a message to: svg-developers- [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click edit my membership Yahoo! Groups Links - 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] MID/MIF to SVG conversion
Hi, MID/MIF is a very simple ASCII interchange format used by MapInfo. I believe MapInfo exports svg. Alternatively it would not be much of a project to simply write a translator that would take the mif to svg. Adding mid attributes requires a decision. You can: A. ignore attributes B. add a single attribute in the svg id C. add multiple attributes as custom namespace attributes D. put the attributes in a SQL database like MySQL, PostgreSQL and link the records to your svg through the id attribute. E. Or you can turn them into a GIS system and import both vectors and attributes to PostGIS using something like the ogr translation utilities: http://www.remotesensing.org:16080/ogr/ogr_formats.html This gives you the most flexibility of exporting to svg using geospatial queries, but you have to be able to write your own query result exporter. Example MIF: version 300 Charset WindowsLatin1 CoordSys Earth Projection 1, 0 columns 3 Layer CHAR(30) NameCHAR(45) Elevation DECIMAL(10,4) data LINE -67.38353230 44.72273359 -67.38208967 44.72243561 Pen (1,02,255) PLINE6 -67.46127510 44.60689620 -67.46411123 44.60698373 -67.46554349 44.60724517 -67.46670605 44.60835186 -67.46708750 44.60849848 -67.46904664 44.60894944 Pen (1,02,0) PLINE6 -67.46117178 44.60707425 -67.46407399 44.60716382 -67.46539431 44.60740483 -67.46653682 44.60849242 -67.46698775 44.60866576 -67.46887331 44.60909978 Pen (1,02,0) Associated MID WATER river 20.00 WATER stream5.00 WATER North Platte 18.00 Possible svg export using method B: path style=stroke:blue;fill:none; id=North Platte d=M-67.46117178 -44.60707425 L-67.46407399 -44.60716382 L-67.46539431 -44.60740483 L-67.46653682 -44.60849242 L-67.46698775 -44.60866576 L-67.46887331 -44.60909978/ randy -Original Message- From: janos_peter_nagy [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 02, 2005 7:43 AM To: svg-developers@yahoogroups.com Subject: [svg-developers] MID/MIF to SVG conversion Hi, I have a bunch of MID/MIF files and I would like to convert them to SVG format. Can anyone give me a hint of how to do this ? Thanks - 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 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] Animated fill?
Hi all, I have a bunch of grouped elements in a SVG doc, based on just two symbols I have defined. I'd like to be able to define the symbols with a simple animated fill. The fill I'm thinking of is the kind of thing seen on old-style barber-poles, where a series of dark-light diagonal strips keep moving slowly forever past a point. Is this possible and, if so, could somebody give me a short example to get me going? TIA, Rob - 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] Sending event to animation via javascript
How does one send an event to the various animation tags via javascript? Ie, I'd like to add additional logic to events in the document, and end / begin animations based on some state. thanks, robert - 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] Quiz in SVG
Hi all, Just created a Quiz in SVG on the Simpsons which is on my SVG Games site. Im quite happy with it, it works well in SVG I think, any comments/suggestions are very welcome. Links are listed below. Made a little interface so I can add Questions easily so the number of questions increase all the time. SVG QUIZ http://a.1asphost.com/svggames/games/SVGQuiz/index.asp SVG GAMES http://a.1asphost.com/svggames/index.asp Thanks Dale Ellis - 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] shp2svg version 0.2
Hi all, For all those who need to convert ESRI Shapefiles to SVG, i just created an update of the shp2pgsql/ogis2svg.pl script available at: http://www.carto.net/papers/svg/utils/shp2svg/ The changes: * Unicode support in the resulting svg * better rounding options (note that --nrdigits is now --roundval and has a different meaning) * better ordering: alphabetical and numerical (ascending and descending) order of groups by attributes * for the windows users that do not want to install ActivePerl I created a windows binary Still missing: support for MULTIPOINTS. Currently we only support MULTIPOLYGONS and MULTILINESTRINGS. Let me know your feedback/suggestions. All the best, Andreas - 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: Executing Java/C# server method from svg
I'd posted some information on this a while back. What I'm doing is this: Write COM component which you can embed in a parent HTML doc. Embed the SVG doc. in this HTML doc. In you event handler you can refer to the COM component interface methods as: parent.COMCompID.SendEvent(evt) where COMCompID is the id of the embedded COM object;SendEvent(evt) is the COM interface method You can embed a C# component too - I believe IE supports that. But, I found it easier to use a COM component and then use a C# app. to process the SVGDocument directly to do whatever you need to do - you can get you data updates into your C# app. and process the data and accordingly update the SVG document with C# routines i.e. on the SVG DOM - based on the previously received SVGDocument object. Shreesh Jan [EMAIL PROTECTED]To: svg-developers@yahoogroups.com st.net cc: Subject: [svg-developers] Re: Executing Java/C# server method from svg 03/02/2005 10:40 AM Please respond to svg-developers Thanks for the info. My understanding is that I will write a C# class that implements IHttpHandler and accesses my data store. This will somehow be registered within ASP.NET and my IIS web server. Then, I will use getURL/postURL from my svg/Javascript client to execute the servlet and retrieve data updates. Someone that I work with suggested that instead of using ASP.NET, it would probably be easier to use COM+. The C# dll would be registered with COM+. Then, I would just have to figure out how to execute the servlet from my svg/Javascript client. Is anyone doing it this way? If so, can you also use getURL/postURL? Does anyone have any opinions as to which method is preferable/easier? I don't know anything about ASP.NET or COM+ at this point. Thanks for your help. Jan --- In svg-developers@yahoogroups.com, Rick Bullotta [EMAIL PROTECTED] wrote: 1) Yes, but you would more likely be building a C# class than an ASP page 2) Not unless you wanted to write in Java. If you use C#, ASP.NET includes everything you need. 3) Yes. I would visit the Microsoft MSDN site to learn how to write IHttpHandlers. -Original Message- From: Jan [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 02, 2005 10:33 AM To: svg-developers@yahoogroups.com Subject: [svg-developers] Re: Executing Java/C# server method from svg More basic questions. I am a Java/C# developer with not much web experience. I don't know anything about ASP or JSP. 1) I'm assuming that ASP.NET use C# (similar to JSP using Java)? 2) I am using IIS web server and the client's requirement is to stick with this. Do I need an app server to go along with this (such as JBoss) or extension or something in order for servlets to run? Or will my asp just run within IIS alone? 3) Would I then use getURL/postURL from my svg/Javascript to execute the asp class to retrieve my data? Thanks a ton!! I'm a newbie to web development. Jan --- In svg-developers@yahoogroups.com, Rick Bullotta [EMAIL PROTECTED] wrote: You'll want to write an ASP.NET class that implements IHttpHandler. This is essentially the .NET equivalent of a servlet. Rick Bullotta Lighthammer Software (http://www.lighthammer.com) - To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click edit my membership Yahoo! Groups Sponsor
Re: [svg-developers] MID/MIF to SVG conversion
I have a bunch of MID/MIF files and I would like to convert them to SVG format. Can anyone give me a hint of how to do this ? These three MID/MIF to SVG converters require that you have MapInfo to perform the conversion: http://www.svg-builder.com/specifications.html http://www.gisnet.com/notebook/SVG_mapping.htm http://www.dbxgeomatics.com/SVGMapMaker.asp?Language=EN This one is a stand-alone GIS conversion tool (but also costly, I think?) converter http://www.safe.com/news/2002/32/ Definitely an opportunity for someone to write a shareware utility to convert MIF/MID without needing a whole GIS package. It would be appreciated and used by the GIS community. Here's a copy of the MIF/MID specification http://www.ci.detroit.mi.us/plandevl/advplanning/cinfo/adv/tools/PDF/MIDMIFfileformat.pdf Margie Roswell http://SVGMapper.blogspot.com - 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] Re: Executing Java/C# server method from svg
Jan [EMAIL PROTECTED]To: [EMAIL PROTECTED] st.net cc: Subject: Re: Executing Java/C# server method from svg 03/02/2005 12:54 PM --- In svg-developers@yahoogroups.com, [EMAIL PROTECTED] wrote: I'd posted some information on this a while back. What I'm doing is this: Write COM component which you can embed in a parent HTML doc. I think in my case, the COM component would be a C# compiled class that has methods to retrieve data updates from the data source. What do I need to put in my html doc? By the way, I have no COM experience AT ALL. If you have an example you could send me, that would be great. ---I tried this through the Interop samples - but the approach is not good for me - since IE expects the # Dll on the web server and all that. I'll see what I can send to you. But, basically this is the same as any Interop samples that you have. Embed the SVG doc. in this HTML doc. I am already doing this. In you event handler you can refer to the COM component interface methods as: parent.COMCompID.SendEvent(evt) where COMCompID is the id of the embedded COM object;SendEvent(evt) is the COM interface method Would SendEvent be the name of the method in my C# class? What about parameters? Yes - but again - this is Interop - so same rules apply i.e. IE can access the methods off a C# interface only. You can embed a C# component too - I believe IE supports that. But, I found it easier to use a COM component and then use a C# app. to process the SVGDocument directly to do whatever you need to do - you can get you data updates into your C# app. and process the data and accordingly update the SVG document with C# routines i.e. on the SVG DOM - based on the previously received SVGDocument object. I may be missing something here, but I thought that the COM component would reside on the web server and then would be called by the web client via Javascript code. I definitely don't want or need to embed a C# component into my client app. I will be processing the svg doc by using Javascript. Also, I only want to do this if it will be supported by most browsers and not just IE. Do you know if this is the case? If the component is on the server, I didn't that that would matter. --- If you need to do all you processing on the client - then it sounds like you just need to parse some data updates through JS and update your SVG document with that. So, in that case you just need a normal C# or other web application that pulls in the required data. Your HTML based JS can process this data and pass it in to SVG for update or further SVG JS processing I guess. There are many examples of this around. What I mentioned above is for a situation where all processing happens on the server and no significant JS is used at all. The C# component support i know exists for IE. You wuld have to see what Firefox and all support. I think they'll all support ActiveX/COM components since I believe that is part of the JS spec. Thanks for your help. Jan Thanks for the info. My understanding is that I will write a C# class that implements IHttpHandler and accesses my data store. This will somehow be registered within ASP.NET and my IIS web server. Then, I will use getURL/postURL from my svg/Javascript client to execute the servlet and retrieve data updates. Someone that I work with suggested that instead of using ASP.NET, it would probably be easier to use COM+. The C# dll would be registered with COM+. Then, I would just have to figure out how to execute the servlet from my svg/Javascript client. Is anyone doing it this way? If so, can you also use getURL/postURL? Does anyone have any opinions as to which method is preferable/easier? I don't know anything about ASP.NET or COM+ at this point. Thanks for your help. Jan --- In svg-developers@yahoogroups.com, Rick Bullotta [EMAIL PROTECTED]
RE: [svg-developers] Re: Executing Java/C# server method from svg
Use getURL. Your HttpHandler will to map to a URL something like: http://yourserver/YourHandler?timestamp=2005-02-01T12:15:00dataset=XXX ASP.Net runs under IIS and exposes your handlers this way. You can return data as text, XML, whatever. I would suggest moving the discussion to the Microsoft ASP.NET newsgroups, where you'll be able to get more guidance on building your handler. Good luck! -Original Message- From: Jan [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 02, 2005 5:03 PM To: svg-developers@yahoogroups.com Subject: [svg-developers] Re: Executing Java/C# server method from svg From what I am reading, it looks like getURL is used mainly to load svg or xml data into your svg doc. Do I really use getURL to execute a servlet? What if I want to pass a parameter? I don't see any way of doing that. What I want to do is poll the server on a regular basis (every 15 seconds or so) to retrieve data updates. I want to pass a timestamp parameter to the method that is executed on the server. If I write a C# class, compile it, and register it with ASP.NET or COM+, how do I call it from my svg/Javascript client? Do I use getURL? Jan - 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] How can i improve performance of my SVG application ?
Hello,, i have a svg file loaded into my jsp... how can i improve its performance whilst loading it.? can i set some layers to be off at a particular zoom level and then make them visible at another bigger zoom level ? will this work ?? i use arc view GIS to convert shp to svg and the zooming function is generated automatically... but how do i customize my zoomin functinoality. do let me know.. if any of you know it..thanks... - Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web [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/