[gdal-dev] PDF Driver projection support for Mercator_1SP Mercator_2SP

2022-07-06 Thread Gane R
Does the PDF driver support these projections

Here is such an example of file with projection
https://lists.osgeo.org/pipermail/gdal-dev/2016-September/045147.html

I see some fix applied for GeoTIFF https://trac.osgeo.org/gdal/ticket/5791

Any thoughts? for PDF driver or I am wrong they already exists in latest
GDAL

Gane R
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev


[gdal-dev] gdal-1.11.3 to gdal-2.3.1 compatibility

2018-07-17 Thread Gane R
Hi all,

Is gdal-1.11.3, opening vector data set, reading OGR features code
compatible with gdal-2.3.1 code or any major changes in accessing OGR
features ?

Thanks
Gane
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] OGR SYMBOL style format

2018-06-06 Thread Gane R
Hi,

I am trying to draw OGR features with style in a defined by a vrt file.
I want point features to be placed with my custom icon with the OGR Feature
style.
So I tried,
The following line works when I change the size parameter s:n
SYMBOL(c:#00FF,s:50px,id:ogr-sym-3);

The following line doesn't show any change in output image drawn size when
I change the size parameter s:n
SYMBOL(c:#00FF,s:50px,id:bus_stop.png);

The above line doesn't seem to have any change in the image resize on the
point locations. But, then I use the default "ogr-sym-3" I see a change in
the output,

Did I miss any style parameters or is there any way to have the image
resized before placing at the location of the point features?

Thanks
Gane
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] (no subject)

2018-04-18 Thread Gane R
Hi all,

Is there any way to disable one or all OGR formats when building on Linux.
i.e.,
when using ./configure

Is there any way to disable certain raster formats when building on Linux

Thanks
Ganesan
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] GDAL 2.2.4 with c++11

2018-04-09 Thread Gane R
Does the latest version of GDAL 2.2.4 can be compiled without c++11 support
or it is mandatory to compile with c++11.

Is there any possibility I can build with a compiler which doesn't support
c++11.

Can you point any relevant information on this?

Thanks
Gane
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] Page Selection in GeoPDF in GDAL utilizes like gdalwarp, gdal_translate

2017-11-22 Thread Gane R
Thanks for your reply,
I got it working by referencing the the subsets like PDF:

On Fri, Oct 27, 2017 at 1:59 PM,  wrote:

> You should be able to just use the normal subdataset referencing. I like
> gdalinfo to get the syntax.
>
>
>
> Brad
>
>
>
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] Page Selection in GeoPDF in GDAL utilizes like gdalwarp, gdal_translate

2017-10-27 Thread Gane R
I have a GeoPDF with Map on second page, first page is kind of foreword.

 Do We have any way in GDAL to say to GDAL API use page 2 of this GeoPDF
for gdal_translate or gdalwarp ?

Thanks
Ganesan
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] GDAL Filegeodb using ESRI File Geodb

2017-08-14 Thread Gane R
I came across this link
https://pro.arcgis.com/en/pro-app/help/data/geodatabases/overview/create-datasets-in-a-geodatabase.htm

in GDAL Filegeodb using ESRI File Geodb what dataset we support apart from
Feature Datasets, like tables, Mosiac, Rasters ?

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

[gdal-dev] PDF not oriented as expected

2017-08-14 Thread Gane R
I had a chance to work with prebuild gdal-2-1-3 bin, I tried to convert a
PDF to TIFF, with attached PDF, the PDF is not oriented to the north
rotation as expected on the TIFF.

I tried to work with source and found the angle dfRotation is reported as
zero. The resultant GeoTIFF output is not north oriented. Here is a link to
PDF

https://drive.google.com/file/d/0B4shTM1bPS5TX1F2Wk8wTWk5MnM/view?usp=sharing

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

[gdal-dev] Build GDAL with PDFium

2017-07-10 Thread Gane R
Hi all,

I tried to Build GDAL with PDFium on linux, I succeeded it.
 I faced the following issue
F .text._ZN13CFDF_Document12CreateNewDocEv   00ac .hidden
CFDF_Document::CreateNewDoc() *got that fixed by changing standalone.gypi
removing -fvisibility=hidden*.

As an next step *I tried to Build GDAL with PDFium for android(cross
compile)* I succeed it.

But when I try to* load the GDAL's shared library libgdal.so.20 which is
dependent for my shared lib libread.so. *

I see unsatisfied link error unable to load symbols in libgdal.so.20
U _ZN13CFDF_Document12CreateNewDocEv
U _ZN13CPDF_Document15AddStandardFontEPKcP17CPDF_FontEncoding

But I see
 T _ZN13CPDF_Document15AddStandardFontEPKcP17CPDF_FontEncoding
 T _ZN13CPDF_Document12CreateNewDocEv
in
pdfium/out/Release/obj.target/fpdfapi/core/src/fpdfapi/fpdf_edit/fpdf_edit_doc.o
(also in libfpdfapi.a)

any suggestions on this issue or any one has worked on this will of great
help.

Gane R
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] Build PDFium with GDAL

2017-05-12 Thread Gane R
Hi all,
I am trying to build GDAL with PDFium

I have used the link to get build script for linux
https://github.com/rouault/pdfium/tree/build

only change in standalone.gypi was removal of -fvisibility=hidden in
standalone.gypi
I got a GDAL build with pdfium build was success,
But gdalinfo for a Geospatial PDF crashes
at version gdal-2.2.0

Has anybody tried to build GDAL with PDFium recently, or there was a change
in the PDFium source ?
Gane R

On Wed, May 10, 2017 at 6:18 PM, Gane R  wrote:

> I got it working, I saw the post Handling pdfium build / integration and
> fixed it.
>
> On Tue, May 9, 2017 at 6:31 PM, Gane R  wrote:
>
>> Hi all,
>> I am trying to build GDAL with PDFium
>>
>> I saw the link
>> https://github.com/rouault/pdfium/tree/build
>>
>> I tried to use the linux script and the pdfium static lib to build. *pdfium
>> build succeed.*
>>
>> I have few Questions:
>>
>> Q1: I see some 3rdpary dependency for PDFium, I don't see those LICENSES
>> included, does overall including the 3rparty dependency, PDFium library
>> comes to point like similar to MIT license ?.
>>
>> Q2. Can we do a cross compile with for PDFium, or any one tried.
>>
>> Q3. Has any one got an error like this (error message follows in next few
>> lines) ? or I have gone wrong in build steps.
>>
>> I started to build GDAL gdal-2.2.0 with pdfium
>>
>> ./configure --with-pdfium=/home/pdfium/install
>>
>> libtool: link: g++ .libs/gdalinfo_bin.o -o .libs/gdalinfo
>> /home/works/gdal_fresh/gdal-2.2.0/.libs/libgdal.so
>> -L/home/pdfium/install -L/home/pdfium/install/lib/pdfium -lpdfium
>> -lfpdfapi -lfpdftext -lformfiller -lpdfwindow -lfxedit -lfpdfdoc -lfxcodec
>> -lfx_libopenjpeg -lfx_lcms2 -lfx_libjpeg -lfx_zlib -lfdrm -lfxge -lfreetype
>> -lfx_agg -lfxcrt -lbigint -lz -lpthread -lrt -ldl
>> /usr/bin/ld: .libs/gdalinfo: hidden symbol 
>> `_ZN13CFDF_Document12CreateNewDocEv'
>> in /home/pdfium/install/lib/pdfium/libfpdfapi.a(fpdf_parser_fdf.o) is
>> referenced by DSO
>> /usr/bin/ld: final link failed: Bad value
>> collect2: error: ld returned 1 exit status
>> GNUmakefile:82: recipe for target 'gdalinfo' failed
>> make[1]: *** [gdalinfo] Error 1
>> make[1]: Leaving directory '/home/works/gdal_fresh/gdal-2.2.0/apps'
>> GNUmakefile:93: recipe for target 'apps-target' failed
>> make: *** [apps-target] Error 2
>>
>> Thanks
>> Gane R
>>
>
>
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] Build PDFium with GDAL

2017-05-10 Thread Gane R
I got it working, I saw the post Handling pdfium build / integration and
fixed it.

On Tue, May 9, 2017 at 6:31 PM, Gane R  wrote:

> Hi all,
> I am trying to build GDAL with PDFium
>
> I saw the link
> https://github.com/rouault/pdfium/tree/build
>
> I tried to use the linux script and the pdfium static lib to build. *pdfium
> build succeed.*
>
> I have few Questions:
>
> Q1: I see some 3rdpary dependency for PDFium, I don't see those LICENSES
> included, does overall including the 3rparty dependency, PDFium library
> comes to point like similar to MIT license ?.
>
> Q2. Can we do a cross compile with for PDFium, or any one tried.
>
> Q3. Has any one got an error like this (error message follows in next few
> lines) ? or I have gone wrong in build steps.
>
> I started to build GDAL gdal-2.2.0 with pdfium
>
> ./configure --with-pdfium=/home/pdfium/install
>
> libtool: link: g++ .libs/gdalinfo_bin.o -o .libs/gdalinfo
> /home/works/gdal_fresh/gdal-2.2.0/.libs/libgdal.so -L/home/pdfium/install
> -L/home/pdfium/install/lib/pdfium -lpdfium -lfpdfapi -lfpdftext
> -lformfiller -lpdfwindow -lfxedit -lfpdfdoc -lfxcodec -lfx_libopenjpeg
> -lfx_lcms2 -lfx_libjpeg -lfx_zlib -lfdrm -lfxge -lfreetype -lfx_agg -lfxcrt
> -lbigint -lz -lpthread -lrt -ldl
> /usr/bin/ld: .libs/gdalinfo: hidden symbol 
> `_ZN13CFDF_Document12CreateNewDocEv'
> in /home/pdfium/install/lib/pdfium/libfpdfapi.a(fpdf_parser_fdf.o) is
> referenced by DSO
> /usr/bin/ld: final link failed: Bad value
> collect2: error: ld returned 1 exit status
> GNUmakefile:82: recipe for target 'gdalinfo' failed
> make[1]: *** [gdalinfo] Error 1
> make[1]: Leaving directory '/home/works/gdal_fresh/gdal-2.2.0/apps'
> GNUmakefile:93: recipe for target 'apps-target' failed
> make: *** [apps-target] Error 2
>
> Thanks
> Gane R
>
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] Building GDAL on linux with minimal drivers

2017-05-10 Thread Gane R
sorry wrong post ..

On Wed, May 10, 2017 at 6:16 PM, Gane R  wrote:

> I got it working, I saw the post Handling pdfium build / integration and
> fixed it.
>
> On Wed, Mar 29, 2017 at 2:47 PM, Gane R  wrote:
>
>> Hi all,
>>
>> I am looking for building gdal with minimal set of drivers like gdal with
>> geotiff, jpg, png and sqlite gpkg
>>
>> so it should do basic warp geotiff and work with geopkg raster. I don't
>> need OGR part I need the core, alg and raster tif, gpkg, jpg and png alone
>> is enought.
>> the problem is I get a fat static lib. I want to reduce its size.
>>
>> I tried to follow the post https://trac.osgeo.org/gdal/wi
>> ki/BuildingOnUnixWithMinimizedDrivers It seems it is old.
>>
>> When I build i get error during building the apps like gdalinfo, gdalwarp
>> 
>>
>> Any suggestions
>>
>> my ogr/ogrsf_frmts/GNUmakefile  is
>> like
>>
>> include ../../GDALmake.opt
>>
>> SUBDIRS-yes:= \
>> generic rec shape
>>
>> SUBDIRS-$(HAVE_DODS)+= dods
>> SUBDIRS-$(HAVE_DWGDIRECT) += dxfdwg
>> SUBDIRS-$(HAVE_FME)+= fme
>> SUBDIRS-$(HAVE_GRASS)+= grass
>> SUBDIRS-$(HAVE_IDB)+= idb
>>
>> I get the following error
>>
>> /home/user/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined
>> reference to `TABINDFile::~TABINDFile()'
>> /home/user/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined
>> reference to `TABINDFile::FindNext(int, unsigned char*)'
>> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
>> `gdal_json_object_object_add'
>> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
>> `TABINDFile::Open(char const, char const, int)'
>> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
>> `OGRMemLayer::CreateField(OGRFieldDefn*, int)'
>> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
>> `gdal_json_object_to_file'
>> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
>> `MITABSpatialRef2CoordSys(OGRSpatialReference*)'
>> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
>> `gdal_json_tokener_free'
>> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
>> `gdal_json_object_new_int64'
>> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
>> `gdal_json_object_get_string'
>> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
>> `OGRMemLayer::GetFeatureCount(int)'
>> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
>> `TABINDFile::BuildKey(int, int)'
>> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
>> `gdal_json_object_array_add'
>> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
>> `gdal_json_object_new_object'
>> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
>> `OGRXPlane_ExtendPosition(double, double, double, double, double*,
>> double*)'
>> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
>> `OGRMemLayer::SetNextByIndex(long long)'
>> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
>> `OGRMemLayer::CreateGeomField(OGRGeomFieldDefn*, int)'
>> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
>> `OGRMemLayer::ResetReading()'
>> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
>> `OGRMemLayer::ICreateFeature(OGRFeature*)'
>> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
>> `OGRXPlane_Distance(double, double, double, double)'
>> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
>> `TABINDFile::AddEntry(int, unsigned char*, int)'
>> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
>> `gdal_json_object_put'
>> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
>> `json_object_new_double_with_precision'
>> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
>> `OGRMemLayer::TestCapability(char const*)'
>> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
>> `OGRMemLayer::DeleteFeature(long long)'
>> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
>> `gdal_json_object_new_int'
>> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
>> `TABINDFile::Close()'
>> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
>> `gdal_json_object_get_type'
>> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
>> `OGRMemLayer::GetNextFeature()'
>> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
>> `OGRMemLayer::OGRMemLayer(char const, OGRSpatialReference,
>> OGRwkbGeometryType)'
>> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
>> `TABINDFile::BuildKey(int, char const*)'
>> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
>> `gdal_json_object_from_file'
>>
>> Thanks
>> Gane
>>
>
>
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] Building GDAL on linux with minimal drivers

