Hi,

This is partly off-topic but perhaps useful information. I made some trials 
with GDAL and it is amazing. First I can ask it to investigate a remote zip and 
it finds all the supported datasets from it. GDAL is listing the dataset names 
and then it reads some metadata so it can report the schemas and feature counts.

C:\gdal_dev>ogrinfo -ro -al -so /vsizip/vsicurl/http://download.geofabr
ik.de/europe/germany/berlin-latest.shp.zip
INFO: Open of `/vsizip/vsicurl/http://download.geofabrik.de/europe/germany/berli
n-latest.shp.zip'
      using driver `ESRI Shapefile' successful.

Layer name: buildings
Geometry: Polygon
Feature Count: 189710
Extent: (13.083483, 52.337280) - (13.758147, 52.676907)
Layer SRS WKT:
GEOGCS["GCS_WGS_1984",
    DATUM["WGS_1984",
        SPHEROID["WGS_84",6378137,298.257223563]],
    PRIMEM["Greenwich",0],
    UNIT["Degree",0.017453292519943295]]
osm_id: Real (11.0)
name: String (48.0)
type: String (16.0)

Layer name: landuse
Geometry: Polygon
Feature Count: 8614
Extent: (13.068823, 52.327239) - (13.765785, 52.685969)
Layer SRS WKT:
GEOGCS["GCS_WGS_1984",
    DATUM["WGS_1984",
        SPHEROID["WGS_84",6378137,298.257223563]],
    PRIMEM["Greenwich",0],
    UNIT["Degree",0.017453292519943295]]
osm_id: Real (11.0)
name: String (48.0)
type: String (16.0)

Layer name: natural
Geometry: Polygon
Feature Count: 3088
Extent: (13.066549, 52.329579) - (13.768265, 52.674016)
Layer SRS WKT:
GEOGCS["GCS_WGS_1984",
    DATUM["WGS_1984",
        SPHEROID["WGS_84",6378137,298.257223563]],
    PRIMEM["Greenwich",0],
    UNIT["Degree",0.017453292519943295]]
osm_id: Real (11.0)
name: String (48.0)
type: String (16.0)

Layer name: places
Geometry: Point
Feature Count: 196
Extent: (13.087828, 52.337507) - (13.756156, 52.636672)
Layer SRS WKT:
GEOGCS["GCS_WGS_1984",
    DATUM["WGS_1984",
        SPHEROID["WGS_84",6378137,298.257223563]],
    PRIMEM["Greenwich",0],
    UNIT["Degree",0.017453292519943295]]
osm_id: Real (11.0)
name: String (48.0)
type: String (16.0)
population: Integer (10.0)

Layer name: points
Geometry: Point
Feature Count: 46117
Extent: (13.001319, 52.319210) - (13.770846, 52.682269)
Layer SRS WKT:
GEOGCS["GCS_WGS_1984",
    DATUM["WGS_1984",
        SPHEROID["WGS_84",6378137,298.257223563]],
    PRIMEM["Greenwich",0],
    UNIT["Degree",0.017453292519943295]]
osm_id: Real (11.0)
timestamp: String (20.0)
name: String (48.0)
type: String (16.0)

Layer name: railways
Geometry: Line String
Feature Count: 7627
Extent: (12.980119, 52.299934) - (13.774108, 52.685930)
Layer SRS WKT:
GEOGCS["GCS_WGS_1984",
    DATUM["WGS_1984",
        SPHEROID["WGS_84",6378137,298.257223563]],
    PRIMEM["Greenwich",0],
    UNIT["Degree",0.017453292519943295]]
osm_id: Real (11.0)
name: String (48.0)
type: String (16.0)

Layer name: roads
Geometry: Line String
Feature Count: 89136
Extent: (13.062825, 52.327947) - (13.763972, 52.679994)
Layer SRS WKT:
GEOGCS["GCS_WGS_1984",
    DATUM["WGS_1984",
        SPHEROID["WGS_84",6378137,298.257223563]],
    PRIMEM["Greenwich",0],
    UNIT["Degree",0.017453292519943295]]
osm_id: Real (11.0)
name: String (48.0)
ref: String (16.0)
type: String (16.0)
oneway: Integer (1.0)
bridge: Integer (1.0)
tunnel: Integer (1.0)
maxspeed: Integer (3.0)

Layer name: waterways
Geometry: Line String
Feature Count: 1436
Extent: (13.016271, 52.307042) - (13.749597, 52.678994)
Layer SRS WKT:
GEOGCS["GCS_WGS_1984",
    DATUM["WGS_1984",
        SPHEROID["WGS_84",6378137,298.257223563]],
    PRIMEM["Greenwich",0],
    UNIT["Degree",0.017453292519943295]]
osm_id: Real (11.0)
name: String (48.0)
type: String (16.0)
width: Integer (3.0)


Then I can select just one shapefile and read it with GDAL as
C:\gdal_dev>ogr2ogr -f "ESRI Shapefile" -t_srs epsg:3067 OSM_tiet.shp 
/vsizip/vsicurl/http://download.geofabrik.de/europe/finland-latest.shp.zip roads

GDAL is using http headers like "Range: bytes=29835264-30048255" and as a 
result it reads only 77 MB of data even the zip on the server is 187 MB and I 
have the roads shapefile on my computer.

-Jukka-


 edgar soldin wrote:

On 02.04.2013 07:10, Rahkonen Jukka wrote:
> Hi,
>
> Michaƫl made OpenJUMP to read a routing solution in KML format directly from 
> the web by URL. Is it possible to read zipped shapefiles in the same way for 
> example from
> http://kartat.kapsi.fi/files/maastotietokanta/kaikki/etrs89/shp/M5/M53/M53122.shp.zip
>  ?
>

depends on the the internal zip opening routine of the jre. at least for zips i 
guess it could be possible as the jre can start jars from webservers.

want to add a feature request? we would probably need a "Open from Url" dialog 
for that. Want to do by script in between? never tried the beanscripting. 
Michael any idea? Do you have a bean script that opens a shp file to start with?

..ede

------------------------------------------------------------------------------
Own the Future-Intel(R) Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest. Compete
for recognition, cash, and the chance to get your game on Steam.
$5K grand prize plus 10 genre and skill prizes. Submit your demo
by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to