Giter Club home page Giter Club logo

Comments (3)

r-barnes avatar r-barnes commented on September 1, 2024

Running the command

assign("dg_debug", TRUE, envir=dggridR:::dg_env)

will provide additional debugging info that may be useful to you.

Could you post the top few sections of your KML file? Mine looks like:

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.1">
<Folder>
   <name>dgout</name>
   <description>Generated by DGGRID 6.2b1</description>
   <Style id="lineStyle1">
      <LineStyle id="lineStyle2">
         <color>ffffffff</color>
         <width>4</width>
      </LineStyle>
   </Style>
<Placemark>
<name>1</name>
      <styleUrl>#lineStyle1</styleUrl>
      <LineString>

You'll see the <name>dgout</name> line, which is what rgdal is looking for.

from dggridr.

ekleins avatar ekleins commented on September 1, 2024

This is what I have in the KML:

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.1">
<Folder>
   <name>dgout</name>
   <description>Generated by DGGRID 6.2b1</description>
   <Style id="lineStyle1">
      <LineStyle id="lineStyle2">
         <color>ffffffff</color>
         <width>4</width>
      </LineStyle>
   </Style>
<Placemark>
<name>80435</name>
      <styleUrl>#lineStyle1</styleUrl>
      <LineString>
         <tessellate>1</tessellate>
         <coordinates>

It seems to be OK.

Set assign("dg_debug", TRUE, envir=dggridR:::dg_env) and the error is he same but with more info:

after successfully generate the grid, I got

** grid generation complete **
accepted 1,020 cells / 1,020 tested

[1] "Metafile: /tmp/RtmpMioJPY/dggridR-2b0b40b1d68c.meta"
[1] "Inputfile: /tmp/RtmpMioJPY/dggridR-2b0b29dd3573.indat"
[1] "Cellfile: /tmp/RtmpMioJPY/dggridR-2b0b618446ff.cell_dat.kml"
Error in ogrInfo(dsn = dsn, layer = layer, encoding = encoding, use_iconv = use_iconv,  : 
  Cannot open layer

and all files exist in /tmp...

from dggridr.

r-barnes avatar r-barnes commented on September 1, 2024

Thank you for reporting this. As of 7746fb0 (the v2.0.0 release), I've completely restructured the package to avoid intermediate files, thereby making it more robust against the kinds of behaviour you report. This should resolve the issue you report.

from dggridr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.