2017-05-10 Thread Gane R
I got it working, I saw the post Handling pdfium build / integration and
fixed it.

On Wed, Mar 29, 2017 at 2:47 PM, Gane R  wrote:

> Hi all,
>
> I am looking for building gdal with minimal set of drivers like gdal with
> geotiff, jpg, png and sqlite gpkg
>
> so it should do basic warp geotiff and work with geopkg raster. I don't
> need OGR part I need the core, alg and raster tif, gpkg, jpg and png alone
> is enought.
> the problem is I get a fat static lib. I want to reduce its size.
>
> I tried to follow the post https://trac.osgeo.org/gdal/wiki/
> BuildingOnUnixWithMinimizedDrivers It seems it is old.
>
> When I build i get error during building the apps like gdalinfo, gdalwarp
> 
>
> Any suggestions
>
> my ogr/ogrsf_frmts/GNUmakefile  is
> like
>
> include ../../GDALmake.opt
>
> SUBDIRS-yes:= \
> generic rec shape
>
> SUBDIRS-$(HAVE_DODS)+= dods
> SUBDIRS-$(HAVE_DWGDIRECT) += dxfdwg
> SUBDIRS-$(HAVE_FME)+= fme
> SUBDIRS-$(HAVE_GRASS)+= grass
> SUBDIRS-$(HAVE_IDB)+= idb
>
> I get the following error
>
> /home/user/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference
> to `TABINDFile::~TABINDFile()'
> /home/user/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference
> to `TABINDFile::FindNext(int, unsigned char*)'
> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
> `gdal_json_object_object_add'
> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
> `TABINDFile::Open(char const, char const, int)'
> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
> `OGRMemLayer::CreateField(OGRFieldDefn*, int)'
> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
> `gdal_json_object_to_file'
> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
> `MITABSpatialRef2CoordSys(OGRSpatialReference*)'
> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
> `gdal_json_tokener_free'
> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
> `gdal_json_object_new_int64'
> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
> `gdal_json_object_get_string'
> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
> `OGRMemLayer::GetFeatureCount(int)'
> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
> `TABINDFile::BuildKey(int, int)'
> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
> `gdal_json_object_array_add'
> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
> `gdal_json_object_new_object'
> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
> `OGRXPlane_ExtendPosition(double, double, double, double, double*,
> double*)'
> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
> `OGRMemLayer::SetNextByIndex(long long)'
> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
> `OGRMemLayer::CreateGeomField(OGRGeomFieldDefn*, int)'
> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
> `OGRMemLayer::ResetReading()'
> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
> `OGRMemLayer::ICreateFeature(OGRFeature*)'
> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
> `OGRXPlane_Distance(double, double, double, double)'
> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
> `TABINDFile::AddEntry(int, unsigned char*, int)'
> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
> `gdal_json_object_put'
> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
> `json_object_new_double_with_precision'
> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
> `OGRMemLayer::TestCapability(char const*)'
> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
> `OGRMemLayer::DeleteFeature(long long)'
> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
> `gdal_json_object_new_int'
> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
> `TABINDFile::Close()'
> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
> `gdal_json_object_get_type'
> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
> `OGRMemLayer::GetNextFeature()'
> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
> `OGRMemLayer::OGRMemLayer(char const, OGRSpatialReference,
> OGRwkbGeometryType)'
> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
> `TABINDFile::BuildKey(int, char const*)'
> /home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
> `gdal_json_object_from_file'
>
> Thanks
> Gane
>
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] Build PDFium with GDAL

2017-05-09 Thread Gane R
Hi all,
I am trying to build GDAL with PDFium

I saw the link
https://github.com/rouault/pdfium/tree/build

I tried to use the linux script and the pdfium static lib to build. *pdfium
build succeed.*

I have few Questions:

Q1: I see some 3rdpary dependency for PDFium, I don't see those LICENSES
included, does overall including the 3rparty dependency, PDFium library
comes to point like similar to MIT license ?.

Q2. Can we do a cross compile with for PDFium, or any one tried.

Q3. Has any one got an error like this (error message follows in next few
lines) ? or I have gone wrong in build steps.

I started to build GDAL gdal-2.2.0 with pdfium

./configure --with-pdfium=/home/pdfium/install

libtool: link: g++ .libs/gdalinfo_bin.o -o .libs/gdalinfo
/home/works/gdal_fresh/gdal-2.2.0/.libs/libgdal.so -L/home/pdfium/install
-L/home/pdfium/install/lib/pdfium -lpdfium -lfpdfapi -lfpdftext
-lformfiller -lpdfwindow -lfxedit -lfpdfdoc -lfxcodec -lfx_libopenjpeg
-lfx_lcms2 -lfx_libjpeg -lfx_zlib -lfdrm -lfxge -lfreetype -lfx_agg -lfxcrt
-lbigint -lz -lpthread -lrt -ldl
/usr/bin/ld: .libs/gdalinfo: hidden symbol
`_ZN13CFDF_Document12CreateNewDocEv' in
/home/pdfium/install/lib/pdfium/libfpdfapi.a(fpdf_parser_fdf.o) is
referenced by DSO
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
GNUmakefile:82: recipe for target 'gdalinfo' failed
make[1]: *** [gdalinfo] Error 1
make[1]: Leaving directory '/home/works/gdal_fresh/gdal-2.2.0/apps'
GNUmakefile:93: recipe for target 'apps-target' failed
make: *** [apps-target] Error 2

Thanks
Gane R
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] Building GDAL on linux with minimal drivers

2017-03-29 Thread Gane R
Hi all,

I am looking for building gdal with minimal set of drivers like gdal with
geotiff, jpg, png and sqlite gpkg

so it should do basic warp geotiff and work with geopkg raster. I don't
need OGR part I need the core, alg and raster tif, gpkg, jpg and png alone
is enought.
the problem is I get a fat static lib. I want to reduce its size.

I tried to follow the post
https://trac.osgeo.org/gdal/wiki/BuildingOnUnixWithMinimizedDrivers It
seems it is old.

When I build i get error during building the apps like gdalinfo, gdalwarp


Any suggestions

my ogr/ogrsf_frmts/GNUmakefile  is
like

include ../../GDALmake.opt

SUBDIRS-yes:= \
generic rec shape

SUBDIRS-$(HAVE_DODS)+= dods
SUBDIRS-$(HAVE_DWGDIRECT) += dxfdwg
SUBDIRS-$(HAVE_FME)+= fme
SUBDIRS-$(HAVE_GRASS)+= grass
SUBDIRS-$(HAVE_IDB)+= idb

I get the following error

/home/user/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference
to `TABINDFile::~TABINDFile()'
/home/user/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference
to `TABINDFile::FindNext(int, unsigned char*)'
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
`gdal_json_object_object_add'
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
`TABINDFile::Open(char const, char const, int)'
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
`OGRMemLayer::CreateField(OGRFieldDefn*, int)'
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
`gdal_json_object_to_file'
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
`MITABSpatialRef2CoordSys(OGRSpatialReference*)'
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
`gdal_json_tokener_free'
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
`gdal_json_object_new_int64'
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
`gdal_json_object_get_string'
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
`OGRMemLayer::GetFeatureCount(int)'
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
`TABINDFile::BuildKey(int, int)'
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
`gdal_json_object_array_add'
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
`gdal_json_object_new_object'
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
`OGRXPlane_ExtendPosition(double, double, double, double, double*, double*)'
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
`OGRMemLayer::SetNextByIndex(long long)'
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
`OGRMemLayer::CreateGeomField(OGRGeomFieldDefn*, int)'
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
`OGRMemLayer::ResetReading()'
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
`OGRMemLayer::ICreateFeature(OGRFeature*)'
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
`OGRXPlane_Distance(double, double, double, double)'
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
`TABINDFile::AddEntry(int, unsigned char*, int)'
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
`gdal_json_object_put'
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
`json_object_new_double_with_precision'
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
`OGRMemLayer::TestCapability(char const*)'
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
`OGRMemLayer::DeleteFeature(long long)'
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
`gdal_json_object_new_int'
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
`TABINDFile::Close()'
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
`gdal_json_object_get_type'
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
`OGRMemLayer::GetNextFeature()'
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
`OGRMemLayer::OGRMemLayer(char const, OGRSpatialReference,
OGRwkbGeometryType)'
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
`TABINDFile::BuildKey(int, char const*)'
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to
`gdal_json_object_from_file'

Thanks
Gane
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] ERROR 6: Failed to initialize PROJ.4 during warp

2016-09-13 Thread Gane R
gdalinfo for a file is as

Driver: PDF/Geospatial PDF
Files: C:\la plata_final_sept8-1.pdf
Size is 5100, 3300
Coordinate System is:
PROJCS["unnamed",
GEOGCS["unknown",
DATUM["WGS_1984 based datum",
SPHEROID["Sphere",6378137,0],
TOWGS84[0,0,0,0,0,0,0]],
PRIMEM["Greenwich",0],
UNIT["degree",0.0174532925199433]],
PROJECTION["Mercator_1SP"],
PARAMETER["central_meridian",0],
PARAMETER["scale_factor",0],
PARAMETER["false_easting",0],
PARAMETER["false_northing",0],
UNIT["Meter",1]]
PROJ.4 string is:
'+proj=merc +lon_0=0 +k=0 +x_0=0 +y_0=0 +a=6378137 +b=6378137
+towgs84=0,0,0,0,0,0,0 +units=m +no_defs '
Origin = (-8569762.87189676050,4652059.04486760030)
Pixel Size = (0.467090635994096,-0.467090635994096)
Metadata:
  CREATION_DATE=D:20160908221821-04'00'
  CREATOR=Esri ArcMap 10.3.1.4959
  NEATLINE=POLYGON ((-8567450.7732485905
4650589.7565349042,-8569692.8083013594
4650589.7565349042,-8569692.8083013594 4
651991.0284428885,-8567450.7732485905
4651991.0284428885,-8567450.7732485905 4650589.7565349042))
  PRODUCER=TerraGo Technologies Publisher for ArcGIS GeoPDF Export version:
7.0.0.43
Corner Coordinates:
Upper Left  (-8569762.872, 4652059.045)
Lower Left  (-8569762.872, 4650517.646)
Upper Right (-8567380.710, 4652059.045)
Lower Right (-8567380.710, 4650517.646)
Center  (-8568571.791, 4651288.345)
Band 1 Block=5100x1 Type=Byte, ColorInterp=Red
Band 2 Block=5100x1 Type=Byte, ColorInterp=Green
Band 3 Block=5100x1 Type=Byte, ColorInterp=Blue

when I try to do a gdalwarp to EPSG:3857  for the above file I get the
following  '.

ERROR 6: Failed to initialize PROJ.4 with `+proj=merc +lon_0=0 +k=0 +x_0=0
+y_0=0 +a=6378137 +b=6378137 +towgs84=0,0,0,0
,0,0,0 +units=m +no_defs. k <= 0

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

[gdal-dev] Build GDAL on iOS for iPhone

2016-08-19 Thread Gane R
Hi all,

I had a change to see the link
http://stackoverflow.com/questions/12643898/incorporating-gdal-ogr-into-an-ios-project-a-quick-guide

This was guiding to build with Xcode 4.0, the above link says that it
doesn't work with Xcode version above 4.0

I just wanted to build GDAL as static library for iPhone and use the OGR
library there in iPhone.

I modified the build script as shown here, build_gdal_ios_cus.sh

#!/bin/bash
if [ "$#" -eq 0 ]
then
echo "No parameters supplied"
else
default_prefix="${HOME}/Documents/iOS_GDAL"
prefix="${default_prefix}"
if [ "$1" == "arm" ]
then
arch="armv7"
fi
if [ "$1" == "sim" ]
then
arch="i386"
fi
if [ "$2" == "iPhone" ]
then
export PATH=$PATH:/Users/w1/ctools
echo $PATH
#extra_cflags="-m${thumb_opt:-no-thumb} -mthumb-interwork"
platform="iPhone"

platform_dir="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain"
platform_bin_dir="${platform_dir}/usr/bin"

