Question

Download a zipped shape file with from a website that does not require authentication

  • 26 October 2015
  • 5 replies
  • 9 views

Hello,

 

 

I am trying to download several shape files from a government website that does not require authentication. I am using the SHAPE reader but keep getting the error "No Shape files found in specified directory. Check if directory specified is valid"

 

 

Below is the website:

 

http://aep.alberta.ca/forms-maps-services/maps/wildlife-sensitivity-maps/default.aspx

 

 

And this is what I am putting in the Dataset Parameter:

 

https://extranet.gov.ab.ca/srd/geodiscover/srd_pub/LAT/FWDSensitivity/BurrowingOwlRange.zip/Burrowing_Owl_Range.shp

 

 

I am sure the mistake is minor but I can't figure it out. Thanks for the help in advance.

 

 

Justin

 

FME 2014 SP2

5 replies

Userlevel 2
Badge +17
Hi Justin,

 

 

When reading a dataset in a web server, FME will download the file temporarily into the local disk (and expand it if it was a zip file), and then configure the reader schema based on the local file. You therefore will have to specify just the URL of the download file to the Dataset field of the reader, cannot specify the archive file name inside the zip file. Try setting just the URL of the zip file:

 

https://extranet.gov.ab.ca/srd/geodiscover/srd_pub/LAT/FWDSensitivity/BurrowingOwlRange.zip

 

 

Takashi
Hello Takashi,

 

 

Does that URL work for you? I get the same error message when I insert that URL as I do when I add the full path.

 

 

Thanks,

 

 

Justin
Userlevel 2
Badge +17
Yes, I can read the data using the URL. In this screenshot, is there any difference from yours?

 

I believe so.

 

 

 

 

Userlevel 4
Badge +25
I've tried this using FME2013 and it worked, so your version should be fine. My guess would be there is a web issue of some sort. Do you have a firewall or something that might be interfering? Can you test it by entering that zip url into a web browser, to see if it works? On mine I'm prompted to download the file. If you aren't then that's a good indicator of why FME can't read the file.

 

Reply