[gdal-dev] Converting contour lines (Shape files) into DEM

Chaitanya kumar CH chaitanya.ch at gmail.com
Wed Apr 7 07:08:02 EDT 2010


Kishore,

I think the area you clipped to does not have any features. This should not
be a problem.

On Wed, Apr 7, 2010 at 4:09 PM, Kishore Reddy
<enigma2006.kishore at gmail.com>wrote:

> I must be doing something terribly wrong I guess. Heres is the output.
>
> >> ogrinfo -al Contour_100.shp | grep Extent
> Extent: (1966324.986729, 399608.866986) - (2146704.003923, 551765.272646)
>
> >> ogr2ogr -clipsrc 1966328 399612 1984324 404608 clipped.shp
> Contour_100.shp
>
> >>  ogrinfo -al clipped.shp | grep Extent
> Extent: (0.000000, 0.000000) - (0.000000, 0.000000)
>
> Some more details of the input file:
> >> ogrinfo -al Contour_100.shp | head -25
> INFO: Open of `Contour_100.shp'
>       using driver `ESRI Shapefile' successful.
>
> Layer name: Contour_100
> Geometry: Line String
> Feature Count: 1760
> Extent: (1966324.986729, 399608.866986) - (2146704.003923, 551765.272646)
> Layer SRS WKT:
> PROJCS["NAD_1983_StatePlane_North_Carolina_FIPS_3200_Feet",
>     GEOGCS["GCS_North_American_1983",
>         DATUM["North_American_Datum_1983",
>             SPHEROID["GRS_1980",6378137.0,298.257222101]],
>         PRIMEM["Greenwich",0.0],
>         UNIT["Degree",0.0174532925199433]],
>     PROJECTION["Lambert_Conformal_Conic_2SP"],
>     PARAMETER["False_Easting",2000000.002616666],
>     PARAMETER["False_Northing",0.0],
>     PARAMETER["Central_Meridian",-79.0],
>     PARAMETER["Standard_Parallel_1",34.33333333333334],
>     PARAMETER["Standard_Parallel_2",36.16666666666666],
>     PARAMETER["Latitude_Of_Origin",33.75],
>     UNIT["Foot_US",0.3048006096012192]]
> Elevation: Integer (4.0)
> TILE: String (8.0)
> Interval: Integer (4.0)
>
>
> Please correct me where am I going wrong.
>
> --
> Kishore
>
>

-- 
Best regards,
Chaitanya kumar CH.
/tʃaɪθənjə/ /kʊmɑr/
+91-9848167848
17.2416N 80.1426E
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20100407/8490af0d/attachment-0001.html


More information about the gdal-dev mailing list