platform_sdk_dir="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/"
prefix="${prefix}/${arch}/${platform}.platform/iPhoneOS.sdk"
echo library will be exported to $prefix
#export CC="${platform_bin_dir}/clang"
export
INCDIR="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include"
export
INCDIR1="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/c++/4.2.1/tr1"
export
INCDIRCPP="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/c++/4.2.1"
#export CFLAGS="-std=gnu99 -nostdinc -I${INCDIR} -I${INCDIRCPP}
-I${INCDIR1} -arch ${arch} -pipe -Os -gdwarf-2 -isysroot
${platform_sdk_dir}"
export CFLAGS="-std=gnu99 -nostdinc -I${INCDIR} -I${INCDIR1} -arch
${arch} -pipe -Os -gdwarf-2 -isysroot ${platform_sdk_dir}"
export LDFLAGS="-arch ${arch} -isysroot ${platform_sdk_dir}"
export CXXFLAGS="-stdlib=libstdc++ -nostdinc++ -I${INCDIR}
-I${INCDIRCPP} -arch ${arch} -pipe -Os -gdwarf-2 -isysroot
${platform_sdk_dir}"
fi
if [ "$1" == "sim" ]
then
platform="iPhoneSimulator"
fi
./configure \
--prefix="${prefix}" \
--host="${arch}-apple-darwin" \
--disable-shared \
--enable-static \
--with-unix-stdio-64=no
fi


I created symbolic links to
 armv7-apple-darwin-gcc -> /usr/bin/llvm-gcc
 armv7-apple-darwin-g++ -> /usr/bin/llvm-g++

Actually points
 llvm-g++ -> clang++
 llvm-gcc -> clang

Above script was invoked as
./build_gdal_ios_cus.sh arm iPhone

Configure succeeded.

when I run

make
I get error like this

(cd alg; /Applications/Xcode.app/Contents/Developer/usr/bin/make)
/bin/sh /Users/w1/gdal-2.1.0/libtool --mode=compile --tag=CC
armv7-apple-darwin-gcc -I/Users/w1/gdal-2.1.0/port
-I/Users/w1/gdal-2.1.0/gcore -I/Users/w1/gdal-2.1.0/alg
-I/Users/w1/gdal-2.1.0/ogr -I/Users/w1/gdal-2.1.0/ogr/ogrsf_frmts
-I/Users/w1/gdal-2.1.0/gnm -I/Users/w1/gdal-2.1.0/apps -std=gnu99 -nostdinc
-I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include
-I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/c++/4.2.1/tr1
-arch armv7 -pipe -Os -gdwarf-2 -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/
-Wall -Wdeclaration-after-statement -Wextra -Winit-self -Wunused-parameter
-Wmissing-prototypes -Wmissing-declarations -Wformat
-Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow
-Werror=vla -Wdeclaration-after-statement -Wnull-dereference
-DINTERNAL_QHULL -Ilibqhull -DOGR_ENABLED -I/Users/w1/gdal-2.1.0/port
-DGDAL_COMPILATION  -c -o delaunay.lo delaunay.c
libtool: compile:  armv7-apple-darwin-gcc -I/Users/w1/gdal-2.1.0/port
-I/Users/w1/gdal-2.1.0/gcore -I/Users/w1/gdal-2.1.0/alg
-I/Users/w1/gdal-2.1.0/ogr -I/Users/w1/gdal-2.1.0/ogr/ogrsf_frmts
-I/Users/w1/gdal-2.1.0/gnm -I/Users/w1/gdal-2.1.0/apps -std=gnu99 -nostdinc
-I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include
-I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/c++/4.2.1/tr1
-arch armv7 -pipe -Os -gdwarf-2 -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/
-Wall -Wdeclaration-after-statement -Wextra -Winit-self -Wunused-parameter
-Wmissing-prototypes -Wmissing-declarations -Wformat
-Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow
-Werror=vla -Wdeclaration-after-statement -Wnull-dereference
-DINTERNAL_QHULL -Ilibqhull -DOGR_ENABLED -I/Users/w1/gdal-2.1.0/port
-DGDAL_COMPILATION -c delaunay.c -o delaunay.o
In file inc

[gdal-dev] Build GDAL for android via NDK

2016-06-10 Thread Gane R
Hi all,

I saw a link for Building GDAL for android on linux

https://trac.osgeo.org/gdal/wiki/BuildingForAndroid

Is it updated ?, I tried to build on centOS, It took the android linux
compiler. The make resulted in a error. gdal 2.1.0

Is there any updated document or any one having personal experience in
building GDAL for android or any documentation that has worked will be of
great help.


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

[gdal-dev] Get a List of tiles source name from the gpkg_content

2016-05-19 Thread Gane R
I see the usage of the gdalinfo for the gpkg with multiple tile source as
Subdataset,
I also saw the source code of gdalinfo getting the subdataset





*Q1: Can I get a list of tiles source name (table_name) in gpkg_contents
data_type as tiles?Is there any API call*
*or only by the following code ?*

char **papszSubdatasets = GDALGetMetadata( hDataset, "SUBDATASETS" );
int nSubdatasets = CSLCount( papszSubdatasets );

char szKeyName[1024];
char *pszSubdatasetName;

snprintf( szKeyName, sizeof(szKeyName),
  "SUBDATASET_%d_NAME", psOptionsForBinary->nSubdataset
);
szKeyName[sizeof(szKeyName) - 1] = '\0';
pszSubdatasetName =
CPLStrdup( CSLFetchNameValue( papszSubdatasets, szKeyName )
);

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

Re: [gdal-dev] Creating a GeoPackage with multiple tile raster source in gdal 2.1.0

2016-05-19 Thread Gane R
thanks for your reply,

I see the subdatasets name in gdalinfo.

Q1:
However how do I know the name of a tile raster if the GPKG has only one
tile raster source,I want to get the name as in gpkg_contents table.


Gane


On Tue, May 17, 2016 at 8:49 PM, Even Rouault 
wrote:

