• Login
sketchucation logo sketchucation
  • Login
🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

[Plugin] KML Tools (2.0.0-beta) — updated 31.05.2013

Scheduled Pinned Locked Moved Plugins
137 Posts 49 Posters 124.4k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    Gaieus
    last edited by 18 Jun 2011, 07:00

    👍 👍 👍

    Great, thanks Aerilius! I am pretty sure this will be an invaluable tool for many people!

    Gai...

    1 Reply Last reply Reply Quote 0
    • B Offline
      bilianb
      last edited by 20 Jun 2011, 08:31

      Hi
      Greetings from Bulgaria

      i receive error on line 840: @model.pages.eachp - no method eachp for Sketchup::Pages.
      It works with @model.pages.each

      Have a nice day

      1 Reply Last reply Reply Quote 0
      • P Offline
        Pixero
        last edited by 21 Jun 2011, 07:24

        I have the same problem as lexmonteiro (above).
        IE 8 Windows 7 64bit. SketchUp 8 Pro.

        1 Reply Last reply Reply Quote 0
        • L Offline
          lexmonteiro
          last edited by 21 Jun 2011, 11:44

          @aerilius said:

          I cannot reproduce the problem. Are you using an older browser than Internet Explorer 8 (it needs version 8)?
          If it happens although you have IE8/IE9, maybe you can eventually PM me the kml file?

          😳 You're right, I'm using a previous version (IE7).
          I've been using Google Chrome for so long that not even remember which version IE I was using ..
          I'll update it and then put the results here.
          Thank you!

          1 Reply Last reply Reply Quote 0
          • A Offline
            Aerilius
            last edited by 22 Jun 2011, 17:50

            I had done more than a week testing and hadn't imagined that there still could be such issues.
            Now I've uploaded a new version. I found a work-around to drop the IE8 requirement and fixed some more things. I hope it works this time.

            1 Reply Last reply Reply Quote 0
            • L Offline
              lexmonteiro
              last edited by 27 Jun 2011, 13:44

              It works fine now, ie7 and SU 7.1 free!

              Thank you! 👍

              1 Reply Last reply Reply Quote 0
              • T Offline
                Tobobo
                last edited by 5 Jul 2011, 09:50

                Thanks very much

                Toby

                Philippians 4:13

                I can do everything through him who gives me strength.

                1 Reply Last reply Reply Quote 0
                • B Offline
                  BillB1
                  last edited by 7 Jul 2011, 18:52

                  Hi there Aerilius.

                  You say
                  @unknownuser said:

                  it's now also easier to create and edit animated content for Google Earth

                  and I see there is a timespan option on the menu. Can you explain what this does and an example of how to use it?

                  Thanks

                  1 Reply Last reply Reply Quote 0
                  • 3 Offline
                    3dworks
                    last edited by 15 Jul 2011, 11:01

                    is this working with SU version 8 on mac or is there another solution in the meantime? what i'm missing in SU 8 is the ability to batch capture a sequence of aligned terrains. the frame tool in SU8 is making a manual selection of an area around an already captured terrain very difficult. anyone?

                    cheers

                    markus

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      marktonium
                      last edited by 18 Jul 2011, 21:24

                      Might be a silly question, but here it goes.

                      Is it possible to completely remove the entire process of downloading elevation data? I do not need it, as I am using the drape tool with the files, and can manually georeference the KML files.

                      I've tried deleting that portion of the code, but I know nothing about Ruby, so I really don't know what I'm doing.

                      Thanks.

                      This tool is exactly what I needed by the way, thanks for the development!

                      1 Reply Last reply Reply Quote 0
                      • A Offline
                        Aerilius
                        last edited by 19 Jul 2011, 11:45

                        I think it should assume an elevation of 0 if it can't connect to the internet. So you could disconnect from the internet and after using the tool you can reconnect again. Tell me if that solves it 😉

                        1 Reply Last reply Reply Quote 0
                        • M Offline
                          marktonium
                          last edited by 19 Jul 2011, 17:19

                          Looks like that part of the script is working now (I re-downloaded the files, maybe they were/are corrupted for me).

                          I am getting the following error now, though:

                          no JSON returned (which I'm expecting)
                          Error: #<NoMethodError: undefined method []' for nil:NilClass> ...kmlTools/kmlImport.rb:737:in points_to_plane'
                          ...kmlTools/kmlImport.rb:737:in each' ...kmlTools/kmlImport.rb:737:in points_to_plane'
                          ...kmlTools/kmlImport.rb:320:in polygon' ...kmlTools/kmlImport.rb:205:in run2'
                          ...kmlTools/kmlImport.rb:205:in eachp' ...kmlTools/kmlImport.rb:632:in each_with_index'
                          ...kmlTools/kmlImport.rb:632:in each' ...kmlTools/kmlImport.rb:632:in each_with_index'
                          ...kmlTools/kmlImport.rb:632:in each' ...kmlTools/kmlImport.rb:205:in run2'
                          ...kmlTools/kmlImport.rb:176:in each' ...kmlTools/kmlImport.rb:176:in run2'
                          ...kmlTools/kmlImport.rb:114:in fetch_alt' ...kmlTools/kmlImport.rb:109:in call'

                          Thanks again.

                          Mark

                          1 Reply Last reply Reply Quote 0
                          • A Offline
                            Aerilius
                            last edited by 22 Jul 2011, 14:44

                            @marktonium said:

                            I am getting the following error now, though:

                            Hi Mark,
                            I have fixed something that could have caused this error in line 737. After reading the kml file, the plugin could have come across some unexpected (empty) elements. Can you check if it works now?

                            1 Reply Last reply Reply Quote 0
                            • A Offline
                              Aerilius
                              last edited by 22 Jul 2011, 14:53

                              @3dworks said:

                              is this working with SU version 8 on mac or is there another solution in the meantime?

                              Hi 3dworks,
                              It is not yet tested on mac, but it shouldn't contain anything specific that doesn't work on both platforms.

                              @3dworks said:

                              [...] the ability to batch capture a sequence of aligned terrains.

                              That's probably not in the scope of this plugin, but it's a question that many people ask. Technically it is not possible to do the batch part automatically (because one had to interfere with the Add location tool in a way that is impossible), but one could imagine a tool that helps to perfectly align the selection rectangle to the previous terrain.

                              1 Reply Last reply Reply Quote 0
                              • C Offline
                                ccreynol
                                last edited by 22 Jul 2011, 16:39

                                It is hanging up on the "importing styles" when I try to import a Google Earth made .kml file, any thoughts? Your previous tool worked fine to import a simple ground tracing from a Google Earth .kmz file, is this new tool any improvement for this simple function? Thanks!

                                1 Reply Last reply Reply Quote 0
                                • A Offline
                                  Aerilius
                                  last edited by 29 Jul 2011, 12:21

                                  Hi,
                                  the importing will probably be the problematic part of KML Tools because there is no simple and clean way in ruby to parse xml files and because kml files can occur in many different kinds.
                                  If you open the ruby console before starting the import, can you send me the error message (first lines of the error)? Or you can pm me the kml file so that it's easier to find the cause of the problem.

                                  If you refer to the KML linestring importer, this tool here is not limited to only "linestrings" but it's also ways more complex. So the simple tool is not a bad choice if it does the job sufficiently.

                                  1 Reply Last reply Reply Quote 0
                                  • C Offline
                                    ccreynol
                                    last edited by 12 Aug 2011, 21:35

                                    Why does this not work on international locations? My shapes are imported at strange sizes, occasionally with angles changed as well. Thoughts?

                                    1 Reply Last reply Reply Quote 0
                                    • G Offline
                                      Gaieus
                                      last edited by 12 Aug 2011, 21:51

                                      What do you mean by "internationallocations"? (Are there "nationallocations"? 😕 )

                                      Gai...

                                      1 Reply Last reply Reply Quote 0
                                      • thomthomT Offline
                                        thomthom
                                        last edited by 22 Aug 2011, 09:18

                                        I've been looking around at the various ruby based importers for SketchUp and I see that no one uses the Importer class. If this class is used the importer can be found in the native import list which would be very nice.
                                        http://code.google.com/apis/sketchup/docs/ourdoc/importer.html

                                        Thomas Thomassen — SketchUp Monkey & Coding addict
                                        List of my plugins and link to the CookieWare fund

                                        1 Reply Last reply Reply Quote 0
                                        • A Offline
                                          Aerilius
                                          last edited by 22 Aug 2011, 11:56

                                          @ccreynol said:

                                          My shapes are imported at strange sizes, occasionally with angles changed as well. Thoughts?

                                          If you can tell me more details and send me an example file that does not work as expected, I can have a look at it. SketchUp documents can only cover an area of some kilometers, so one shouldn't import too distant places, otherwise SketchUp behaves very weird (navigation won't work properly, clipping occurs and shapes can look strange).

                                          1 Reply Last reply Reply Quote 0
                                          • 1
                                          • 2
                                          • 3
                                          • 4
                                          • 5
                                          • 6
                                          • 7
                                          • 1 / 7
                                          • First post
                                            Last post
                                          Buy SketchPlus
                                          Buy SUbD
                                          Buy WrapR
                                          Buy eBook
                                          Buy Modelur
                                          Buy Vertex Tools
                                          Buy SketchCuisine
                                          Buy FormFonts

                                          Advertisement