[gdal-dev] Enquiry

Chaitanya kumar CH chaitanya.ch at gmail.com
Wed Mar 19 01:01:59 PDT 2014


Hao,

The extents for -clipsrc have to be represented in the source's reference
system. You can use gdaltransform [1] if you want to convert your lat/long
to the source's ref system.

[1]: http://www.gdal.org/gdaltransform.html


On Wed, Mar 19, 2014 at 1:16 PM, Tan Hao Feng <htan at hsr.ch> wrote:

>  Dear Sir/Madam,
>
> I'm a student in HSR, Rapperswil and I am trying to clip a SQLite file
>
> I converted .osm.pbf file of liechtenstein to a .sqlite file, and then
> tried to clip it with the following codes, (is it -clipsrc or -clipdst
>
> ogr2ogr -f "SQLite" liechtenstein.sqlite liechtenstein-latest.osm.pbg
> -skipfailures -dsco SPATIALITE=yes -clipsrc 47.1386361 9.5231616 47.1404971
> 9.5266377
>
>
> Also, I tried to clip the map of Singapore but was unsuccessful, the
> following is the code
>
> ogr2ogr -f "SQLite" singapore.sqlite
> malaysia-singapore-brunei-latest.osm.pbg -skipfailures -dsco -clipsrc
> singapore.geojson
>
> Do I have to convert to .shp file?
>
> Do you have any suggestions?
>
> Thank you!
> Hao Feng.
>
>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>



-- 
Best regards,
Chaitanya kumar CH.

+91-9494447584
17.2416N 80.1426E
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20140319/e007449f/attachment.html>


More information about the gdal-dev mailing list