> Le mardi 17 mai 2016 17:08:32, Gane R a écrit :
> > Hi all,
> >
> > I am using a pre-build version of gdal 2.1.0. I am able to create GeoTIFF
> > to GeoPackage using gdal_translate.
> >
> > I see from the Geopackage specification I understand that Geopackage can
> > have multiple tile sources, If so
> >
> > Q1: How to I add a tilesource to an exisiting geopackage from a GeoTIFF ?
> > any command line or any workflow sequence will be of great help.
>
> This is documented at http://gdal.org/drv_geopackage_raster.html . See
> APPEND_SUBDATASET=YES creation option,
> possibly combined with RASTER_TABLE.
>
> $ gdal_translate byte1.tif out.gpkg -of GPKG -co RASTER_TABLE=table1
> Input file size is 20, 20
> 0...10...20...30...40...50...60...70...80...90...100 - done.
>
> $ gdal_translate byte2.tif out.gpkg -of GPKG -co APPEND_SUBDATASET=YES -co
> RASTER_TABLE=table2
> Input file size is 20, 20
> 0...10...20...30...40...50...60...70...80...90...100 - done.
>
> >
> > Q2: If a geopackage has multiple Geopackage tile raster, If I wish to
> > convert any one to a geotiff how will I do ? Should I used OGR Select
> layer
> > or how ??
>
> $ gdalinfo out.gpkg
> Driver: GPKG/GeoPackage
> Files: out.gpkg
> Size is 512, 512
> Coordinate System is `'
> Subdatasets:
>   SUBDATASET_1_NAME=GPKG:out.gpkg:table1
>   SUBDATASET_1_DESC=table1 - table1
>   SUBDATASET_2_NAME=GPKG:out.gpkg:table2
>   SUBDATASET_2_DESC=table2 - table2
> Corner Coordinates:
> Upper Left  (0.0,0.0)
> Lower Left  (0.0,  512.0)
> Upper Right (  512.0,0.0)
> Lower Right (  512.0,  512.0)
> Center  (  256.0,  256.0)
>
> $ gdal_translate GPKG:out.gpkg:table1 table1.tif
> Input file size is 20, 20
> 0...10...20...30...40...50...60...70...80...90...100 - done.
>
> Even
>
> --
> Spatialys - Geospatial professional services
> http://www.spatialys.com
>
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] Creating a GeoPackage with multiple tile raster source in gdal 2.1.0

2016-05-17 Thread Gane R
Hi all,

I am using a pre-build version of gdal 2.1.0. I am able to create GeoTIFF
to GeoPackage using gdal_translate.

I see from the Geopackage specification I understand that Geopackage can
have multiple tile sources, If so

Q1: How to I add a tilesource to an exisiting geopackage from a GeoTIFF ?
any command line or any workflow sequence will be of great help.

Q2: If a geopackage has multiple Geopackage tile raster, If I wish to
convert any one to a geotiff how will I do ? Should I used OGR Select layer
or how ??

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

[gdal-dev] Creating multiple zooms in MBTiles generation

2016-05-13 Thread Gane R
Hi,

I was working with gdal 2.1.0, I was trying to convert a geopackage raster
to mbtiles, I used GDALCreateCopy to convert the dataset to mbtiles.

On http://www.gdal.org/frmt_mbtiles.html

I saw an example to use gdal_translate and then to use gdaladdo to
overviews

Q1: I got only one level of zoom level in the mbtiles. Is there any
creation option to say to generate mbtiles from a to b zooms ? or I have to
do by build overviews ???


Q2: I tried to convert the Geopackage ERDC_Whitehorse_GeoPackage.gpkg size
111 MB in Web Mercator EPSG:3857 from the url

http://www.geopackage.org/#sampledata

(GeoPackage contains a raster tile pyramid that was created with free
imagery obtained from Geomatics Yukon and covers an approximately 30
square-kilometer area centered on the City of Whitehorse. It uses the Web
Mercator (EPSG:3857) coordinate reference system, 256x256 pixel tiles,
contains zoom levels 11-18, and is 110.8MB in size)



*The resulting mbtiles was to 621MB Is this due to default PNG zlevel
settings or any thing can be done on this ?*
Thanks
Gane
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] Using TILE_SCHEME option converting GeoTIFF to GeoPackage

2016-05-12 Thread Gane R
Hi all,

Here is a link to Geopackage sample name ERDC Whitehorse GeoPackage.gpkg
at
https://portal.opengeospatial.org/files/63156

I tried like this

gdal_translate.exe -of GPKG "sample.tif" "sample.gpkg" -co *TILING_SCHEME*
=PseudoTMS_GlobalMercator

I got only one zoom level in the output Geopackage, from the input GeoTIFF
here example sample.tif

*Q1:*
*I want to know how do I convert a GeoTIFF to below mention tile Schemes I
tried, correct If I am wrong.*
I have gdal 2.1.0 pre-built binary with to see with the latest version.

TILE_SCHEME

1 CUSTOM
2 GoogleCRS84Quad
3 GoogleMapsCompatible
4 InspireCRS84Quad
5 PseudoTMS_GlobalGeodetic
6 PseudoTMS_GlobalMercator


*I see there are 3 variations*
1. Tile Format: PNG, JPEG, WEBP
2. Tile Scheme:

   - CUSTOM
   - GoogleCRS84Quad
   - GoogleMapsCompatible
   - InspireCRS84Quad
   - PseudoTMS_GlobalGeodetic
   - PseudoTMS_GlobalMercator

3. Projection parameter at gpkg_contents srs_id : epsg code


*Q2:Is that an raster tile may be in other EPSG code other than 3857 and
4326 Not clear when reading the Geopackage specification and is it
implemented in GDAL ?*
Thanks
Gane
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] prebuilt GDAL 2.0.2 windows binary

2016-05-05 Thread Gane R
I see a link to download the source

http://download.osgeo.org/gdal/2.0.2/gdal202.zip

when can I find a prebuilt version of GDAL 2.0.2

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

[gdal-dev] Question on mbtiles format

2016-05-03 Thread Gane R
I saw the code on gdal-2.1.0\frmts\mbtiles\mbtilesdataset.cpp I want know
where a blob is written into mbtiles.

I don't see any INSERT SQL statement for inserting a tile blob

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

[gdal-dev] GDALDatasetRasterIO

2016-05-02 Thread Gane R
Looking for function to do fast IO across the two datasets

Is GDALDatasetRasterIO already best or any other available.
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] Progress and cancel of gdalwarp program

2016-05-02 Thread Gane R
I got it and saw the progress and cancel working,
thanks

Gane

On Tue, Apr 26, 2016 at 3:33 PM, Even Rouault 
wrote:

> Le mardi 26 avril 2016 11:58:22, Gane R a écrit :
> > [1] Is is possible to get the progress 10...20... into a variable and [2]
> > is it possible to cancel the warp progress, say cancel the operation.
>
> See how it is done in
> https://svn.osgeo.org/gdal/trunk/gdal/port/cpl_progress.cpp
>
> >
> > I saw the documentation and sample in JPEG CreateCopy, gdal_translate and
> > GDALDummyProgress used in quiet operation.
> >
> >
> > Thanks
> > Gane
> >
> > On Tue, Apr 26, 2016 at 3:13 PM, Even Rouault <
> even.roua...@spatialys.com>
> >
> > wrote:
> > > Le mardi 26 avril 2016 11:36:46, Gane R a écrit :
> > > > Is that any way to get the progress of the gdalwarp and make a cancel
> > > > request of gdalwarp.
> > > >
> > > > in gdal 1.10.1
> > > > In gdalwarp.cpp
> > > >
> > > >  I see psWO->pfnProgress = GDALTermProgress;
> > > >
> > > > This for only progress right ?
> > >
> > > No, if the function returns FALSE, the processing is stopped.
> > >
> > > > I want to have function called with the progress displayed and also
> > >
> > > check,
> > >
> > > > if cancel is requested.
> > > >
> > > > Gane
> > >
> > > --
> > > Spatialys - Geospatial professional services
> > > http://www.spatialys.com
>
> --
> Spatialys - Geospatial professional services
> http://www.spatialys.com
>
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] Multi threaded Data access from a Dataset

2016-05-02 Thread Gane R
Is is possible to access a dataset from different threads with
GDALDatasetRasterIO is it thread safe.
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] Progress and cancel of gdalwarp program

2016-04-26 Thread Gane R
[1] Is is possible to get the progress 10...20... into a variable and [2]
is it possible to cancel the warp progress, say cancel the operation.

I saw the documentation and sample in JPEG CreateCopy, gdal_translate and
GDALDummyProgress used in quiet operation.


Thanks
Gane

On Tue, Apr 26, 2016 at 3:13 PM, Even Rouault 
wrote:

> Le mardi 26 avril 2016 11:36:46, Gane R a écrit :
> > Is that any way to get the progress of the gdalwarp and make a cancel
> > request of gdalwarp.
> >
> > in gdal 1.10.1
> > In gdalwarp.cpp
> >  I see psWO->pfnProgress = GDALTermProgress;
> >
> > This for only progress right ?
>
> No, if the function returns FALSE, the processing is stopped.
>
> >
> > I want to have function called with the progress displayed and also
> check,
> > if cancel is requested.
> >
> > Gane
>
> --
> Spatialys - Geospatial professional services
> http://www.spatialys.com
>
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] Progress and cancel of gdalwarp program

2016-04-26 Thread Gane R
Is that any way to get the progress of the gdalwarp and make a cancel
request of gdalwarp.

in gdal 1.10.1
In gdalwarp.cpp
 I see psWO->pfnProgress = GDALTermProgress;

This for only progress right ?

I want to have function called with the progress displayed and also check,
if cancel is requested.

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

[gdal-dev] Customizing DLL name used in gdal_i.lib

2016-04-18 Thread Gane R
I want to have the dll generated as gdal_2_0_2.dll for gdal 2.0.2 build
and this name has to used in gdal_i.lib

So event the apps like gdalwarp.exe will look for gdal_2_0_2.dll and not
gdal200.dll


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

Re: [gdal-dev] gdalwarp with PHOTOMETRIC=YCBCR on grey input TIF image

2016-03-29 Thread Gane R
Sorry I got one sample and it failed withe the -co PHOTOMETRIC=YCBCR on
grey TIF with 1 raster band.

Thanks
Gane

On Tue, Mar 29, 2016 at 4:50 PM, Gane R  wrote:

> I am using gdalwarp withe following option to convert a tif to compressed
> TIF
>
> -co COMPRESS=JPEG -co JPEG_QUALITY=80 -co TILED=YES -co PHOTOMETRIC=YCBCR
> -co BLOCKYSIZE=512 -co BLOCKXSIZE=512
>
> Will the PHOTOMETRIC option work on grey tif images. Unfortunately I don't
> have such data set.
>
> If any one have tried to convert a Grey TIF to compressed TIF with
> COMPRESS=JPEG
>
> Thanks,
> Gane
>
>
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] gdalwarp with PHOTOMETRIC=YCBCR on grey input TIF image

2016-03-29 Thread Gane R
I am using gdalwarp withe following option to convert a tif to compressed
TIF

-co COMPRESS=JPEG -co JPEG_QUALITY=80 -co TILED=YES -co PHOTOMETRIC=YCBCR
-co BLOCKYSIZE=512 -co BLOCKXSIZE=512

Will the PHOTOMETRIC option work on grey tif images. Unfortunately I don't
have such data set.

If any one have tried to convert a Grey TIF to compressed TIF with
COMPRESS=JPEG

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

[gdal-dev] GeoTIF has not text while gdalwarp (GeoPDF to GeoTIF)

2016-02-22 Thread Gane R
I am trying to do a gdalwarp on linux with poppler, fontconfig and
freetype2 built in gdal

I get the following error

ERROR 1: Couldn't find a font

when converting from GeoPDF to GeoTIF

Resulting GeoTIF doesn't have some text labels in the PDF.

Any suggestion while building gdal


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

Re: [gdal-dev] Get EPSG code from WKT

2016-02-19 Thread Gane R
Here is a link to the GeoPDF

https://drive.google.com/file/d/0B4shTM1bPS5TTk00aGIwUkhfd2s/view?usp=sharing

gdalwarp.exe -t_srs EPSG:3857 "Landuse(P)_VNY.pdf" "Landuse(P)_VNY.tif"

Resulting TIF is offset from the actual location, how do I find the correct
EPSG code for this kind of PDF.

but when -s_srs EPSG:26945 is part of the command line it works fine, how
do I know the the correct EPSG code from the WKT as there are more than one
AUTHORITY code with EPSG value ?

gdalinfo Landuse(P)_VNY.pdf

Driver: PDF/Geospatial PDF
Files: Landuse(P)_VNY.pdf
Size is 1275, 1650
Coordinate System is:
PROJCS["NAD83 / California zone 5",
GEOGCS["NAD83",
DATUM["North_American_Datum_1983",
SPHEROID["GRS 1980",6378137,298.257222101,
AUTHORITY["EPSG","7019"]],
TOWGS84[0,0,0,0,0,0,0],
AUTHORITY["EPSG","6269"]],
PRIMEM["Greenwich",0,
AUTHORITY["EPSG","8901"]],
UNIT["degree",0.0174532925199433,
AUTHORITY["EPSG","9122"]],
AUTHORITY["EPSG","4269"]],
PROJECTION["Lambert_Conformal_Conic_2SP"],
PARAMETER["standard_parallel_1",35.47],
PARAMETER["standard_parallel_2",34.03],
PARAMETER["latitude_of_origin",33.5],
PARAMETER["central_meridian",-118],
PARAMETER["false_easting",609601.2192024384],
PARAMETER["false_northing",152400.3048006096],
UNIT["Meter",1],
AXIS["X",EAST],
AXIS["Y",NORTH],
AUTHORITY["EPSG","26945"]]
Origin = (1954721.37700424600,580804.85723362758)
Pixel Size = (6.774914195278887,-6.774914195278887)
Metadata:
  CREATION_DATE=D:20150428111946Z
  CREATOR=TerraGo Technologies Publisher for ArcGIS GeoPDF Export version:
6.5.1.12
  NEATLINE=POLYGON ((1963054.9640081285
571963.11863109597,1955025.6468122969 571963.11863109597,1955025.6468122969
580500.62045958859,1963054.9640081285 580500.62045958859,1963054.9640081285
571963.11863109597))
Corner Coordinates:
Upper Left  ( 1954721.377,  580804.857) (102d56'40.35"W, 36d27' 6.25"N)
Lower Left  ( 1954721.377,  569626.249) (102d57'47.23"W, 36d21' 7.77"N)
Upper Right ( 1963359.393,  580804.857) (102d50'57.53"W, 36d26'24.32"N)
Lower Right ( 1963359.393,  569626.249) (102d52' 4.82"W, 36d20'25.88"N)
Center  ( 1959040.385,  575215.553) (102d54'22.49"W, 36d23'46.09"N)
Band 1 Block=1275x1 Type=Byte, ColorInterp=Red
Band 2 Block=1275x1 Type=Byte, ColorInterp=Green
Band 3 Block=1275x1 Type=Byte, ColorInterp=Blue

On Thu, Feb 18, 2016 at 7:18 PM, Jukka Rahkonen <
jukka.rahko...@maanmittauslaitos.fi> wrote:

> Gane R  gmail.com> writes:
>
>
> > When I try to convert to different projection using the gdalwarp without
> specifying the -s_srs option it reprojects to a different location, for
> some
> raster it projects to a correct location.
> >
> > But when try to run gdalinfo and I see a lot of EPSG code, when I use the
> last AUTHORITY EPSG code as -s_srs option the above mention problem is
> solved.
> >
> > Is it that I have use the last AUTHORITY EPSG code or any thing will help
> >
> > Expecting your suggestion
>
> Expecting some sample data that could be used for reproducing the problem.
>
> -Jukka Rahkonen-
>
> ___
> gdal-dev mailing list
> gdal-dev@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] Get EPSG code from WKT

2016-02-18 Thread Gane R
When I try to convert to different projection using the gdalwarp
*without *specifying
the* -s_srs option* it reprojects to a *different location*, for some
raster it projects to a correct location.

But when try to run gdalinfo and I see a lot of EPSG code, when I use the
last AUTHORITY EPSG code as -s_srs option the above mention problem is
solved.

Is it that I have use the last AUTHORITY EPSG code or any thing will help

Expecting your suggestion

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

Re: [gdal-dev] Question on using SetFID

2016-02-17 Thread Gane R
I am using gdal-1.11.3

I see the nFID have the value at debug when the
poFeature->setFID(100);
is called.
then poLayer->CreateFeature( poFeature ) is called.

Thanks
Gane



On Wed, Feb 17, 2016 at 3:37 PM, Even Rouault 
wrote:

> Le mercredi 17 février 2016 08:33:02, Gane R a écrit :
> > Hi all,
> >
> > I am creating a layer for geopackage, But I don't see the fid I set using
> > setFID here is my code flow.
> >
> > Step1:
> > poLayer = OGRDataSource::CreateLayer();
> >
> > Step2:
> > adding all the fields
> >
> > Step3:
> > poFeature = OGRFeature::CreateFeature( poLayer->GetLayerDefn() );
> >
> > then
> > Step 4:
> > poFeature->SetFID(100);
> >  setting to a layer using
> >  poLayer->CreateFeature( poFeature )
> >
> > Step 5:
> >
> > OGRFeature::DestroyFeature( poFeature );
> > then destroying the poFeature,
> > again creating the feature using Step 3:
> >
> > Every thing is fine but the feature id is set to start from 1, but I was
> > expecting
> > as 100 for the code flow above,
> >
> > did I miss some GDAL API call ?.
>
> Do you use GDAL 2.0 or above ? The GPKG driver only takes into account
> user-
> set FID in CreateFeature() starting with GDAL 2.0
>
> >
> > Thanks
> > Gane
>
> --
> Spatialys - Geospatial professional services
> http://www.spatialys.com
>
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] Question on using SetFID

2016-02-16 Thread Gane R
Hi all,

I am creating a layer for geopackage, But I don't see the fid I set using
setFID here is my code flow.

Step1:
poLayer = OGRDataSource::CreateLayer();

Step2:
adding all the fields

Step3:
poFeature = OGRFeature::CreateFeature( poLayer->GetLayerDefn() );

then
Step 4:
poFeature->SetFID(100);
 setting to a layer using
 poLayer->CreateFeature( poFeature )

Step 5:

OGRFeature::DestroyFeature( poFeature );
then destroying the poFeature,
again creating the feature using Step 3:

Every thing is fine but the feature id is set to start from 1, but I was
expecting
as 100 for the code flow above,

did I miss some GDAL API call ?.

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

[gdal-dev] PDF Projection support

2016-01-28 Thread Gane R
Here is a link for the PDF
https://drive.google.com/file/d/0B4shTM1bPS5TaVZ2OWxxR0MtM2s/view?usp=sharing

and the gdalinfo is as follows, Does this projection is supported by the
PDF driver.

Driver: PDF/Geospatial PDF
Files:Plant_GIS_ANSI_D_View4_Treatment_50Scale.pdf
Size is 5100, 3300
Coordinate System is:
PROJCS["unnamed",
GEOGCS["unknown",
DATUM["NAD_1983_2011",
SPHEROID["GRS_1980",6378137,298.257222101],
TOWGS84[-0.9738,1.9453,0.5486,0,0,0,0]],
PRIMEM["Greenwich",0],
UNIT["degree",0.0174532925199433]],
PROJECTION["Transverse_Mercator"],
PARAMETER["latitude_of_origin",24.33],
PARAMETER["central_meridian",-82],
PARAMETER["scale_factor",0.411764705882],
PARAMETER["false_easting",20],
PARAMETER["false_northing",0],
UNIT["Meter",1]]
GeoTransform =
  199522.582988026, 0.07895862924306769, 0.06393943724398152
  305449.4714977542, 0.06393943724398152, -0.07895862924306769
Metadata:
  CREATION_DATE=D:20160113122026-05'00'
  CREATOR=Esri ArcMap 10.3.0.4322
  NEATLINE=POLYGON ((200064.22163200931
305474.83433632617,199733.36708641629 305206.91360799421,199538.33690883874
305447.75581972388,199869.19145443285 305715.67654805584,200064.22163200931
305474.83433632617))
  PRODUCER=TerraGo Technologies Publisher for ArcGIS GeoPDF Export version:
6.8.2.100
Corner Coordinates:
Upper Left  (  199522.583,  305449.471) ( 82d 0'17.33"W, 27d 5'26.39"N)
Lower Left  (  199733.583,  305188.908) ( 82d 0' 9.67"W, 27d 5'17.93"N)
Upper Right (  199925.272,  305775.563) ( 82d 0' 2.71"W, 27d 5'36.99"N)
Lower Right (  200136.272,  305514.999) ( 81d59'55.05"W, 27d 5'28.52"N)
Center  (  199829.428,  305482.235) ( 82d 0' 6.19"W, 27d 5'27.46"N)
Band 1 Block=5100x1 Type=Byte, ColorInterp=Red
Band 2 Block=5100x1 Type=Byte, ColorInterp=Green
Band 3 Block=5100x1 Type=Byte, ColorInterp=Blue

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

[gdal-dev] US Survey Ft being used for a projection in PDF

2016-01-27 Thread Gane R
Here is a link to PDF
https://drive.google.com/file/d/0B4shTM1bPS5TaVZ2OWxxR0MtM2s/view?usp=sharing


I remember I got the US Ft unit fix for PDF driver from trunk.

So will that fix will be sufficient to handle PDFs with "US Survey Ft being
used for a projection"

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

Re: [gdal-dev] Build gdal with sqlite3 support on linux

2016-01-25 Thread Gane R
Thanks for you timely response

I got it detected, what should be used for building GDAL with Windows,

For Windows I used an amagation version I wrote script to build as static
lib and ignored the default libs and got a static lib and build GDAL with
sqlite3. It worked, its that fine on windows.

On Mon, Jan 25, 2016 at 3:33 PM,  wrote:

> On Mon, 25 Jan 2016 15:20:13 +0530, Gane R wrote:
>
>> I got a source of sqlite3 from amalgation. I compiled on linux to get
>> a static lib say libsqlite3.a
>>
>>
> Hi Gene,
>
> starting from the amalgamation sources definitely isn't the best option,
> because  this way libsqlite3 will not be correctly installed.
> (amalgamation is mainly intended for simple self-standing applications
> directly linking the sqlite binary object code).
>
> you simply have to download the "autoconf" sources [1] then performing
> a canonical build and that's all:
>
> ./configure
> make
> sudo make install
>
> [1] https://www.sqlite.org/2016/sqlite-autoconf-3100200.tar.gz
>
> bye Sandro
> ___
> gdal-dev mailing list
> gdal-dev@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] Build gdal with sqlite3 support on linux

2016-01-25 Thread Gane R
I got a source of sqlite3 from amalgation. I compiled on linux to get a
static lib say libsqlite3.a

I want to build GDAL with sqlite3 support,

so I tried to use ./configure --with-sqlite3=path

the path has include folder and lib folder (as subfolder) containing the
libsqlite3.a

gdal failed to detect the sqlite3 in that specified location.

Is that I am doing correct. Can anyone point be the right direction, this
will be of great help.

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

Re: [gdal-dev] Building gdal with sqlite3 for windows

2016-01-20 Thread Gane R
Is that I have to build the sqlite3 separately and then build gdal, does
gdal have an sqlite internally like png (libpng)  if so how can it be used.

Thanks


On Wed, Jan 20, 2016 at 3:42 PM, Gane R  wrote:

> I was looking at the makefile.vc and docs and visual studio reference I
> was not able to create sqlite3_i.lib do I miss something apart from linker
> optimization flags
>
> cl /c sqlite3.c
> link /nologo /dll sqlite3.obj /out:sqlite3.dll /implib:sqlite3_i.lib
>
> My goal is make gdal access geopackage so I want to use this sqlite3 in
> nmake.opt, correct me If I am wrong.
>
> On Wed, Jan 20, 2016 at 2:48 PM, Even Rouault 
> wrote:
>
>> Le mercredi 20 janvier 2016 09:56:20, Gane R a écrit :
>> > Where do I get the sqlite3 with include header files, stub library
>> > sqlite3_i.lib and dll.
>> >
>> > Do I have to build it, If so I tried the following
>> >
>> > I have a sql-amalgation version.
>> > I tried to look the documentation on sqlite website for creating a
>> > sqlite3.dll
>> >
>> > using the following command
>> > cl sqlite3.c -link -dll -out:sqlite3.dll
>> >
>> > I got that, but sqlite3_i.lib was not there.
>>
>>
>> You may need to use the link program itself with /implib
>>
>> Taken from GDAL's makefile.vc :
>>
>> $(GDAL_DLL): staticlib
>> link /nologo /dll $(OGR_INCLUDE) $(BASE_INCLUDE) $(LIBOBJ) \
>> $(EXTERNAL_LIBS) gcore\Version.res \
>>  /out:$(GDAL_DLL) /implib:gdal_i.lib $(LINKER_FLAGS)
>>
>>
>> So likely in 2 steps :
>> cl /c sqlite3.c (you should probably add optimization options too)
>> link /dll sqlite3.obj /out:sqlite3.dll /implib:sqlite3_i.lib
>>
>>
>> --
>> Spatialys - Geospatial professional services
>> http://www.spatialys.com
>>
>
>
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] Building gdal with sqlite3 for windows

2016-01-20 Thread Gane R
I was looking at the makefile.vc and docs and visual studio reference I was
not able to create sqlite3_i.lib do I miss something apart from linker
optimization flags

cl /c sqlite3.c
link /nologo /dll sqlite3.obj /out:sqlite3.dll /implib:sqlite3_i.lib

My goal is make gdal access geopackage so I want to use this sqlite3 in
nmake.opt, correct me If I am wrong.

On Wed, Jan 20, 2016 at 2:48 PM, Even Rouault 
wrote:

> Le mercredi 20 janvier 2016 09:56:20, Gane R a écrit :
> > Where do I get the sqlite3 with include header files, stub library
> > sqlite3_i.lib and dll.
> >
> > Do I have to build it, If so I tried the following
> >
> > I have a sql-amalgation version.
> > I tried to look the documentation on sqlite website for creating a
> > sqlite3.dll
> >
> > using the following command
> > cl sqlite3.c -link -dll -out:sqlite3.dll
> >
> > I got that, but sqlite3_i.lib was not there.
>
>
> You may need to use the link program itself with /implib
>
> Taken from GDAL's makefile.vc :
>
> $(GDAL_DLL): staticlib
> link /nologo /dll $(OGR_INCLUDE) $(BASE_INCLUDE) $(LIBOBJ) \
> $(EXTERNAL_LIBS) gcore\Version.res \
>  /out:$(GDAL_DLL) /implib:gdal_i.lib $(LINKER_FLAGS)
>
>
> So likely in 2 steps :
> cl /c sqlite3.c (you should probably add optimization options too)
> link /dll sqlite3.obj /out:sqlite3.dll /implib:sqlite3_i.lib
>
>
> --
> Spatialys - Geospatial professional services
> http://www.spatialys.com
>
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] Building gdal with sqlite3 for windows

2016-01-20 Thread Gane R
Where do I get the sqlite3 with include header files, stub library
sqlite3_i.lib and dll.

Do I have to build it, If so I tried the following

I have a sql-amalgation version.
I tried to look the documentation on sqlite website for creating a
sqlite3.dll

using the following command
cl sqlite3.c -link -dll -out:sqlite3.dll

I got that, but sqlite3_i.lib was not there.
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] GeoPDF vs GeoSpatial PDF

2016-01-10 Thread Gane R
I have been browsing on the internet for finding the difference
between GeoPDF and Geospatial PDF. It seems that the terms geopdf and
geospatial are interchangeable used. Is the both geopdf and geospatial
are same, if so the PDF driver in gdal will handle  geopdf and
geospatial PDF.

Suggestions and references are appreciated.
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] PDF when converted to GeoTIFF maps to location offset

2016-01-10 Thread Gane R
Thanks for your timely response. I got the offset issue seem to work
fine with above quotes revision. Thank-you once again.


On 1/8/16, Gane R  wrote:
>
>
> On Fri, Jan 8, 2016 at 3:10 PM, Even Rouault 
> wrote:
>
>> Le vendredi 08 janvier 2016 10:33:06, Gane R a écrit :
>> > Thanks for the giving me the revision
>> > I saw it and it seems that I already have that part of code with me
>> > that
>> > non rotation cases
>> >
>> > I have gdal2.0.1 with all the PDF fixes (for I sent PDF and got fixed
>> > on
>> > trunk).
>> >
>> > I have the (above mentioned revision), is there any other fix done
>> > apart
>> > from the PDF I have sent to be seem that it work with trunk
>>
>> Some fixes are in trunk only, not in the GDAL 2.0.X branch
>>
>> >
>> > I got a copy of the trunk and tried to build a version and both the
>> version
>> > seem to look same by visual inspection.
>> > Can plz confirm that the above fix is the fix for this shift.
>> >
>> > Thanks
>> > Gane
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> > On Thu, Jan 7, 2016 at 7:17 PM, Even Rouault
>> > > >
>> >
>> > wrote:
>> > > Le jeudi 07 janvier 2016 14:33:29, Gane R a écrit :
>> > > > Can you please point to that revision on trunk so that I can verify
>> > > >
>> If
>> > > > I have the change with me.
>> > >
>> > > I guess this must be this one :
>> > > https://trac.osgeo.org/gdal/changeset/31638/
>> > > But just update to the latest one to also get the yesterday fix.
>> > >
>> > > > Thanks
>> > > > Gane
>> > > >
>> > > > On Thu, Jan 7, 2016 at 3:21 PM, Even Rouault
>> > > > > > > >
>> > > > wrote:
>> > > > > Le jeudi 07 janvier 2016 08:49:57, Gane R a écrit :
>> > >
>> https://drive.google.com/file/d/0B4shTM1bPS5TWkVtWDNhMEZtNE0/view?usp=sha
>> > >
>> > > > > ri
>> > > > >
>> > > > > > ng
>> > > > > >
>> > > > > > Here is a link to another PDF with I experience offset shift.
>> > > > > >
>> > > > > > I have not yet tested with prev fix on truk, Will that fix
>> resolve
>> > >
>> > > this
>> > >
>> > > > > > also .. or this is something else causing it.
>> > > > >
>> > > > > Eh, you should do your homework ;-)
>> > > > > Overlays nicely with a basemap with trunk. Nothing to do with
>> > >
>> > > yesterday's
>> > >
>> > > > > fix
>> > > > > but with one committed of a few weeks ago.
>> > > > >
>> > > > > --
>> > > > > Spatialys - Geospatial professional services
>> > > > > http://www.spatialys.com
>> > >
>> > > --
>> > > Spatialys - Geospatial professional services
>> > > http://www.spatialys.com
>>
>> --
>> Spatialys - Geospatial professional services
>> http://www.spatialys.com
>>
>
>
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] PDF when converted to GeoTIFF maps to location offset

2016-01-06 Thread Gane R
Here is a link to the file

https://drive.google.com/file/d/0B4shTM1bPS5TMDhNMUpkUC04RlE/view?usp=sharing

This the gdalinfo of the TIF file

Size is 5210, 3498
Coordinate System is:
PROJCS["WGS 84 / Pseudo-Mercator",
GEOGCS["WGS 84",
DATUM["WGS_1984",
SPHEROID["WGS 84",6378137,298.257223563,
AUTHORITY["EPSG","7030"]],
AUTHORITY["EPSG","6326"]],
PRIMEM["Greenwich",0],
UNIT["degree",0.0174532925199433],
AUTHORITY["EPSG","4326"]],
PROJECTION["Mercator_1SP"],
PARAMETER["central_meridian",0],
PARAMETER["scale_factor",1],
PARAMETER["false_easting",0],
PARAMETER["false_northing",0],
UNIT["metre",1,
AUTHORITY["EPSG","9001"]],
EXTENSION["PROJ4","+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0
+lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext
+no_defs"],
AUTHORITY["EPSG","3857"]]
Origin = (-9640275.52564074840,3125396.83250657610)
Pixel Size = (0.113838781929125,-0.113838781929125)
Metadata:
  AREA_OR_POINT=Area
  CREATION_DATE=D:20151203110313-05'00'
  CREATOR=Esri ArcMap 10.3.0.4322
  NEATLINE=POLYGON ((199823.31714503843
305110.51562091778,199397.58689357759 305110.51562091778,199397.58689357759
305420.42164072924,199823.31714503843 305420.42164072924,199823.31714503843
305110.51562091778))
  PRODUCER=TerraGo Technologies Publisher for ArcGIS GeoPDF Export version:
6.7.3.71
Image Structure Metadata:
  INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left  (-9640275.526, 3125396.833) ( 86d36' 0.25"W, 27d 0'55.47"N)
Lower Left  (-9640275.526, 3124998.624) ( 86d36' 0.25"W, 27d 0'43.99"N)
Upper Right (-9639682.426, 3125396.833) ( 86d35'41.07"W, 27d 0'55.47"N)
Lower Right (-9639682.426, 3124998.624) ( 86d35'41.07"W, 27d 0'43.99"N)
Center  (-9639978.976, 3125197.728) ( 86d35'50.66"W, 27d 0'49.73"N)
Band 1 Block=5210x1 Type=Byte, ColorInterp=Red
Band 2 Block=5210x1 Type=Byte, ColorInterp=Green
Band 3 Block=5210x1 Type=Byte, ColorInterp=Blue

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

[gdal-dev] Is there Any limitation in name of the file name in CreateDataSource in Filegeodb

2016-01-05 Thread Gane R
It is weired, when I call CreateDataSource as I had discussed earlier, I
send a large filename with absoluted path to it. I causes a crash at when
called from java via jni


Is there any limitation in the name of the filename when passing to
CreateDataSource call.

poDrv->CreateDataSource <= example
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] crashes at CreateDataSource

2016-01-05 Thread Gane R
Does the CreateDataSource for filegeodb support filename.gdb with long path
before

CreateDataSource("D:\\temp\\212121\\121212134345\\sample.gdb",NULL);
Gane

On Tue, Jan 5, 2016 at 3:58 PM, Even Rouault 
wrote:

> Le mardi 05 janvier 2016 11:13:38, Gane R a écrit :
> > Can send the full python script of above so I can verify that I am on
> right
> > track.
>
> Not sure to understand if you ask me to provide the full python script
> (what I
> put in my previous email was the full script) or if you intended to
> provide me
> with a python port of your C++ code.
>
> >
> > Gane
> >
> > On Tue, Jan 5, 2016 at 3:40 PM, Even Rouault  >
> >
> > wrote:
> > > Le mardi 05 janvier 2016 10:54:57, Gane R a écrit :
> > > > gdal version gdal-1.11.3 - Filegeodbversion 1.4
> > > > {
> > > > OGRSFDriverRegistrar*poR;//Pointer to hold
> the
> > > > driver registration
> > > > OGRSFDriver*poDriver;
> > > > OGRDataSource*poODS;
> > > > OGRRegisterAll();
> > > > poR = OGRSFDriverRegistrar::GetRegistrar();
> > > > poDriver = poR->GetDriverByName("FileGDB");
> > > > poODS = poDriver->CreateDataSource("sample1.gdb",NULL);
> > > > /*
> > > > Here adding layeres and fields and geom
> > > > Finnally closing the dataset OGRDataSource::DestroyDataSource( poODS
> );
> > > > *OGRCleanup not called.*
> > > > */
> > > > }
> > > > *First time the code works fine, and the second time different .gdb
> > > > name the code crashes at createDatasource.*
> > > >
> > > > *This is a snippet of code, I get crash at CreateDataSource second
> time
> > >
> > > for
> > >
> > > > another filename, this code I am trying to put inside a DLL*
> > > >
> > > >  *features created are destroyed.OGRFeature::DestroyFeature(
> poFeature
> > >
> > > );*
> > >
> > > > Do I use the API correctly? any suggestions, What the cause of this
> > > > crash
> > >
> > > Difficult to say without a full reproducer.
> > >
> > > I've just tested the below Python script with the 1.11 branch and
> FileGDB
> > > 1.4
> > > on Linux and it works fine:
> > >
> > > from osgeo import ogr
> > > from osgeo import osr
> > >
> > > for i in range(10):
> > > ds = ogr.GetDriverByName('FileGDB').CreateDataSource('test%d.gdb'%
> i)
> > > srs = osr.SpatialReference()
> > > srs.ImportFromEPSG(4326)
> > > lyr = ds.CreateLayer('test', geom_type = ogr.wkbPoint, srs = srs)
> > > lyr.CreateField(ogr.FieldDefn('id', ogr.OFTInteger))
> > > f = ogr.Feature(lyr.GetLayerDefn())
> > > f['id'] = 1
> > > f.SetGeometry(ogr.CreateGeometryFromWkt('POINT (2 49)'))
> > > lyr.CreateFeature(f)
> > >
> > > --
> > > Spatialys - Geospatial professional services
> > > http://www.spatialys.com
>
> --
> Spatialys - Geospatial professional services
> http://www.spatialys.com
>
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] crashes at CreateDataSource

2016-01-05 Thread Gane R
gdal version gdal-1.11.3 - Filegeodbversion 1.4
{
OGRSFDriverRegistrar*poR;//Pointer to hold the
driver registration
OGRSFDriver*poDriver;
OGRDataSource*poODS;
OGRRegisterAll();
poR = OGRSFDriverRegistrar::GetRegistrar();
poDriver = poR->GetDriverByName("FileGDB");
poODS = poDriver->CreateDataSource("sample1.gdb",NULL);
/*
Here adding layeres and fields and geom
Finnally closing the dataset OGRDataSource::DestroyDataSource( poODS );
*OGRCleanup not called.*
*/
}
*First time the code works fine, and the second time different .gdb name
the code crashes at createDatasource.*

*This is a snippet of code, I get crash at CreateDataSource second time for
another filename, this code I am trying to put inside a DLL*

 *features created are destroyed.OGRFeature::DestroyFeature( poFeature );*
Do I use the API correctly? any suggestions, What the cause of this crash
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] FileGDB:Changing the Geom field definition on layer created with XML_DEFINITION

2015-12-25 Thread Gane R
I have creating a layer for FileGeoDB using XML

I want to change the geom definition set from XML to my selected Projection
say EPSG:4326

So I am looking for SetGeomFieldDefn opposite of  GetGeomFieldDefn

any suggestion

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

Re: [gdal-dev] Projection different when converting to filegeodb:

2015-12-25 Thread Gane R
I used FileGDB SDK 1.4 with gdal gdal-1.11.3, I changed the Shape file
projection to EPSG:4326 it then worked for me.

Thanks
Gane

On Thu, Dec 24, 2015 at 5:32 PM, Even Rouault 
wrote:

> >
> > ogrinfo -al "SimpleShapeFile_1.shp"
> >
> > INFO: Open of `SimpleShapeFile_1.shp'
> >   using driver `ESRI Shapefile' successful.
> >
> > Layer name: SimpleShapeFile_1
> > Geometry: Point
> > Feature Count: 1
> > Extent: (-104.960632, 39.736762) - (-104.960632, 39.736762)
> > Layer SRS WKT:
> > GEOGCS["WGS84(DD)",
> > DATUM["WGS84",
> > SPHEROID["WGS84",6378137.0,298.257223563]],
> > PRIMEM["Greenwich",0.0],
> > UNIT["degree",0.017453292519943295],
> > AXIS["Geodetic longitude",EAST],
> > AXIS["Geodetic latitude",NORTH]]
> > Label: String (254.0)
> > OGRFeature(SimpleShapeFile_1):0
> >   Label (String) = 1
> >   POINT (-104.960632 39.736762)
> >
> >
> >
> >   ogr2ogr -f "FileGDB" "SimpleShapeFile.gdb" "SimpleShapeFile_1.shp"
>
> Which version of the FileGDB SDK did you use ? With v1.3 this fails for me
> with :
> ERROR 1: Failed at creating table for \SimpleShapeFile_1 (General function
> failure.)
> which isn't completely surprising since the SDK is quite picky on the
> projection strings, and I guess the "WGS84(DD)" must not please it. The
> SRS it
> generated for you is completely invalid, hence the reprojection error you
> get
> later.
> If you add -a_srs EPSG:4326 this will work fine.
>
> Even
>
> --
> Spatialys - Geospatial professional services
> http://www.spatialys.com
>
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] Writing Coded Domain Values from GDAL

2015-12-23 Thread Gane R
I just figured out the issue, I tried to see that the C.D.V are created on
the layer, but for XML with C.D.Vs the layer returned was NULL.
However it worked for XML without C.D.V values. Filegeodb API says that
call for geodatabase->createTable will ignore C.D.Vs

Thanks
Gane

On Thu, Dec 24, 2015 at 12:13 PM, Gane R  wrote:

> I saw the python example, I tried load the xml and used XML_DEFINITION on
> layer creation option, I get runtime crash, I guess I am wrong some where
>
> I loaded the XML and created a buffer
>
> XML_DEFINITION=xmlcontent and sent in the layer creation options ? any 
> suggesion or code snippets already working
>
> will be of great help
>
> Gane
>
> _
>
> On Tue, Dec 22, 2015 at 6:21 PM, Even Rouault 
> wrote:
>
>> Le mardi 22 décembre 2015 12:46:29, Gane R a écrit :
>> > I tried to read the coded domain values from GDAL, I used special sql
>> > requests from GDAL as described in FileGeoDB driver. I got the values in
>> > the XML format.
>> >
>> > Is it possible to write coded domain values from GDAL using special sql
>> > request.
>> > I saw that it was possible from ESRI filegeodb API, can this be done
>> from
>> > GDAL itself.
>>
>> You could likely do it by using the XML_DEFINITION layer creation option.
>>
>> It is for example used by ogr_fgdb_11() in
>> https://svn.osgeo.org/gdal/trunk/autotest/ogr/ogr_fgdb.py
>>
>> In this test, the value of XML_DEFINITION is set to the content of
>>
>> https://svn.osgeo.org/gdal/trunk/autotest/ogr/data/test_filegdb_field_types.xml
>>
>> It doesn't test Coded Domain Values though , so I'm not completely sure
>> this
>> will work if you had C.D.V in it.
>>
>> Even
>>
>> --
>> Spatialys - Geospatial professional services
>> http://www.spatialys.com
>>
>
>
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] Writing Coded Domain Values from GDAL

2015-12-23 Thread Gane R
I saw the python example, I tried load the xml and used XML_DEFINITION on
layer creation option, I get runtime crash, I guess I am wrong some where

I loaded the XML and created a buffer

XML_DEFINITION=xmlcontent and sent in the layer creation options ? any
suggesion or code snippets already working

will be of great help

Gane

_

On Tue, Dec 22, 2015 at 6:21 PM, Even Rouault 
wrote:

> Le mardi 22 décembre 2015 12:46:29, Gane R a écrit :
> > I tried to read the coded domain values from GDAL, I used special sql
> > requests from GDAL as described in FileGeoDB driver. I got the values in
> > the XML format.
> >
> > Is it possible to write coded domain values from GDAL using special sql
> > request.
> > I saw that it was possible from ESRI filegeodb API, can this be done from
> > GDAL itself.
>
> You could likely do it by using the XML_DEFINITION layer creation option.
>
> It is for example used by ogr_fgdb_11() in
> https://svn.osgeo.org/gdal/trunk/autotest/ogr/ogr_fgdb.py
>
> In this test, the value of XML_DEFINITION is set to the content of
>
> https://svn.osgeo.org/gdal/trunk/autotest/ogr/data/test_filegdb_field_types.xml
>
> It doesn't test Coded Domain Values though , so I'm not completely sure
> this
> will work if you had C.D.V in it.
>
> Even
>
> --
> Spatialys - Geospatial professional services
> http://www.spatialys.com
>
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] epsg code for wgs84

2015-12-23 Thread Gane R
can any one specify the epsg code for wgs 84

thanks

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

[gdal-dev] Projection different when converting to filegeodb:

2015-12-23 Thread Gane R
I have a shapefile, I convert to Filegeodb, when I convert, the SRS WKT are
different, later when I convert the geom in filegeodb to EPSG:4326 WGS 84 I
get a n error code.


pOutputSRS = (OGRSpatialReference*)OSRNewSpatialReference(NULL);
pOutputSRS->SetFromUserInput( "EPSG:4326" );

ogrError = pSrcGeom->transformTo(pOutputSRS);

I get OGRERR_FAILURE , ogrError = 6


any suggestions ?

I have shared the shape file and Filegeodb

https://drive.google.com/file/d/0B4shTM1bPS5TY2dKbnNFV1RNbUk/view?usp=sharing

https://drive.google.com/file/d/0B4shTM1bPS5Td1V1aEVYZVFiNEk/view?usp=sharing


ogrinfo -al "SimpleShapeFile_1.shp"

INFO: Open of `SimpleShapeFile_1.shp'
  using driver `ESRI Shapefile' successful.

Layer name: SimpleShapeFile_1
Geometry: Point
Feature Count: 1
Extent: (-104.960632, 39.736762) - (-104.960632, 39.736762)
Layer SRS WKT:
GEOGCS["WGS84(DD)",
DATUM["WGS84",
SPHEROID["WGS84",6378137.0,298.257223563]],
PRIMEM["Greenwich",0.0],
UNIT["degree",0.017453292519943295],
AXIS["Geodetic longitude",EAST],
AXIS["Geodetic latitude",NORTH]]
Label: String (254.0)
OGRFeature(SimpleShapeFile_1):0
  Label (String) = 1
  POINT (-104.960632 39.736762)



  ogr2ogr -f "FileGDB" "SimpleShapeFile.gdb" "SimpleShapeFile_1.shp"


ogrinfo -al "SimpleShapeFile.gdb"

INFO: Open of 'SimpleShapeFile.gdb'
  using driver `FileGDB' successful.

Layer name: SimpleShapeFile_1
Geometry: Point
Feature Count: 1
Extent: (-104.960632, 39.736762) - (-104.960632, 39.736762)
Layer SRS WKT:
COMPD_CS[
PROJCS[,
AUTHORITY["EPSG","0"]],
VERT_CS[,
VERT_DATUM[,2005,
AUTHORITY["EPSG","0"]],
AXIS["Up",UP],
AUTHORITY["EPSG","0"]]]
FID Column = OBJECTID
Geometry Column = SHAPE
Label: String (0.0)
OGRFeature(SimpleShapeFile_1):1
  Label (String) = 1
  POINT (-104.960632 39.736762)
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] Writing Coded Domain Values from GDAL

2015-12-22 Thread Gane R
I tried to read the coded domain values from GDAL, I used special sql
requests from GDAL as described in FileGeoDB driver. I got the values in
the XML format.

Is it possible to write coded domain values from GDAL using special sql
request.
I saw that it was possible from ESRI filegeodb API, can this be done from
GDAL itself.

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

[gdal-dev] coded domain values access in Filegeodb

2015-12-18 Thread Gane R
Do the current implementation of filegeodb access via ESRI FileGeob support
import of coded domain values, If so how in GDAL

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

[gdal-dev] calculating geotransform for a given bound Lat Long in EPSG:4326

2015-12-16 Thread Gane R
How a geotransform values are calulated.


Any references will be of greate help
Thanks
Gane
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] generate raster "GeoTIFF" for given lat long bounds at particular zoom using GDAL

2015-12-15 Thread Gane R
How to convert Lat Long bounds to geotransform values for a particular zoom
in EPSG:4326


I can generated a raster with width, height and the geotransform values.

But for an Lat Long bounds at a particular zoom say highest 22, will the
xres and yres vary with location ?

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

Re: [gdal-dev] GeoPDF content inverted as GeoTIF

2015-12-15 Thread Gane R
Thanks for your timely response. Well the PDF was generated at the source
by different form such that I didn't face this problem, that new version of
the file worked for me.

On Mon, Dec 14, 2015 at 7:20 PM, Even Rouault 
wrote:

> Le lundi 14 décembre 2015 13:25:13, Rahkonen Jukka (MML) a écrit :
> > Hi,
> >
> > There is something odd in the PDF. It is without coordinate system and
> > perhaps because of that the top-left coordinates are (0,0) and north
> > coordinate is increasing from top to bottom. Probably the "Invalid length
> > for GPTS object" error does not have any effect on this.
>
> It does have an effect. The error messages indicates that the geospatial
> tags
> are ignored, thus the non-georeferenced coordinates which are displayed.
>
> I've looked at that file a bit and the georeferencing is unusual. It uses
> Adobe
> ISO 32000 georeferencing but with only 2 tie-points instead of 4 as usual.
> The
> spec doesn't mention the number of tie-points, but the driver assumes 4,
> based
> on test samples. It has also unusual MediaBox coordinates (non 0 lower left
> corner)
> I've removed locally the limitation and did some fiddling in the code to
> generalize it, but I don't manage to get a good overlay with a basemap. I
> can
> get something roughly in the target area, but there is a rotation term
> that is
> clearly missing. But with only 2 tiepoints, the solver of GCPs to
> geotransform
> cannot produce any rotation term and assumes linear stretching of
> coordinates.
> You have to make assumptions as you've the 6 coefficients of the
> geotransform
> matrix to compute, but only 4 equations. In that case, to recover rotation
> terms, it would probably have to make the assumption that the pixels are
> square instead (you'd have only 4 unknowns: x,y of top-left corner, pixel
> size, rotation angle). I didn't investigate further for now. But it seems
> unwise from the data producer to produce only 2 tiepoints because of the
> above
> mentionned ambiguity. As far as I can see, the PDF spec doesn't tell what
> to
> do in that case.
>
> Even
>
> --
> Spatialys - Geospatial professional services
> http://www.spatialys.com
> ___
> gdal-dev mailing list
> gdal-dev@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] GeoPDF content inverted as GeoTIF

2015-12-14 Thread Gane R
Here is link to GeoPDF which is inverted when converted to GeoTIFF


https://drive.google.com/file/d/0B4shTM1bPS5TNHBDVG45RzdWYjA/view?usp=sharing


Is it a problem in PDF or something with the PDF driver rotation.

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

[gdal-dev] Convert json point to OGRPoint

2015-12-11 Thread Gane R
Q1. exportJson converts Geometry to Json, I am looking a function to
convert the json string to OGRPoint.

Please suggest your suggestions.

Q2. String returned by exportJson should be compulsorly freed using CPLFree
or will be freed automatically.

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

[gdal-dev] Question: Creating overviews

2015-12-01 Thread Gane R
I have a proper GeoTIF with geotransform and I tried to create overlays for
it. The API returned no error, but the created overlay did not had
geotranform

Any ideas

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

Re: [gdal-dev] Geometry not displayed with Filegeodb on GDAL 2.0.1

2015-11-27 Thread Gane R
I figured out the issue this was due to wrong API call.

Thanks
Gane

On Mon, Nov 23, 2015 at 9:59 PM, Gane R  wrote:

> Hi all,
>
> I tried to build *GDAL 2.0.1* with *filegeodb* support with *proj4* as
> static lib on *Linux*. I am able to use the API to get the field data from
> Filegeodb but I am *not able to get the geometry*.  I have configured as
>
> ./configure --with-fgdb=/fgdblib --with-static-proj4=/usr/local/
> --with-xml2=no --with-sqlite3=no --with-curl=no --with-expat=no
>
> I am wondering what went wrong. But ogrinfo shows the values of the same
> filegeodb file.
>
> Thanks
> Gane
>
>
>
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] Blob field support in Filegeodb

2015-11-27 Thread Gane R
Is the Blob read and write is supported in Filegeodb with ESRI Filegeodb
driver in GDAL. I am using gdal-1.11.3

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

[gdal-dev] Geometry not displayed with Filegeodb on GDAL 2.0.1

2015-11-23 Thread Gane R
Hi all,

I tried to build *GDAL 2.0.1* with *filegeodb* support with *proj4* as
static lib on *Linux*. I am able to use the API to get the field data from
Filegeodb but I am *not able to get the geometry*.  I have configured as

./configure --with-fgdb=/fgdblib --with-static-proj4=/usr/local/
--with-xml2=no --with-sqlite3=no --with-curl=no --with-expat=no

I am wondering what went wrong. But ogrinfo shows the values of the same
filegeodb file.

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

Re: [gdal-dev] Two versions of gdal

2015-11-23 Thread Gane R
Thanks for your reply, I have a requirement that I should have two GDALs. I
have also an issue, I have build gdal 2.0.1 with proj4 as static, it does
not process the geometry inside from filegeodb. any thoughts will be
appreciated. I have the GDAL_DATA environ set, and pro4 share lib also
exist on the machine and ldconfig is also called to update the shared
library.

Thanks
Gane



On Mon, Nov 23, 2015 at 7:49 PM, Ivan Lucena 
wrote:

> You don't need to build two gdal versions.
>
>
> You can build GDAL (libgal.so) without the driver and then you build the
> driver as a plugin (ogr_FileGDB.so).
>
>
> ./configure -without-fgdb
>
> make
>
>
> ./configure -with-fgdb
>
> make
>
>
> You can choose to use the drive, or not, by managing the GDAL_DRIVER_PATH
> environment variable.
>
>
> The advantage is that libgdal.so is not going to depend on FileGDB SDK.
>
>
> --
> *From:* gdal-dev  on behalf of Gane R <
> gane.p...@gmail.com>
> *Sent:* Monday, November 23, 2015 8:24 AM
> *To:* Even Rouault; gdal-dev@lists.osgeo.org
> *Subject:* [gdal-dev] Two versions of gdal
>
> I have a requirement of two version of gdal one with filegeodb (gdal
> 2.0.1) and other without filegeodb (gdal 2.0.1) on linux, any references
> how this can make co exist ?
>
> thanks
> Gane
>
>
>
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] Two versions of gdal

2015-11-23 Thread Gane R
I have a requirement of two version of gdal one with filegeodb (gdal 2.0.1)
and other without filegeodb (gdal 2.0.1) on linux, any references how this
can make co exist ?

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

[gdal-dev] GeoPDF offsets from actual location after gdalwarp

2015-11-18 Thread Gane R
Here is link to a GeoPDF (
https://drive.google.com/file/d/0B4shTM1bPS5TMmk2OWxuTGJpY1k/view?usp=sharing)
this has a mile offset from the current location,
on GDAL gdal-2.0.1 when gdalwarp warps the PDF (poppler driver) to GeoTIF

Here is gdalinfo for the file

Driver: PDF/Geospatial PDF
Files: AssembledMaps.pdf
Size is 3673, 2044
Coordinate System is:
PROJCS["UTM Zone 15, Northern Hemisphere",
GEOGCS["NAD83",
DATUM["North_American_Datum_1983",
SPHEROID["GRS 1980",6378137,298.257222101,
AUTHORITY["EPSG","7019"]],
TOWGS84[0,0,0,0,0,0,0],
AUTHORITY["EPSG","6269"]],
PRIMEM["Greenwich",0,
AUTHORITY["EPSG","8901"]],
UNIT["degree",0.0174532925199433,
AUTHORITY["EPSG","9108"]],
AUTHORITY["EPSG","4269"]],
PROJECTION["Transverse_Mercator"],
PARAMETER["latitude_of_origin",0],
PARAMETER["central_meridian",-93],
PARAMETER["scale_factor",0.9996],
PARAMETER["false_easting",50],
PARAMETER["false_northing",0],
UNIT["Meter",1]]
GeoTransform =
  494482.9934340139, 1.9797610687878, -0.4578063200329283
  3519200.148697479, -0.4578063200329283, -1.9797610687878
Metadata:
  NEATLINE=POLYGON ((491222.64246014197
3515690.1233778466,492158.60528832977 35
19737.6489099222,499430.68065023294 3518056.0308031105,498494.71782204515
351400
8.5052710348,491222.64246014197 3515690.1233778466))
Corner Coordinates:
Upper Left  (  494482.993, 3519200.149) ( 93d 3'29.84"W, 31d48'30.24"N)
Lower Left  (  493547.237, 3515153.517) ( 93d 4' 5.33"W, 31d46'18.79"N)
Upper Right (  501754.656, 3517518.626) ( 92d58'53.27"W, 31d47'35.67"N)
Lower Right (  500818.900, 3513471.994) ( 92d59'28.87"W, 31d45'24.24"N)
Center  (  497650.947, 3516336.072) ( 93d 1'29.32"W, 31d46'57.26"N)
Band 1 Block=3673x1 Type=Byte, ColorInterp=Red
Band 2 Block=3673x1 Type=Byte, ColorInterp=Green
Band 3 Block=3673x1 Type=Byte, ColorInterp=Blue

Does the scale_factor has something on this will gdal_translate -unscale
will help or there is some problem in handling this specific file or
projection parameters

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

[gdal-dev] Error building Gdal on Mac OS X with Filegeodb

2015-11-13 Thread Gane R
I was trying to build gdal-2.0.1 with Filegeodb (File Geodatabase API 1.4
version for Mac 64-bit (Gcc) for Mac running on intel OS X Yosemite 10.10.5

I get the error undefined symbols for architecture x86_64 at Filegeodb
modules. I think all the compiler and OS requirements are met.


I tried to build gdal-1.10 with Filegeodb on MAC it was not too successful.
I followed the step at
*https://gist.github.com/zhm/2005158 *
 I got error with @ECW@ and @LIB_XML@
gdal lib was not build.

Any suggestions will be appretiated.
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] forceToPoly causes crash when converting geom to json

2015-11-02 Thread Gane R
I am reading a file geodb and trying to convert multipolygon to Polygon
OGRGeometry *pGeom = NULL;
OGRGeometry *pForced = NULL;
pGeom = pOGRFeature->StealGeometry();
if(pGeom != NULL)
{
pForced =
OGRGeometryFactory::forceToPolygon(pGeom);
if(pForced != NULL)
{

pOGRFeature->SetGeometryDirectly(pForced);
}
}

char *pJsonString = pSrcGeom->exportToJson(); //Causes crash ...

Do any experience these ?
Gane
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] GDAL_DATA

2015-10-23 Thread Gane R
I have two applications (postgres with postgis) one running with gdal
1.10.1 and other in gdal 2.0.1 but I see
gdal-data files are different in gdal 1.10.1 and gdal 2.0.1

So Will the GDAL_DATA point gdal 2.0.1 file or how to solve this ?


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

[gdal-dev] gdal dll depedencies

2015-10-13 Thread Gane R
I have build gdal from source of the lastet stable release gdal-2.0.1. Does
all the drivers code go within gdal200.dll or any dependency exists ?

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

[gdal-dev] enable POSIX iconv support

2015-10-13 Thread Gane R
I am working with the lastest stable build of GDAL source 2.0.1.

In Mac when I run configure I get this enabled,
what is the use of this.
How to disable this like --with-libiconv and start building gdal ?

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

[gdal-dev] FileGeoDB using ESRI FileGeoDB

2015-10-08 Thread Gane R
Hi all,

Its about redistributing the ESRI FileGeoDB binary with an application,
what are
the conditions enforced for a free application and a paid application
closed source application.

I see post and blogs and I am not still clear.

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

[gdal-dev] Looking for FileGeoDB Writer

2015-10-08 Thread Gane R
Hi all,

I see the OpenFileGDB supports only reading. Is any driver supporting write
filegeodb other than ESRI FileGeoDB driver ?


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

[gdal-dev] gdalwarp fails to warp for this GeoPDF

2015-10-01 Thread Gane R
Hi,

https://drive.google.com/file/d/0B4shTM1bPS5TZ3psWTFpU1ZuV2c/view?usp=sharing

gdalwarp -t_srs EPSG:3857 "file04.pdf" "file04.tif"

ERROR 6: Failed to initialize PROJ.4 with `+proj=merc +lon_0=0 +k=0 +x_0=0
+y_0=
0 +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs '.
k <= 0

Is this due to PDF driver ?, gdalinfo of this file follows

gdalinfo file04.pdf

Projection: PROJCS["unnamed",GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS
84
",6378137,298.257223563,AUTHORITY["EPSG","7030"]],TOWGS84[0,0,0,0,0,0,0],AUTHORI
TY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",
0.0174532925199433,AUTHORITY["EPSG","9108"]],AUTHORITY["EPSG","4326"]],PROJECTIO
N["Mercator_1SP"],PARAMETER["central_meridian",0],PARAMETER["scale_factor",0],PA
RAMETER["false_easting",0],PARAMETER["false_northing",0],UNIT["Meter",1]]
  RasterCount: 3
  RasterSize (5388,3341)
Using driver Geospatial PDF
  Metadata:
0:  AUTHOR=anonymous
1:  CREATION_DATE=D:20150626141600Z
2:  NEATLINE=POLYGON ((-9778005.7471570373
5257640.588139087,-9778432.250753
6598 5258664.8154589375,-9776778.2288263608
5259347.8824177133,-9776351.72522973
83 5258323.6550978627,-9778005.7471570373 5257640.588139087))
3:  PRODUCER=

Corner Coordinates:
  Upper Left (-9778858.754336, 5259689.04274448)
  Lower Left (-9778432.25075366, 5258664.81545894)
  Upper Right (-9777204.73240246, 5260372.10970584)
  Lower Right (-9776778.22882012, 5259347.88242029)
  Center (-9777818.55540679, 5259518.61586393)

Coordinate System is:
PROJCS["unnamed",
GEOGCS["WGS 84",
DATUM["WGS_1984",
SPHEROID["WGS 84",6378137,298.257223563,
AUTHORITY["EPSG","7030"]],
TOWGS84[0,0,0,0,0,0,0],
AUTHORITY["EPSG","6326"]],
PRIMEM["Greenwich",0,
AUTHORITY["EPSG","8901"]],
UNIT["degree",0.0174532925199433,
AUTHORITY["EPSG","9108"]],
AUTHORITY["EPSG","4326"]],
PROJECTION["Mercator_1SP"],
PARAMETER["central_meridian",0],
PARAMETER["scale_factor",0],
PARAMETER["false_easting",0],
PARAMETER["false_northing",0],
UNIT["Meter",1]]
Band 1 :
   DataType: Byte
   ColorInterpretation: Red
   Description:
   Size (5388,3341)
   BlockSize (5388,1)
   Offset: 0
   Scale: 1
Band 2 :
   DataType: Byte
   ColorInterpretation: Green
   Description:
   Size (5388,3341)
   BlockSize (5388,1)
   Offset: 0
   Scale: 1
Band 3 :
   DataType: Byte
   ColorInterpretation: Blue
   Description:
   Size (5388,3341)
   BlockSize (5388,1)
   Offset: 0
   Scale: 1

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

Re: [gdal-dev] GetFIDColumn : FID Column for ESRI Shape file

2015-09-30 Thread Gane R
sorry for posting on this thread.

On Wed, Sep 30, 2015 at 7:57 PM, Gane R  wrote:

> Now for FileGeoDB datasets
> 
> 1. For FileGeoDB GetFIDColumn returns a column name
> for some data set it is a part of feature values with _1, for some there
> doesn't exist any feature value
>
> 2. GetFID returns a number for some data set and it is sequential, for
> others the value returned are not in order.
>
> Can any provide any links or pointer or enlighten me on this stuff.
>
> Gane
>
> On Wed, Sep 30, 2015 at 7:07 PM, Even Rouault 
> wrote:
>
>> Le mercredi 30 septembre 2015 15:32:40, Gane R a écrit :
>> > Hi,
>> >
>> > Is it that OGRLayer::GetFIDColumn will return empty string for
>> Shapefile I
>> > have or it will be always empty for all shape files?
>>
>> Always empty
>>
>> >
>> > If I can see FID Column for a shape file in any other application can
>> you
>> > name any one of them
>>
>> They likely use a conventionnal name. But technically there's no field in
>> the
>> .dbf or the .shp to hold the name of the FID.
>> Also good to know: the OGR shapefile driver starts its numbering at 0 for
>> the
>> FID.
>>
>> >
>> >
>> > Gane
>>
>> --
>> Spatialys - Geospatial professional services
>> http://www.spatialys.com
>> ___
>> gdal-dev mailing list
>> gdal-dev@lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
>
>
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] GetFIDColumn for FileGeoDB

2015-09-30 Thread Gane R
1. For FileGeoDB GetFIDColumn returns a column name
for some data set it is a part of feature values with _1, for some there
doesn't exist any feature value with this column name

2. GetFID returns a number for some data set and it is sequential, for
others the value returned are not in order.

Can any one provide any links or pointer or enlighten me on this stuff.

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

Re: [gdal-dev] GetFIDColumn : FID Column for ESRI Shape file

2015-09-30 Thread Gane R
Now for FileGeoDB datasets

1. For FileGeoDB GetFIDColumn returns a column name
for some data set it is a part of feature values with _1, for some there
doesn't exist any feature value

2. GetFID returns a number for some data set and it is sequential, for
others the value returned are not in order.

Can any provide any links or pointer or enlighten me on this stuff.

Gane

On Wed, Sep 30, 2015 at 7:07 PM, Even Rouault 
wrote:

> Le mercredi 30 septembre 2015 15:32:40, Gane R a écrit :
> > Hi,
> >
> > Is it that OGRLayer::GetFIDColumn will return empty string for Shapefile
> I
> > have or it will be always empty for all shape files?
>
> Always empty
>
> >
> > If I can see FID Column for a shape file in any other application can you
> > name any one of them
>
> They likely use a conventionnal name. But technically there's no field in
> the
> .dbf or the .shp to hold the name of the FID.
> Also good to know: the OGR shapefile driver starts its numbering at 0 for
> the
> FID.
>
> >
> >
> > Gane
>
> --
> Spatialys - Geospatial professional services
> http://www.spatialys.com
> ___
> gdal-dev mailing list
> gdal-dev@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] GetFIDColumn : FID Column for ESRI Shape file

2015-09-30 Thread Gane R
Hi,

Is it that OGRLayer::GetFIDColumn will return empty string for Shapefile I
have or it will be always empty for all shape files?

If I can see FID Column for a shape file in any other application can you
name any one of them


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

Re: [gdal-dev] PDF gets skewed and shifts in geo location raster GeoTIFF

2015-09-24 Thread Gane R
I have the file link here,

https://drive.google.com/file/d/0B4shTM1bPS5TMFZsc1p3MVZKT3c/view?usp=sharing

I see the raster's actual location shifted in 3857 projection in both cases

1. from pdf to 3857 (Big offset shift)
2. pdf to 4326 and then to 3857 (small offset shift)

gdalwarp -t_srs EPSG:3857 "file03.pdf" "file03_3857.tif"

gdalinfo "file03_3857.tif"

  Upper Left (-9778860.18140727, 5289697.46773225)
  Lower Left (-9778860.18140727, 5287721.4661877)
  Upper Right (-9776891.4828487, 5289697.46773225)
  Lower Right (-9776891.4828487, 5287721.4661877)
  Center (-9777875.83212799, 5288709.54465131)

gdalwarp -t_srs EPSG:4326 "file03.pdf" "file03_4326.tif"

gdalinfo "file03_4326.tif"

  Upper Left (-87.8449956222595, 42.8534861499971)
  Lower Left (-87.8449956222595, 42.8404719605387)
  Upper Right (-87.8273112824722, 42.8534861499971)
  Lower Right (-87.8273112824722, 42.8404719605387)
  Center (-87.8361534523658, 42.8469797529301)

gdalwarp -t_srs EPSG:3857 "file03_4326.tif" "file03_3857_from4326.tif"

gdalinfo "file03_3857_from4326.tif"

 Upper Left (-9778860.18140727, 5289697.46773225)
 Lower Left (-9778860.18140727, 5287721.45875241)
 Upper Right (-9776891.61702531, 5289697.46773225)
 Lower Right (-9776891.61702531, 5287721.45875241)
 Center (-9777875.89921629, 5288709.46324233)

Regards,
Gane

On Wed, Sep 23, 2015 at 5:11 PM, Even Rouault 
wrote:

> Le mercredi 23 septembre 2015 12:54:21, Gane R a écrit :
> > When I convert the above mentioned PDF to a GeoTIFF in EPSG:3857 I get
> the
> > raster bounds shifted down from the actual raster location, where as
> when I
> > convert the PDF to GeoTIFF in EPSG:4326 then to EPSG:3857 using gdalwarp
> > and I get the raster  bounds to the actual location.  any reasons for
> this
> > shift ?
>
> Please let the list CC'ed
>
> Could you provide data + command line that demontrates this ?
>
> >
> > On Wed, Sep 23, 2015 at 1:42 PM, Even Rouault <
> even.roua...@spatialys.com>
> >
> > wrote:
> > > Gane,
> > >
> > > I don't really understand what you mean. Is there an error in the PDF
> > > georeferencing (I thought we had addressed that a few months ago), or
> are
> > > you
> > > surprised that gdalwarp transforms the image to be north-up ? If it is
> > > the later, then it is an intended behaviour of gdalwarp.
> > >
> > > Best regards,
> > >
> > > Even
> > >
> > > > There are cases for handling 90 -90 rotation in pdfdataset.cpp
> > > > I am using poppler with pdfdataset.cpp as in Revision: 28978 of trunk
> > > >
> > > > PDF gets skewed and shifts in geo location raster GeoTIFF, Is there
> any
> > > > issue in computing the geotransform ?
> > > >
> > > > GeoTransform values are for an pdf at EPSG:4326
> > > > 10776
> > > > 6682
> > > > -87.844995622259475
> > > > 0.01374506717
> > > > 0.00429963146
> > > > 42.847234964542217
> > > > 0.00580102585
> > > > -0.01012112732
> > > >
> > > > Corresponding GeoTransform for GeoTiff in EPSG:3857 after gdalwarp
> > > > 12529
> > > > 10422
> > > > GeoTransform values
> > > > -9779291.68309289400
> > > > 0.166040058992803
> > > > 0.000
> > > > 5290478.76661630910
> > > > 0.000
> > > > -0.166040058992803
> > >
> > > --
> > > Spatialys - Geospatial professional services
> > > http://www.spatialys.com
>
> --
> Spatialys - Geospatial professional services
> http://www.spatialys.com
>
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] PDF gets skewed and shifts in geo location raster GeoTIFF

2015-09-23 Thread Gane R
There are cases for handling 90 -90 rotation in pdfdataset.cpp
I am using poppler with pdfdataset.cpp as in Revision: 28978 of trunk

PDF gets skewed and shifts in geo location raster GeoTIFF, Is there any
issue in computing the geotransform ?

GeoTransform values are for an pdf at EPSG:4326
10776
6682
-87.844995622259475
0.01374506717
0.00429963146
42.847234964542217
0.00580102585
-0.01012112732

Corresponding GeoTransform for GeoTiff in EPSG:3857 after gdalwarp
12529
10422
GeoTransform values
-9779291.68309289400
0.166040058992803
0.000
5290478.76661630910
0.000
-0.166040058992803
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] Increase width and change offset of the shape file rasterized

2015-07-03 Thread Gane R
Questions: 1. How can I change the width of the vector (shapefile) and
change the offset.

I see GDALdllImageLine calling - pfnPointFunc - calling gvBurnPoint

Questions: 2.  gdalrasterize generate transparent png of the raster

i know the png driver doesn't support create but create copy.

How about the buffer written to MEM driver and then to PNG driver. But I
want it to transparent and not black ?

Thanks for your previous replies.

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

[gdal-dev] Compute GeoTransform

2015-06-09 Thread Gane R
With Lat Long bound values how do create a geotransform for WGS84 GeoTIFF

I followed this link

https://trac.osgeo.org/gdal/wiki/FAQRaster#HowcanIcreateablankrasterbasedonavectorfilesextentsforusewithgdal_rasterizeGDAL1.8.0

or how do I use the -tr option for WGS84, GeoTIFF I want to have high
resolution image.

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

[gdal-dev] Creating a transparent GeoTIFF, writing shape data over it, reading GeoTIFF writing as PNG with transparency.

2015-06-09 Thread Gane R
1. Can I create a transparent GeoTIFF like PNG with alpha channel ?

2. Can I used gdal_rasterize to draw shape over the GeoTIFF with
tranparency

3. Can I read a part of the GeoTIFF using GDALRasterIO and write as PNG
with the same transparency preserved.

Say some kind of work flow with gdal command line tools will be of great
help.

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

[gdal-dev] gdalwarp skews and rotates PDF rasters, when converting to GeoTIFF, when PDF raster are in Landscape orientation or (True north facing botton or right or left)

2015-04-17 Thread Gane R
I am using gdal 1.10.1

I have a set PDFs, I am converting them to GeoTIFF.

I am using gdal with poppler for pdf  driver.

I have PDFs of places with orientation in Landscape, and north facing right
or left or bottom.

When I apply a gdalwarp for these PDFs I get unexpected rotation at GeoTIFF
output.

I read this link too

http://lists.osgeo.org/pipermail/gdal-dev/2014-June/039438.html


I need some guidance for this. Say some kind of work flow with gdal command
line tool will be of great help.

Thanking you,
Gdal gurus.
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev