librelist archives

« back to archive

Fwd: GeoTiff upload

Fwd: GeoTiff upload

From:
Jeffrey Johnson
Date:
2011-06-02 @ 15:52
---------- Forwarded message ----------
From: Jeffrey Johnson <jjohnson@opengeo.org>
Date: Thu, Jun 2, 2011 at 8:42 AM
Subject: Re: GeoTiff upload
To: "Ma, Amy" <yue-yuan.ma@cubic.com>
Cc: geonode-dev <geonode@opengeo.org>


Hi Amy,

Unfortunately, I dont think that the tif itself includes the
projection information as its only stored in the tfw, and at the
moment, there is no way to include the tfw with your upload. I think
we should file this as a bug/feature request against geonode and I
think its something we should be able to implement fairly easily.

Do you have a way to run the gdal command line utilities? If so, you
can easily create a new GeoTiff that includes the projection
information inside the tif itself like this:

gdal_translate -of GTiff NED_086555638.tif NED_086555638_x.tif

Let me know if this works for you.

Jeff

On Thu, Jun 2, 2011 at 8:25 AM, Ma, Amy <yue-yuan.ma@cubic.com> wrote:
> Hi Jeff,
>
> How are you doing?
>
> I have a question about uploading GeoTiff data which I downloaded from
> National Map Viewer.
>
> NED_086555638.tif
> NED_086555638.prj
> NED_086555638.tfw
>
> I uploaded the NED_086555638.tif only in GeoNode and I can view it (weird
> looking), so I am wondering if I uploaded correctly.
>
> And also I got some tip about how to do getcoverage for the raster. So when
> I run the link from the 2nd http (see below), I got a dialog window for
> saving the wcs file. Is this the right response for this link?
>
>
>
> The following is a part of the advice I got:
>
>                   "If a WCS 1.0.0 request is fine then every GeoNode raster
> page as a GeoTIFF link, which makes a WCS request.
>
>                    Like http://demo.geonode.org/data/geonode:Haiti_DEM_30m
>
>                    WCS request for GeoTIFF is made from link:
>
>
> 
http://demo.geonode.org/geoserver-geonode-dev/wcs?CRS=EPSG%3A4326&version=1.0.0&coverage=geonode%3AHaiti_DEM_30m&service=WCS&width=4160&format=geotiff&request=GetCoverage&bbox=-74.48175925217114%2C17.99631324476671%2C-71.60396240616375%2C20.10225090792211&height=899
>
>
>                    Any raster you upload to your GeoNode should generate a
> similar link.  You can do it in a browser, or 'curl' or 'wget' it.
>
>
>
>                    If you need 1.1.1 the semantics are unfortunately far
> different, and the return is also weird.  So I'd recommend 1.0.0 if that
> works. "
>
>
> Thanks in advance
>
> Amy
>
>
>
>
>
>
>
>

Re: [geonode] Fwd: GeoTiff upload

From:
Sebastian Benthall
Date:
2011-06-02 @ 16:01
yeah, good idea to file a ticket for this, Jeff.

On Thu, Jun 2, 2011 at 11:52 AM, Jeffrey Johnson <jjohnson@opengeo.org>wrote:

> ---------- Forwarded message ----------
> From: Jeffrey Johnson <jjohnson@opengeo.org>
> Date: Thu, Jun 2, 2011 at 8:42 AM
> Subject: Re: GeoTiff upload
> To: "Ma, Amy" <yue-yuan.ma@cubic.com>
> Cc: geonode-dev <geonode@opengeo.org>
>
>
> Hi Amy,
>
> Unfortunately, I dont think that the tif itself includes the
> projection information as its only stored in the tfw, and at the
> moment, there is no way to include the tfw with your upload. I think
> we should file this as a bug/feature request against geonode and I
> think its something we should be able to implement fairly easily.
>
> Do you have a way to run the gdal command line utilities? If so, you
> can easily create a new GeoTiff that includes the projection
> information inside the tif itself like this:
>
> gdal_translate -of GTiff NED_086555638.tif NED_086555638_x.tif
>
> Let me know if this works for you.
>
> Jeff
>
> On Thu, Jun 2, 2011 at 8:25 AM, Ma, Amy <yue-yuan.ma@cubic.com> wrote:
> > Hi Jeff,
> >
> > How are you doing?
> >
> > I have a question about uploading GeoTiff data which I downloaded from
> > National Map Viewer.
> >
> > NED_086555638.tif
> > NED_086555638.prj
> > NED_086555638.tfw
> >
> > I uploaded the NED_086555638.tif only in GeoNode and I can view it (weird
> > looking), so I am wondering if I uploaded correctly.
> >
> > And also I got some tip about how to do getcoverage for the raster. So
> when
> > I run the link from the 2nd http (see below), I got a dialog window for
> > saving the wcs file. Is this the right response for this link?
> >
> >
> >
> > The following is a part of the advice I got:
> >
> >                   "If a WCS 1.0.0 request is fine then every GeoNode
> raster
> > page as a GeoTIFF link, which makes a WCS request.
> >
> >                    Like
> http://demo.geonode.org/data/geonode:Haiti_DEM_30m
> >
> >                    WCS request for GeoTIFF is made from link:
> >
> >
> >
> 
http://demo.geonode.org/geoserver-geonode-dev/wcs?CRS=EPSG%3A4326&version=1.0.0&coverage=geonode%3AHaiti_DEM_30m&service=WCS&width=4160&format=geotiff&request=GetCoverage&bbox=-74.48175925217114%2C17.99631324476671%2C-71.60396240616375%2C20.10225090792211&height=899
> >
> >
> >                    Any raster you upload to your GeoNode should generate
> a
> > similar link.  You can do it in a browser, or 'curl' or 'wget' it.
> >
> >
> >
> >                    If you need 1.1.1 the semantics are unfortunately far
> > different, and the return is also weird.  So I'd recommend 1.0.0 if that
> > works. "
> >
> >
> > Thanks in advance
> >
> > Amy
> >
> >
> >
> >
> >
> >
> >
> >
>



-- 
Sebastian Benthall
OpenGeo - http://opengeo.org