RE: [gdal-dev] OGC services requests in VRT?

2012-05-11 Thread Ethan Alpert
Interesting thanks! I always for get to try just convering to VRT and seeing 
what GDAL does.

-e

-Original Message-
From: Paolo Corti [mailto:pco...@gmail.com] 
Sent: Thursday, May 10, 2012 7:00 AM
To: Ethan Alpert
Cc: gdal-dev@lists.osgeo.org
Subject: Re: [gdal-dev] OGC services requests in VRT?

On Thu, May 10, 2012 at 2:57 PM, Paolo Corti  wrote:
> On Thu, May 10, 2012 at 12:49 AM, Ethan Alpert  
> wrote:
>> Is it possible to use an OGC call in a VRTRasterBand?
>>
>
> I guess you mean a WCS, and I think it is possible, just put the xml 
> file in SourceFilename under VRTRasterBand.
>
> Very quick sample, create a test.xml file like this:
>
> 
>  http://nsidc.org/cgi-bin/atlas_south?
>  antarctica_satellite_image
> 
>
> Now if you export this datasource to a vrt:
>
> $ gdal_translate -of vrt test.xml test.vrt
>
> this is the output test.vrt file:
>

sorry, this is the correct output vrt file:


  PROJCS[&quo...
   -3.17451250e+06,  1.2500e+02, 
0.e+00,  2.81601250e+06, 0.e+00, 
-1.2500e+02
  
  


  test.xml
  1
  
  
  

  


--
Paolo Corti
Geospatial software developer
web: http://www.paolocorti.net
twitter: @capooti
skype: capooti

This electronic communication and any attachments may contain confidential and 
proprietary 
information of DigitalGlobe, Inc. If you are not the intended recipient, or an 
agent or employee 
responsible for delivering this communication to the intended recipient, or if 
you have received 
this communication in error, please do not print, copy, retransmit, disseminate 
or 
otherwise use the information. Please indicate to the sender that you have 
received this 
communication in error, and delete the copy you received. DigitalGlobe reserves 
the 
right to monitor any electronic communication sent or received by its 
employees, agents 
or representatives.

___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev


Re: [gdal-dev] OGC services requests in VRT?

2012-05-10 Thread Paolo Corti
On Thu, May 10, 2012 at 2:57 PM, Paolo Corti  wrote:
> On Thu, May 10, 2012 at 12:49 AM, Ethan Alpert  
> wrote:
>> Is it possible to use an OGC call in a VRTRasterBand?
>>
>
> I guess you mean a WCS, and I think it is possible, just put the xml
> file in SourceFilename under VRTRasterBand.
>
> Very quick sample, create a test.xml file like this:
>
> 
>  http://nsidc.org/cgi-bin/atlas_south?
>  antarctica_satellite_image
> 
>
> Now if you export this datasource to a vrt:
>
> $ gdal_translate -of vrt test.xml test.vrt
>
> this is the output test.vrt file:
>

sorry, this is the correct output vrt file:


  PROJCS[&quo...
   -3.17451250e+06,  1.2500e+02,
0.e+00,  2.81601250e+06,
0.e+00, -1.2500e+02
  
  


  test.xml
  1
  
  
  

  


-- 
Paolo Corti
Geospatial software developer
web: http://www.paolocorti.net
twitter: @capooti
skype: capooti
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev


Re: [gdal-dev] OGC services requests in VRT?

2012-05-10 Thread Paolo Corti
On Thu, May 10, 2012 at 12:49 AM, Ethan Alpert  wrote:
> Is it possible to use an OGC call in a VRTRasterBand?
>

I guess you mean a WCS, and I think it is possible, just put the xml
file in SourceFilename under VRTRasterBand.

Very quick sample, create a test.xml file like this:


  http://nsidc.org/cgi-bin/atlas_south?
  antarctica_satellite_image


Now if you export this datasource to a vrt:

$ gdal_translate -of vrt test.xml test.vrt

this is the output test.vrt file:


  PROJCS["WGS 84 / Antarctic Polar
Stereographic",GEOGCS["WGS
84",DATUM["WGS_1984",SPHEROID["WGS
84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]],PROJECTION["Polar_Stereographic"],PARAMETER["latitude_of_origin",-71],PARAMETER["central_meridian",0],PARAMETER["scale_factor",1],PARAMETER["false_easting",0],PARAMETER["false_northing",0],UNIT["metre",1,AUTHORITY["EPSG","9001"]],AXIS["Easting",EAST],AXIS["Northing",NORTH],AUTHORITY["EPSG","3031"]]
   -3.17451250e+06,  1.2500e+02,
0.e+00,  2.81601250e+06,
0.e+00, -1.2500e+02
  
  


  wcs2.xml
  1
  
  
  

  


p

-- 
Paolo Corti
Geospatial software developer
web: http://www.paolocorti.net
twitter: @capooti
skype: capooti
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev


[gdal-dev] OGC services requests in VRT?

2012-05-09 Thread Ethan Alpert
Is it possible to use an OGC call in a VRTRasterBand?


This electronic communication and any attachments may contain confidential and 
proprietary 
information of DigitalGlobe, Inc. If you are not the intended recipient, or an 
agent or employee 
responsible for delivering this communication to the intended recipient, or if 
you have received 
this communication in error, please do not print, copy, retransmit, disseminate 
or 
otherwise use the information. Please indicate to the sender that you have 
received this 
communication in error, and delete the copy you received. DigitalGlobe reserves 
the 
right to monitor any electronic communication sent or received by its 
employees, agents 
or representatives.

___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev