Code Monkey home page Code Monkey logo

Comments (6)

iandees avatar iandees commented on June 29, 2024

The Python ESRI scrape code runs through OBJECTID's 500 at a time. Sometimes the source's OBJECTID first value is > 500, so the scrape returns zero results.

I should probably start off the scrape by doing an OBJECTID search from 0 to 1000000000 or something and then go from there.

from machine.

iandees avatar iandees commented on June 29, 2024

I take that back. I'm assuming the column is called "OBJECTID" when in fact the oid column could be named something else. The name will be in the metadata for the layer so I'll query that first.

from machine.

NelsonMinar avatar NelsonMinar commented on June 29, 2024

Hmm, I've tried a few sources after integrating your pull request #41 and still no joy. My repo is at f28c27f and us-sd us-al-calhoun us-sc-berkeley all still seem to find no features.

from machine.

NelsonMinar avatar NelsonMinar commented on June 29, 2024

Oh btw here's how I'm testing stuff, after doing a pip install.

openaddr-process-one ~/src/oa/openaddresses-me/sources/us-al-calhoun.json /tmp/
wc -l /tmp/us-al-calhoun/out.csv

from machine.

NelsonMinar avatar NelsonMinar commented on June 29, 2024

I've verified us-va-city_of_norton and us-wi-vernon now work. Also us-wy-albany still works, to name a random ESRI source that was working before #41 and #44 were merged.

us-al-calhoun ran for about 10 minutes getting valid-seeming JSON and then barfed with a DownloadError, but that's likely to just be a failure of their web server (see below for details). We'll know more after the next bulk run. Closing the ticket, nice work @iandees!

  File "/home/nelson/src/oa/openaddresses-machine/openaddr/__init__.py", line 85, in cache
    downloaded_files = task.download(source_urls, workdir)
  File "/home/nelson/src/oa/openaddresses-machine/openaddr/cache.py", line 326, in download
    raise DownloadError("Problem querying ESRI dataset: %s", error['message'])
DownloadError: ('Problem querying ESRI dataset: %s', u'Error performing query operation')

from machine.

iandees avatar iandees commented on June 29, 2024

The issue you're seeing there @NelsonMinar is fixed in #45.

from machine.

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.