[gdal-dev] NITF with MultiDataSet

2013-05-01 Thread xavier lhomme
Hi
I try to load a NITF with multidataset into ArcGIS Desktop . But ArcGIS
tells me that there is no spatial reference in my file.
Then I check with gdalinfo which tells me that my file is referenced with
WGS84.

Then I try to convert the file with gdal in GeoTiff format
I'm using gdal 1.9.2 and try to convert a NITF with multidataset into a
GeoTiFF file.
I'm using ns3361c.tif downloaded from
http://www.gwg.nga.mil/ntb/baseline/software/testfile/Nitfv2_1/scen_2_1.htmlas
a sample.

I try :
gdalwarp NITF_IM:0:ns3361nc.nsf test.tif
gdalwarp NITF_IM:1:ns3361nc.nsf test.tif
gdalwarp NITF_IM:2:ns3361nc.nsf test.tif
gdalwarp NITF_IM:3:ns3361nc.nsf test.tif

the online doc of gdalwarp explains : Mosaicing into an existing output
file is supported if the output file already exists.

but the result test.tif doesn't conains all subdataset.

Thanks in advance.

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

[gdal-dev] updating xml:TRE

2013-06-18 Thread xavier lhomme
Hi

 How to update TRE of NITF file from xml string ?
 or how to convert a xml:TRE string to a TRE string ?

Best regards

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

[gdal-dev] UnescapeString

2013-06-18 Thread xavier lhomme
Hi

   The C# binding contains the EscapeString function, but my version
doesn't contains the UnescapeString function.

 Do I need to patch gdal_wrap.cpp  and recompilethe dll in order to have
acces to UnescapeString ?

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

[gdal-dev] Extract CGM from a NITF file

2013-06-19 Thread xavier lhomme
Hi

  I'm trying to extract CGM files from a NITF but the CGM are corrupt.

  First I Unescape the CGM Data and I obtain something like
   "\0,\vCreated CGM \"\0 f\0 ÿÿ\0 ...
  Then write the text file.

  I compared this string with a CGM obtained from NITRO NITF
(nitro_extract_cgm.exe).
  The new CGM file start with
"\0,\vCreated CGM \"\0 f\0 ��\0
 I succeed to read this CGM file with a CGM viewer.

One of the difference come from caracter like ÿ (from GDAL) � from NITRO

Then It's probably something I missed in the Escaping/Unescaping function

Because UnescapeScring wasn't exposed in C# I wrote a function :
static public string UnescapeString(string pszInput)
{
 string pszOutput="";
int iIn = 0;
for (iIn = 0; iIn___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] Extract CGM from a NITF file

2013-06-20 Thread xavier lhomme
Thanks it works well ! I succeed to export graphics from the NITF file.
But I didn't understand why my C# function was wrong.


Best regards.


2013/6/20 Livneh Yehiyam 

>  Hi
>
> You can use the GDAL unescape function like this:
>
> ** **
>
> /// 
>
> /// Remove "backslash quotable" escape characters from the string
> and convert it to byte array.
>
> /// 
>
> public static byte[] RemoveEscapeCharacters(this string value)
>
> {
>
> if(String.IsNullOrEmpty(value))
>
> {
>
> return new byte[0];
>
> }
>
> int length = value.Length;
>
> IntPtr escapedString = CPLUnescapeString(value, ref length,
> 0);
>
> byte[] escapedBytes = new byte[length];
>
> Marshal.Copy(escapedString, escapedBytes, 0, length);
>
> VSIFree(escapedString);
>
> return escapedBytes;
>
> }
>
> ** **
>
> [DllImport("gdal18.dll", EntryPoint = "CPLUnescapeString",
> CallingConvention = CallingConvention.Cdecl)]
>
> private static extern IntPtr CPLUnescapeString(string input, ref
> int length, int scheme);
>
> ** **
>
> [DllImport("gdal18.dll", EntryPoint = "VSIFree",
> CallingConvention = CallingConvention.Cdecl)]
>
>     private static extern void VSIFree(IntPtr input);
>
> ** **
>
> ** **
>
> Yehiyam
>
> ** **
>
> *From:* gdal-dev-boun...@lists.osgeo.org [mailto:
> gdal-dev-boun...@lists.osgeo.org] *On Behalf Of *xavier lhomme
> *Sent:* Wednesday, June 19, 2013 11:50 PM
> *To:* gdal-dev
> *Subject:* [gdal-dev] Extract CGM from a NITF file
>
> ** **
>
> Hi 
>
> ** **
>
>   I'm trying to extract CGM files from a NITF but the CGM are corrupt. ***
> *
>
> ** **
>
>   First I Unescape the CGM Data and I obtain something like
>
>"\0,\vCreated CGM \"\0 f\0 ÿÿ\0 ...
>
>   Then write the text file. 
>
>  
>
>   I compared this string with a CGM obtained from NITRO NITF
> (nitro_extract_cgm.exe).
>
>   The new CGM file start with  
>
> "\0,\vCreated CGM \"\0 f\0 ��\0
>
>  I succeed to read this CGM file with a CGM viewer. 
>
> ** **
>
> One of the difference come from caracter like ÿ (from GDAL) � from NITRO**
> **
>
> ** **
>
> Then It's probably something I missed in the Escaping/Unescaping function
> 
>
> ** **
>
> Because UnescapeScring wasn't exposed in C# I wrote a function : 
>
> static public string UnescapeString(string pszInput)
>
> {
>
>  string pszOutput="";
>
> int iIn = 0;
>
> for (iIn = 0; iIn
> {
>
> if (pszInput[iIn] == '\\')
>
> {
>
> iIn++;
>
> if (pszInput[iIn] == 'n')
>
> pszOutput += '\n';
>
> else if (pszInput[iIn] == '0')
>
> pszOutput += '\0';
>
> else
>
> pszOutput += pszInput[iIn];
>
> }
>
> else
>
> {
>
> pszOutput += pszInput[iIn];
>
> }
>
> }
>
> return pszOutput;
>
> }
>
> ** **
>
> thanks in advance!
>
> Best regards 
>   
> This message (including any attachments) issued by RAFAEL- ADVANCED
> DEFENSE SYSTEMS LTD. (hereinafter "RAFAEL") contains confidential
> information intended for a specific individual and purpose, may constitute
> information that is privileged or confidential or otherwise protected from
> disclosure. If you are not the intended recipient, you should contact us
> immediately and thereafter delete this message from your system. You are
> hereby notified that any disclosure, copying, dissemination, distribution
> or forwarding of this message, or the taking of any action based on it, is
> strictly prohibited. If you have received this e-mail in error, please
> notify us immediately by e-mail mailto:law...@rafael.co.il and completely
> delete or destroy any and all electronic or other copies of the original
> message and any attachments thereof.
>
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] Using the OGR library with FileGDB driver

2013-07-31 Thread xavier lhomme
Raster Dataset and Mosaic Dataset are not supported  :
 See :
http://proceedings.esri.com/library/userconf/devsummit13/papers/devsummit-170.pdf

Best Regards



2013/7/31 Carl Godkin 

>
> Thanks, Even.  You give me hope that I wasn't barking up the completely
> wrong tree.  I will attempt to debug a little on my own and post what I
> find (if anything).
>
> And I can certainly open a Trac ticket if I find something I think is
> working incorrectly.  Thanks!
>
> carl
>
>
>
> On Tue, Jul 30, 2013 at 3:26 PM, Even Rouault <
> even.roua...@mines-paris.org> wrote:
>
>> Le mercredi 31 juillet 2013 00:07:08, Carl Godkin a écrit :
>> > Hi,
>> >
>> > I'm trying for the first time to use the OGR library to read ESRI
>> FileGDB
>> > (".gdb") databases and I think I must be doing something wrong.
>> >
>> > I built GDAL 1.10.0 with VS2010 and (among other additions) the
>> FileGDB_API
>> > 1.3 for VS2010 all on Win64.  Everything built cleanly but the OGR
>> library
>> > seems to be unable find layers in some .gdb data sets.
>> >
>> > To take my own code out of the equation, I tried to list the layers in
>> > various .gdb files from around the web using the version of "ogrinfo"
>> built
>> > along with the library.
>> >
>> > All of example .gdb projects from the samples/data directory in the ESRI
>> > FileGDB_API distribution work just fine as does some data from other
>> > sources.
>> >
>> > However, I find that a lot of .gdb data sets that I find on the web act
>> as
>> > if they have no layers.  (These are apparently up to date sites too, not
>> > very old sites.)
>> >
>> > In lots of cases, ogrinfo says just this:
>> > >ogrinfo -al WA_wetlands.gdb
>> >
>> > INFO: Open of `WA_wetlands.gdb'
>> >   using driver `FileGDB' successful.
>> >
>> > However, I know there are layers in the these files because ArcGIS
>> Explorer
>> > Desktop shows them just fine, but calls them "datasets."  The datasets,
>> > however, are not quite the same as the layers listed by "ogrinfo" (in
>> the
>> > cases where ogrinfo shows something useful) so I'm wondering if I am
>> > confused about the nomenclature or something.
>> >
>> > Does anyone have any suggestions?  I feel like I must be missing
>> something
>> > obvious. Thanks very much for any ideas,
>>
>> Carl,
>>
>> The driver is supposed to have some support for reading layers in
>> "datasets",
>> but you are perhaps running into a bug, or a limitation of the FileGDB SDK
>> itself. Perhaps you could create a GDAL Trac ticket and attach one of
>> those
>> .gdb for investigation.
>>
>> Best regards,
>>
>> Even
>>
>> --
>> Geospatial professional services
>> http://even.rouault.free.fr/services.html
>>
>
>
> ___
> 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] FGDB API : field size

2013-08-09 Thread xavier lhomme
Hi
   I wonder why for an esriFieldTypeInterger the size is set to 12 (in the
GDBFieldTypeToWidthPrecision fonction).
In the xml sample files provided by esri all  esriFieldTypeIntergerhas a
length of 4.
(and 8 for double) ...

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

Re: [gdal-dev] Call for discussion for "RFC 43 GDALMajorObject::GetMetadataDomainList()"

2013-10-20 Thread xavier lhomme
Hi
  Is there a way to export Metadata in a XML form (ISO 19139 XML
implementation of ISO 19115 ) ?

xav


2013/10/19 Even Rouault 

> Hi,
>
> This is a call for discussion for "RFC 43
> GDALMajorObject::GetMetadataDomainList()" :
>
> http://trac.osgeo.org/gdal/wiki/rfc43_getmetadatadomainlist
>
> Beginning of the RFC inline :
> """
>
> == Summary ==
>
> This (mini)RFC proposes a new virtual method, GetMetadataDomainList(), in
> the
> GDALMajorObject class (and a C API) to return the list of all available
> metadata domains.
>
> == Background ==
>
> GDALMajorObject currently offers the GetMetadata() and GetMetadataItem()
> methods that both accept a metadata domain argument. But there is no way to
> auto-discover which metadata domains are valid for a given GDALMajorObject
> (i.e. a dataset or raster band). This make it impossible to have generic
> code
> that can exhaustively discover all metadata in a dataset/raster band.
>
> [...]
>
> """
>
> Best regards,
>
> Even
>
> --
> Geospatial professional services
> http://even.rouault.free.fr/services.html
> ___
> 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] Retrieve metadata from vector product

2013-10-24 Thread xavier lhomme
Hi

How to obtain metadta from vector product ?

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

[gdal-dev] Support USRP

2013-11-14 Thread xavier lhomme
Hi

  I have a USRP product with several images organized with
   a THF file which describe all containing image and a directory for each
image
(with  .Gen, .SOU, .IMG and a .QAL ).
The ASRP/USRP driver recognize .IMG file as explain in the web site.

ASRP/USRP is related to ADRG (and source code is stored in the ADRG
directory)
the ADRG driver is able to recognize THF file

Is it possible to improve ASRP/USRP driver to support THF files ?


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

Re: [gdal-dev] Support USRP

2013-11-16 Thread xavier lhomme
Hi
I'm on it . Seems to have many common function with ADRG driver.

I will report here the enhancement.

xlhomme


2013/11/15 Even Rouault 

> Le jeudi 14 novembre 2013 10:35:35, xavier lhomme a écrit :
> > Hi
> >
> >   I have a USRP product with several images organized with
> >a THF file which describe all containing image and a directory for
> each
> > image
> > (with  .Gen, .SOU, .IMG and a .QAL ).
> > The ASRP/USRP driver recognize .IMG file as explain in the web site.
> >
> > ASRP/USRP is related to ADRG (and source code is stored in the ADRG
> > directory)
> > the ADRG driver is able to recognize THF file
> >
> > Is it possible to improve ASRP/USRP driver to support THF files ?
>
> That is undoubtedly technically doable. The THF being a catalog, the best
> use
> of it I can see in an enhanced driver would be to report those images as
> SUBDATASETS of the THF dataset.
>
> >
> >
> > Best regards
> > xlhomme
>
> --
> Geospatial professional services
> http://even.rouault.free.fr/services.html
>
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] coding rules / guidelines

2013-11-16 Thread xavier lhomme
Hi

Is there some coding rules or guidelines for GDAL , naming convention ?

For example where can I found the signification of variable name starting
with
papsz ?

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

Re: [gdal-dev] Support USRP

2013-11-18 Thread xavier lhomme
Hi

  What should be the return of gdalinfo after reading a TRANSH01.THF :
   I have added all IMG in subdatasets. But should I set a SpatialReference
and Extent for the main dataset (by merging all Extent in one ) ?

xav


2013/11/15 Even Rouault 

> Le jeudi 14 novembre 2013 10:35:35, xavier lhomme a écrit :
> > Hi
> >
> >   I have a USRP product with several images organized with
> >a THF file which describe all containing image and a directory for
> each
> > image
> > (with  .Gen, .SOU, .IMG and a .QAL ).
> > The ASRP/USRP driver recognize .IMG file as explain in the web site.
> >
> > ASRP/USRP is related to ADRG (and source code is stored in the ADRG
> > directory)
> > the ADRG driver is able to recognize THF file
> >
> > Is it possible to improve ASRP/USRP driver to support THF files ?
>
> That is undoubtedly technically doable. The THF being a catalog, the best
> use
> of it I can see in an enhanced driver would be to report those images as
> SUBDATASETS of the THF dataset.
>
> >
> >
> > Best regards
> > xlhomme
>
> --
> Geospatial professional services
> http://even.rouault.free.fr/services.html
>
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] Support USRP

2013-11-18 Thread xavier lhomme
Hi
 I've submitted a ticket #5297 and attached a new version of the usrp/asrp
driver.

Best Regards


2013/11/18 Even Rouault 

> Selon xavier lhomme :
>
> > Hi
> >
> >   What should be the return of gdalinfo after reading a TRANSH01.THF :
> >I have added all IMG in subdatasets. But should I set a
> SpatialReference
> > and Extent for the main dataset (by merging all Extent in one ) ?
>
> Datasets that only report subdatasets generally don't define any spatial
> reference or extent. Basically they keep with the defaults of the
> GDALDataset
> constructor.
>
> >
> > xav
> >
> >
> > 2013/11/15 Even Rouault 
> >
> > > Le jeudi 14 novembre 2013 10:35:35, xavier lhomme a écrit :
> > > > Hi
> > > >
> > > >   I have a USRP product with several images organized with
> > > >a THF file which describe all containing image and a directory for
> > > each
> > > > image
> > > > (with  .Gen, .SOU, .IMG and a .QAL ).
> > > > The ASRP/USRP driver recognize .IMG file as explain in the web site.
> > > >
> > > > ASRP/USRP is related to ADRG (and source code is stored in the ADRG
> > > > directory)
> > > > the ADRG driver is able to recognize THF file
> > > >
> > > > Is it possible to improve ASRP/USRP driver to support THF files ?
> > >
> > > That is undoubtedly technically doable. The THF being a catalog, the
> best
> > > use
> > > of it I can see in an enhanced driver would be to report those images
> as
> > > SUBDATASETS of the THF dataset.
> > >
> > > >
> > > >
> > > > Best regards
> > > > xlhomme
> > >
> > > --
> > > Geospatial professional services
> > > http://even.rouault.free.fr/services.html
> > >
> >
>
>
>
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] OGR functionality to remove holes?

2014-01-20 Thread xavier lhomme
3D engine doesn't like hole in a polygone.
 A way to render such polygon is to link the outer ring and the inner ring.
(But it's better to use tesselation.)

for example if you have a rectangle ABCD and a triangle describing the hole
( EFG) , you can create a polygone ABCDAEFGA

It's how I understand the question. I don't think you will find such
function in GEOS (or JTS)


2014/1/20 Even Rouault 

> Le lundi 20 janvier 2014 21:27:18, agerrius a écrit :
> > Hi all,
> >
> > Does OGR have any build in functionality to convert features with holes
> > into features without holes? I don't mean delete the inner rings, but
> > change the geometry so that it covers the same area with only the outer
> > ring.
>
> I'm afraid not to understand what you mean. What is the difference between
> deleting inner rings and "changing the geometry so that it covers the same
> area with only the outer ring" ?
>
> There's no one-line invocation for such functionnality. But it can be done
> with the OGR API and a few dozains lines of code.
>
> >
> > I know GlobalMapper has such a function, but it would be useful if I
> could
> > perform it in my code directly with the OGR library.
> >
> > Thanks,
> >
> > Arno
> >
> >
> >
> > --
> > View this message in context:
> >
> http://osgeo-org.1560.x6.nabble.com/OGR-functionality-to-remove-holes-tp50
> > 99099.html Sent from the GDAL - Dev mailing list archive at Nabble.com.
> > ___
> > gdal-dev mailing list
> > gdal-dev@lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
> --
> Geospatial professional services
> http://even.rouault.free.fr/services.html
> ___
> 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] GDAL and UNITY3D

2014-02-04 Thread xavier lhomme
Has anyone tried and succeeded to use GDAL with Unity ?


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

Re: [gdal-dev] GDAL and UNITY3D

2014-02-04 Thread xavier lhomme
Not Ubuntu but Unity3D.  And on windows store.
 Unity3d , a great 3D Engine.
And GDAL has the ability to request WMS; WCS, handel GeoTiff, load
KML/KMZ...
Then I wonder If I can connect GDAL and Unity and build somethig like
GoogleEarth...




2014-02-04 Etienne Tourigny :

> do you mean the interface that is default in Ubuntu? there should be no
> problem with that. After all, gdal is a library and a set of command line
> tools.
>
>
> On Tue, Feb 4, 2014 at 1:36 PM, xavier lhomme wrote:
>
>> Has anyone tried and succeeded to use GDAL with Unity ?
>>
>>
>> Xav
>>
>> ___
>> 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

Re: [gdal-dev] GDAL 1.11 release plan

2014-03-25 Thread xavier lhomme
Hi
  Adding Visual Studio 2012 2013 in GISInternals for Gdal 1.11 should be
great too.
Xav
Le 25 mars 2014 22:57, "Tamas Szekeres"  a écrit :

> That sounds good to me.
>
> Best regards,
>
> Tamas
>
>
>
> 2014-03-25 22:37 GMT+01:00 Even Rouault :
>
>> Hi,
>>
>> GDAL 1.10 was released about one year ago, so it is time to think about
>> the next
>> release. I think we should just call it 1.11 given that there are no major
>> architectural changes (although there have been non trivial changes in RAT
>> management and for multiple geometry field support, but that only impacts
>> core &
>> drivers), and the C API and ABI is still preserved (for those who have
>> looked at
>> the other thread, my experiments on unification are *not* in trunk). For
>> the
>> details, I have initiated the preliminary NEWS :
>> http://trac.osgeo.org/gdal/export/27091/trunk/gdal/NEWS (*)
>> There are some mentions to 2.0 in the documentation of new features, but
>> I'll
>> end up fixing them to reflect the 1.11 numbering.
>>
>> I think we are in a good shape to start the beta phase soon. If people
>> have
>> features or bug fixes almost ready that they'd like to be in 1.11, please
>> speak
>> up now. Otherwise I suggest issuing a beta-1 at the end of next week,
>> give it a
>> week for testing, and depending on the outcome, issue a beta-2, or just
>> try
>> RC-1. Unless someone volunteers (the process is fairly well documented in
>> HOWTO-RELEASE), I can be release manager for 1.11.
>>
>> Any opinion about that plan ?
>>
>> Best regards,
>>
>> Even
>>
>> --
>> Geospatial professional services
>> http://even.rouault.free.fr/services.html
>> ___
>> 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 mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] Considerations around WFS layer and ArcGIS REST API Connector Plugin

2014-04-05 Thread xavier lhomme
Beginning with  10.1 the ArcGIS REST API introduces the maxRecordCount
property for MapServer and FeatureServer.

See
http://sampleserver5.arcgisonline.com/arcgis/rest/services/CommercialDamageAssessment/FeatureServer?f=pjson

The value can be change when publishing the service.

If you want to obtain all feature, you should first request with
returnCountOnly,
then query as many times as you need using the layerDef property and the
ObjectID field...

xl



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

Re: [gdal-dev] ogr2ogr ERROR 6: No translation

2014-04-09 Thread xavier lhomme
Hi

You should specify the version of gdal you are using (and proj4 too).
Sometimes ago I used NGA Geotrans to perform GeoId conversion. But recent
version of proj4 are able to perform such conversion.
Le 10 avr. 2014 06:11, "Andre Joost"  a écrit :

Am 10.04.2014 04:31, schrieb Jason Mathis:

 Hi All,
>
> On to the next problem:) I discovered today that I need to reproject
> the shape file before rasterizing it. I get the below error.
>
> Any ideas? Is it not possible?
>
>

What extent does your shapefile have?
Some projections are limited to the visible half of the globe.

HTH,
André Joost

___
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

Re: [gdal-dev] Motion: Adopt RFC 46 : GDAL/OGR unification

2014-05-20 Thread xavier lhomme
+1
xl


2014-05-20 14:49 GMT+02:00 Daniel Morissette :

> +1
>
> Daniel
>
>
> On 14-05-19 4:29 PM, Even Rouault wrote:
>
>> Hi,
>>
>> I think that the points raised in the discussion have been answered. I've
>> just
>> done a minor edit to the RFC text to mention RFC 36, as rightly suggested
>> by
>> Ivan.
>>
>> So:
>>
>> Motion : I move to adopt RFC 46: GDAL/OGR unification
>>
>>  http://trac.osgeo.org/gdal/wiki/rfc46_gdal_ogr_unification
>>
>> Starting with my +1
>>
>> Best regards,
>>
>> Even
>>
>>
>
> --
> Daniel Morissette
> T: +1 418-696-5056 #201
> http://www.mapgears.com/
> Provider of Professional MapServer Support since 2000
> ___
> 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] link not working

2014-06-19 Thread xavier lhomme
The link ASpatial on the Geopackage page  do not work
  http://www.gdal.org/geopackage_aspatial.html

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

[gdal-dev] Geotiff "client side"

2014-10-03 Thread xavier lhomme
Hi

  WCS has the ability to return a coverage as a GeoTiff file. Then if you
want to display or process row data from this file in a Javascript web
client, you need to have to ability to decode the "GeoTiff" part of this
file.

 I found a Tiff.js library compiled with Emscripten. I succeed to display a
GeoTiff with this library as a Tiff file. But I still need to decode the
GeoTiff tag and create the "PCSToImage" / "ImageToPCS" functions.
  Two solutions :
   compile GeoTiff with emscripten or rewrite some part of the GeoTiff
function in javascript.

Another solution should be to ask the server to return the parameter from
the image. Is there a way to do this without sending the full image to the
server ?


Best regards

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

Re: [gdal-dev] Motion: Appoint Even Rouault PMC Chair

2015-01-05 Thread xavier lhomme
Great news
And happy new year.
+1
Le 5 janv. 2015 21:45, "Frank Warmerdam"  a écrit :

> Folks,
>
> Motion: Appoint Even Roualt as GDAL Project Management Committee Chair
>
> +1 Frank
>
> ---
>
> For at least a couple years, if not longer, Even has been the leading
> contributor to the GDAL project.  As we start a fresh year in the middle of
> the 2010s I think it is time for us to formally acknowledge Even as the
> project leader.
>
> The PMC chair doesn't really have many responsibilities, beyond ensuring
> that the PMC operates in an orderly fashion and acting as liason to the
> OSGeo board when needed.  But it is also a recognition of Even's great
> work, technically and increasingly in other outward facing efforts such as
> his upcoming presentation on GDAL at FOSS4G NA in March.
>
> I am very pleased to have "my" project pass into his capable hands, and I
> trust his instincts on technical and collaborative matters.
>
> I will continue on as a member of the PMC and commiters list of course.
>
> Best regards,
> Frank
> --
>
> ---+--
> I set the clouds in motion - turn up   | Frank Warmerdam,
> warmer...@pobox.com
> light and sound - activate the windows | http://pobox.com/~warmerdam
> and watch the world go round - Rush| Geospatial Software Developer
>
> ___
> 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

Re: [gdal-dev] Encoding EPSG:3857 (WebMercator) in GeoTIFF, and ArcGIS interoperability

2015-04-15 Thread xavier lhomme
Dis you try with 102113 or 102100  instead of 3857 ? I had once to use
those code in order to be discovered as 3857 in arcgis. when i created
geotiff with gdal warp/transform.
Le 15 avr. 2015 18:16, "Even Rouault"  a écrit :

> Hi,
>
> I've collected in http://trac.osgeo.org/gdal/ticket/5924 a summary of
> issues
> and findings when trying to write GeoTIFF files in EPSG:3857 in a
> "standard" way
> (using ProjectedCSTypeGeoKey = 3857), while making them correctly
> displayed by
> ArcGIS (and ideally by other independant implementations).
> The current situation is that there's no such way (AFAIK). I'd appreciate
> any
> feedback/suggestion related to that issue.
>
> Best regards,
>
> 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] Convert multipolygons from OSM

2017-02-07 Thread xavier lhomme
Hi
 I'm trying to extract multipologons from a PBF file  and convert them to a
Fgdb or ashapefile  :

More pricesely , I'm trying to extract waterway on Paris, And I don't
succeed to retreive the Seine river. But only some part.

Here is my cmdline  :

Ogr2ogr -f "FileGDB"   c:\Users\xle\Documents\ArcGIS\idf.gdb -nln waterway
-config OSM_CONFIG_FILE myosmconf.ini -skipfailures -overwrite -gt 65536
-dialect SQLITE  -sql "SELECT GEOMETRY, osm_id, waterway as fclass, name
from multipolygons where waterway is not null " ile-de-france-latest.osm.pbf



waterway has been added to the myosmconf.ini

[multipolygons]

# common attributes

# note: for multipolygons, osm_id=yes instantiates a osm_id field for the
id of relations

# and a osm_way_id field for the id of closed ways. Both fields are
exclusively set.

osm_id=yes

osm_version=no

osm_timestamp=no

osm_uid=no

osm_user=no

osm_changeset=no


# keys to report as OGR fields

attributes=name,type,aeroway,amenity,admin_level,barrier,
boundary,building,craft,geological,historic,land_area,
landuse,leisure,man_made,military,natural,office,place,shop,sport,tourism,
waterway

# keys that should NOT be reported in the "other_tags" field

ignore=area,created_by,converted_by,source,time,ele,
note,openGeoDB:,fixme,FIXME

# uncomment to avoid creation of "other_tags" field

#other_tags=no

# uncomment to create "all_tags" field. "all_tags" and "other_tags" are
exclusive

#all_tags=yes


Is there some other parameter thaht I should take into account ?

Or should I try with OSMOSIS to convert first to a OSM file then with
Ogr2Ogr as I saw on some blogs ?



best regards

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

Re: [gdal-dev] Convert multipolygons from OSM

2017-02-07 Thread xavier lhomme
Hi
 Thanks.
I just found that I need to add waterway in the closed_ways_are_polygons
option in the osmconf.ini

Le 7 févr. 2017 9:05 PM, "jratike80" 
a écrit :

> lhomme.xavier wrote
> > Hi
> >  I'm trying to extract multipologons from a PBF file  and convert them to
> > a
> > Fgdb or ashapefile  :
> >
> > More pricesely , I'm trying to extract waterway on Paris, And I don't
> > succeed to retreive the Seine river. But only some part.
> >
> > Here is my cmdline  :
> >
> > Ogr2ogr -f "FileGDB"   c:\Users\xle\Documents\ArcGIS\idf.gdb -nln
> waterway
> > -config OSM_CONFIG_FILE myosmconf.ini -skipfailures -overwrite -gt 65536
> > -dialect SQLITE  -sql "SELECT GEOMETRY, osm_id, waterway as fclass, name
> > from multipolygons where waterway is not null "
> > ile-de-france-latest.osm.pbf
>
> Hi,
>
> Seine in OSM is quite a complicated thing
> http://www.openstreetmap.org/relation/962076#map=7/48.515/2.473. For
> converting all of it into GIS format you must study how it is constructed
> and think how you can collect all the pieces.
>
> -Jukka Rahkonen-
>
>
>
>
> --
> View this message in context: http://osgeo-org.1560.x6.
> nabble.com/gdal-dev-Convert-multipolygons-from-OSM-tp5306803p5306811.html
> Sent from the GDAL - Dev mailing list archive at Nabble.com.
> ___
> gdal-dev mailing list
> gdal-dev@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] Ogr2Ogr convert wih max feature

2012-03-13 Thread xavier lhomme
Hi



  I want to convert data from a WFS to a FilkeGDB but limit the download of
feature with a max Feature by layer args :



Ogr2Ogr –f “FleGDB” toto.gdb http://?request=GetCapabilities&service=WFS<http://%3curl%20webserver%3e/?request=GetCapabilities&service=WFS>
maxFeature=5



I don’t find any option in the command line.



Have any idea ? or do I need to write a function with Ogr Sdk ?

Thanks in advance

Xavier Lhomme
GIS&3D Software Component Manager
PRS / DT / ACE / Pôle Carto
TEL : 01 41 30 45 26
*Thales Communications* *& Security*
160 boulevard de Valmy - 92704 Colombes - France
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] Ogr2Ogr convert wih max feature

2012-03-13 Thread xavier lhomme
Thanks I succeed to import only 5 features for each layer with the
MAXFEATURES args !

you need to append the MAXFEATURES parameter to the url querystring,
> for example:
>
> ogr2ogr -f “FleGDB” mydb.gdb
> WFS:"http://geohub.jrc.ec.europa.eu/effis/ows?SERVICE=WFS&MAXFEATURES=3";
> FiresAll
>
> best regards
> P
>
> --
> Paolo Corti
> Geospatial software developer
> web: http://www.paolocorti.net
> twitter: @capooti
> skype: capooti
>
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] Adding a proxy when Opening a OgrWFSDatasource

2012-03-15 Thread xavier lhomme
Hello

 I made a small sample in C#  that connect to a WFS source and obtain the
feature.
 I want to check which request has been send to the server.
 How can I do that ? I want to use fiddler but I need to send all request
to a proxy. How could I pass a proxy to the OgrWFSDatasource ?

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

[gdal-dev] [WFS Drvier] "Id Only" and "Geometry Only"

2012-03-16 Thread xavier lhomme
Hello
 I want to selectFeatures from a WFS DataSource.
Is it possible to return Geometry Only without the attribut ?
 And Is it possible to return only Id (without Geometry and Attribut ) ?

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

Re: [gdal-dev] [WFS Drvier] "Id Only" and "Geometry Only"

2012-03-16 Thread xavier lhomme
My first idea was adding traverseXlinkDepth=1 but I think it s not
supported by my ArcS Server
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] Apply Spatial Operator

2012-04-02 Thread xavier lhomme
Hi

 I'm connected to a WFS Source. I want to filter with a polygon and
specific spatial operators like contains , touches, intersects,...
 In the API the layer has the SpatialFilter function where we could set the
Geometry but I dont find any function for setting the spatial operator.
 Do I need to filter after obtenaing the Geometry with GetFeature ?

Thanks in advance

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

[gdal-dev] Request for Spatial Operator function

2012-05-04 Thread xavier lhomme
Hi

 I'm using a WFS Driver in a C# project. I would like  to add a new
function to the OGRWFSLayer like SetSpatialOperator()
and modify the filter part of the function OGRWFSLayer::MakeGetFeatureURL
if a spatial operator has been set.
 then I need to call the SetSpatialOperator in C#.

 IWhat is the best approach do to this :
   - make a request to de ogr dev team
   - try to code the function by myself and send the result to the
community


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

[gdal-dev] [WFS Driver] Http Error Code 414

2012-06-12 Thread xavier lhomme
Hello

 I'm requesting a WFS source with a very long request. The URI generated by
the WFS driver is very long (more than 2048). In return I' ve got an HTTP
error code 414.
 OGRWFSDataSource::HTTPFetch function should be protected against very long
URI and switch between a GET request to a POST request.

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

Re: [gdal-dev] [WFS Driver] Http Error Code 414

2012-06-19 Thread xavier lhomme
Hi
I tried to submit a POST request with the KVP form to an ArcGIS Server 10.0
but in response I've got an XML Parsing error.

 Do I need to translate the KVP form of the url into an XML form ?

xav


2012/6/12 Even Rouault 

> Le mardi 12 juin 2012 14:38:05, xavier lhomme a écrit :
> > Hello
> >
> >  I'm requesting a WFS source with a very long request. The URI generated
> by
> > the WFS driver is very long (more than 2048). In return I' ve got an HTTP
> > error code 414.
> >  OGRWFSDataSource::HTTPFetch function should be protected against very
> long
> > URI and switch between a GET request to a POST request.
>
> Patch welcome and public server for testing :-)
>
> >
> > best regards
> > xavier
>
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] [WFS Driver] Http Error Code 414

2012-06-19 Thread xavier lhomme
>From specification

When using the HTTP POST method, the content type for XML encoded WFS
requests must be set to text/xml.  When using the HTTP POST method, the
content type for KVP encoded WFS requests must be set to
application/x-www-form-urlencoded and the content of the document must be
equivalent to the query string of an HTTP GET request.  That is, the
content must be equivalent to the string that follows the ‘?’ character in
a URL encoded GET request.  Of course, the content must be encoded [10] to
protect special characters.

Then I will try to split the url after ? Encode the end of the url to
protect special character, set application/x-www-form-urlencoded and the
end url to the post parameter

And if not working i will try the xml form...
Le 19 juin 2012 19:40, "Even Rouault"  a
écrit :

> Le mardi 19 juin 2012 17:06:17, xavier lhomme a écrit :
> > Hi
> > I tried to submit a POST request with the KVP form to an ArcGIS Server
> 10.0
> > but in response I've got an XML Parsing error.
> >
> >  Do I need to translate the KVP form of the url into an XML form ?
>
> Yes, the content you send in a POST is different from the KVP of a GET.
> There
> are examples (if I remember correctly) in the OGC WFS spec.
>
> >
> > xav
> >
> >
> > 2012/6/12 Even Rouault 
> >
> > > Le mardi 12 juin 2012 14:38:05, xavier lhomme a écrit :
> > > > Hello
> > > >
> > > >  I'm requesting a WFS source with a very long request. The URI
> > > >  generated
> > >
> > > by
> > >
> > > > the WFS driver is very long (more than 2048). In return I' ve got an
> > > > HTTP error code 414.
> > > >
> > > >  OGRWFSDataSource::HTTPFetch function should be protected against
> very
> > >
> > > long
> > >
> > > > URI and switch between a GET request to a POST request.
> > >
> > > Patch welcome and public server for testing :-)
> > >
> > > > best regards
> > > > xavier
>
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] WFS driver does not do URL-encoding right

2012-08-17 Thread xavier lhomme
Hi
 I tried to add to the function SetAttributeFirlter the following  filter :
 nam = 'MY#FIRST TEST ON'   but it doesn't work.
 then I triedHttpUtility.UrlEncode( ) but it doesn't work too.

 If I encode my string like this  nam = 'MY%23 FIRST+TEST+ON ' it works;

 Could you explain a bit more what we need to encode ?

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

Re: [gdal-dev] GDAL/OGR 1.9.2RC1 Available for Review

2012-10-03 Thread xavier lhomme
Hi

I'm not familiar with the revision  process. I just checked this release
candidate but it does not take into accounts the latest version of the WFS
driver which has corrected ​​this summer by Even (Escaping function).
I've patched my 1.9.1 with the latest revision of the WFS driver and it
works fine for me.
Is it possible to integrate the last source code of the WFS driver into the
1.9.2 release ?

Thanks in advance.

2012/10/3 Ari Jolma 

> On 10/03/2012 08:34 PM, Frank Warmerdam wrote:
>
>> Folks,
>>
>> I have prepared a GDAL/OGR 1.9.2 release candidate.  I'd appreciate people
>> looking it over.  I didn't do any swig or configure regeneration - I'm
>> not sure if
>> that is needed or exactly sure where to do it to avoid churn.
>>
>>
>> http://download.osgeo.org/**gdal/gdal192RC1.zip
>>
>> http://download.osgeo.org/**gdal/gdal-1.9.2RC1.tar.gz
>>
>> I'll call for a vote promoting it to final if I don't hear of any
>> serious problems
>> today.
>>
>
> Looks (configures, compiles and runs Perl tests on Ubuntu 10.04) ok to me.
>
> Ari
>
>
>> Best regards,
>>
>
> __**_
> 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] Testing dataset

2012-10-12 Thread xavier lhomme
Hi

 Is there a free data set that can be downloaded in order to check the
compliance or the conformance of a geographic software (something like
Geocapi) ?
I found a dataset for testing the NITF driver :
www.gwg.nga.mil/ntb/baseline/software/samplefile.html.

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

Re: [gdal-dev] Fw: OGR with File Geodatabases

2012-10-15 Thread xavier lhomme
Hi,

Download source code from http://www.gisinternals.com/sdk/

MSVC2010 (Win32) -release. Download and install this version:  release
release-1600-gdal-1-9-1-mapserver-6-0-3

Then Donwload the following option : MSVC2010 (Win32) -sdk
release-1600-dev
http://www.gisinternals.com/sdk/PackageList.aspx?file=release-1600-dev.zip

Dezip source code
open release-1600-dev\gdal\nmake.opt
uncomment FGDB lines  sand set the FGDB SDK path.


general compilation instruction
nmake /nologo gdal> gdal_compil.txt
nmake /nologo gdal-csharp > gdal_csharp.txt

but to compil filegdb only :
go to release-1600-dev\gdal\ogr\ogrsf_frmts\filegdb
nmake /nologo /f makefile.vc ogr_filegdb.dll
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] Convert kml to Shapefile and conserve polygon's colors with Ogr2Ogr

2012-10-22 Thread xavier lhomme
Hi
There is no graphical representation in the shapefile.
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] Security Classification

2012-10-23 Thread xavier lhomme
Hi

How GDAL/OGR handles security classification ? Is there specific tag used
by gdal/org to store such information ?

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

Re: [gdal-dev] .tab to .mif with ogr2ogr

2012-11-01 Thread xavier lhomme
It works fine for me with GDAL 1.9.1.The issus coud be depends on the
version you used or the datasource.
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] Create a ISpatialReference from an SpatialReference

2012-11-17 Thread xavier lhomme
Hi

 How to get the EPSG Code from  a OSR.SpatialReference ?

 Is there some explample to create an ESRI ISpatialReference  from a
OSR.SpatialReference ?



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

Re: [gdal-dev] Create a ISpatialReference from an SpatialReference

2012-11-18 Thread xavier lhomme
Hi
Thanks Frank :

In C# :

public static int GetWKID(OSR.SpatialReference spatialRef)
{
int wkid = -1;
if (spatialRef.IsProjected()==1)
{

string PROJCS = spatialRef.GetAuthorityName("PROJCS");
if (PROJCS != null && PROJCS.Equals("EPSG"))
{

 Int32.TryParse(spatialRef.GetAuthorityCode("PROJCS"),out wkid);
}
}
else if (spatialRef.IsGeographic() == 1)
{
string GEOGCS = spatialRef.GetAuthorityName("GEOGCS");
if (GEOGCS != null && GEOGCS.Equals("EPSG"))
{
Int32.TryParse(spatialRef.GetAuthorityCode("GEOGCS"),
out wkid);
}
}

return wkid;
}

For the ESRI Part it should be :
ISpatialReferenceFactory3 spatialFact = new
SpatialReferenceEnvironmentClass();
ISpatialReference lreference = null;
int wkid = GetWKID(ogrSR);
 if (wkid != -1)
lreference = spatialFact.CreateSpatialReference(wkid);
 else
{
ogrSR.MorphToESRI();
string wktSR = "";
ogrSR.ExportToWkt(out wktSR);
lreference = create from wkt
   // lreference =
spatialFact.CreateESRISpatialReferenceFromPRJ(wktSR);
   }




2012/11/17 Frank Warmerdam 

> Xavier,
>
> You haven't indicated your target language.
>
>
> On 12-11-17 08:22 AM, xavier lhomme wrote:
>
>> Hi
>>
>>   How to get the EPSG Code from  a OSR.SpatialReference ?
>>
>
> In C++ you could do something like:
>
> int nPCS = -1;
> if( poSRS->GetAuthorityName("**PROJCS") != NULL
> && EQUAL(poSRS->GetAuthorityName(**"PROJCS"),"EPSG") )
> {
> nPCS = atoi(poSRS->GetAuthorityCode("**PROJCS"));
> }
>
> This works for projected coordinate systems.  For geographic
> coordinate systems you could replace PROJCS with GEOGCS.
>
> I would add that for coordinate systems without existing AUTHORITY
> entries with the EPSG codes it can be helpful to run the
> AutoIdentifyEPSG() method on the OGRSpatialReference.  This will make
> a somewhat feeble attempt to recognise EPSG coordinate systems and
> attach the authority codes.
>
>
>Is there some explample to create an ESRI ISpatialReference  from a
>> OSR.SpatialReference ?
>>
>
> I am not familiar with ISpatialReference, but with an OGRSpatialReference
> you can call morphToESRI() to switch the coordinate system definition
> format to match what is expected by the ArcGIS Projection Engine and
> then fetch the string out with ExportToWkt().  In Python this might look
> something like:
>
> srs = ogr.SpatialReference()
> srs.ImportFromEPSG(4202)
> srs.MorphToESRI()
> pe_wkt = srs.ExportToWkt()
>
> Best regards,
> --
> --**-+**
> --
> I set the clouds in motion - turn up   | Frank Warmerdam,
> warmer...@pobox.com
> light and sound - activate the windows | http://home.gdal.org/warmerda
> and watch the world go round - Rush| Geospatial Software Developer
>
> __**_
> gdal-dev mailing list
> gdal-dev@lists.osgeo.org
> http://lists.osgeo.org/**mailman/listinfo/gdal-dev<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] WFS DefaultSRS OtherSRS

2012-11-28 Thread xavier lhomme
Hi
 The capability of a WFS source return something like this :

- 

  

  WPI_Aug09

  urn:ogc:def:crs:EPSG:6.9:104000

  urn:ogc:def:crs:EPSG:6.9:4326

- 

  text/xml;
subType=gml/3.1.1/profiles/gmlsf/1.0.0/0

  

- 

  -178.13299717 -77.849998775

  179.36699705 78.916697912

  

  
How the wfs driver handles the OtherSRS ?
 Is he handles only the DefaultSRS ?
berst regards
xavier
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] WFS DefaultSRS OtherSRS

2012-12-04 Thread xavier lhomme
Hi
 I added this option &SRSNAME=urn:ogc:def:crs:EPSG:6.9:4326 to the WFS
connexion string on my datasource and it works.
 but I tried on another datasource and the connexion failed with this
option. (whereas it works if you do not put the option at the end of the
connexion string);

 I checked the GetCapabilities and I found that the datasource has some
layers with null extent (case)::


- 

  BigMap:AquedctP

  AquedctP

  urn:ogc:def:crs:EPSG:6.9:4326

- 

  text/xml;
subType=gml/3.1.1/profiles/gmlsf/1.0.0/0

  

- 

  NaN NaN

  NaN NaN

  

  




2012/11/28 Even Rouault 

>
> > How the wfs driver handles the OtherSRS ?
> >  Is he handles only the DefaultSRS ?
>
> It will select the DefaultSRS, unless you add as an option like
> &SRSNAME=urn:ogc:def:crs:EPSG:6.9:4326 to the WFS connexion string.
>
> > berst regards
> > xavier
>
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] Incorrect path after gdal-19-1600-core.msi

2013-02-01 Thread xavier lhomme
Hi

 I use the msi file gdal-19-1600-core.msi in order to install gdal on a
Windows Server 2008 R2. Once the installation completed, the gdal
installation directory has been added to the Path. The path contains
%SYSTEMROOT% but doesn't expand this variable anymore.
If I open a cmdtool, for example neither  xcopy is not recognized nor
ogrinfo,.

If I reset the path then I reboot my computer it seems to work again.

Do You have any idea to reset the path after GDAL installation ?
xav
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] Driver maintenance - long-term solution ?

2021-01-13 Thread xavier lhomme
Hello all
 The question of maintaining the old drivers raises a whole bunch of
questions: how to finance the technical debt, how to involve more
developers in this project, how to promote it, ... GDAL is an OSGeo
project. Shouldn't these questions be addressed by OSGeo which should help
in the distribution of funds, help in piloting this project...? Maybe OSGeo
could get closer to an organization like OGC with members funding projects,
initiative projets, testbed ...

Best regards
xlhomme

Le jeu. 14 janv. 2021 à 07:06, Ari Jolma  a écrit :

> Thank you Howard, Daniel, Jukka, and others.
>
> When I google for qgis I get its page and six sub pages in the way
> Google does it. One of those is "Donations". When I do the same for
> GDAL, there's no such page. I guess the first and practical thing to do
> would be to make regular donations possible. The second thing would be
> to advocate companies/people to make donations without strings attached.
> That's already much in the domain of OSGeo, but the first thing is quite
> much in the project's domain.
>
> Best regards,
>
> Ari
>
>
> Daniel Morissette kirjoitti 13.1.2021 klo 21.11:
> > Thank you Howard for a great analysis and for pointing out the key
> > problems.
> >
> > Personally I think the top two problems are:
> >
> > 1- Bus number: we need to find a way to increase the number of active
> > maintainers to ensure the viability and velocity of the project
> >
> > 2- Sustainable revenue stream for maintenance activities: as you
> > explained, it is relatively easy to fund features, but profitable
> > companies selling software or services that use GDAL need to realize
> > that it would be an investment for them to contribute even just a
> > fraction of 1% of their sales in "non-string-attached funding" to
> > support non-sexy stuff such as release management, bug fixes, security
> > fixes, dependency upgrades, packaging, docs, etc... not only in GDAL,
> > but in the top-5 open source components that they rely on.
> >
> > The QGIS approach to managing funding is an option, but it's not the
> > only one. I would tend to go for a more decentralized approach to
> > reduce the risk for the project with a single entity supporting it.
> >
> > I step up to work with you Howard toward improving the situation.
> > (Actually I had already written personally to Even to discuss some
> > options before seeing your reply)
> >
> > Daniel
> >
> >
> >
> > On 2021-01-13 12:33, Howard Butler wrote:
> >>
> >>> Is there something fundamentally wrong with the current GDAL?
> >>
> >> The project's history is one person doing most of the work. This
> >> person eventually burns out.
> >>
> >> Here's a table of the top five lifetime commits to the repository as
> >> of December 2020.
> >>
> >> Even Rouault – 19,838
> >> Frank Warmerdam – 11,503
> >> Kurt Schwehr – 3,403
> >> Andrey Kiselev – 1,320
> >> Howard Butler – 768
> >>
> >> The reason why this person burns out is they are actually doing
> >> *three* jobs, not one. Three, you say?
> >>
> >> First is the actual maintainer job. You're the clearinghouse for
> >> bugs, the primary authority on the mailing list, the first respondent
> >> in the bug tracker, and the one that organizes and cuts the software
> >> release. When we think of the maintainer for the GDAL project, this
> >> is what we think of. No one organization will pay for just this job.
> >>
> >> This means you need a revenue stream to make it maintenance your full
> >> time gig. That's easy enough, just get paid for working on GDAL,
> >> right? Well sure, but people don't want to pay for you to fix bugs
> >> that users vaguely provide in the mailing list. They want to pay for
> >> functionality they need to add to their software. So you are in a
> >> spot – you have to *add* more to the software to earn revenue. For
> >> GDAL, adding more means more drivers and more capabilities for those
> >> drivers (CPL, VSICloud, etc). This creates more bugs and maintenance
> >> load that the original directed funder supports for only a little
> >> while. This second job is in conflict with the first and the
> >> dissonance amplifies as time goes one.
> >>
> >> The third job is you have to solicit work through the contacts you've
> >> built up to keep the revenue hopper full. Invoicing, statements of
> >> work, negotiation, telecons, and the usual business stuff. People see
> >> you as cheap because you're "open source", and pressure you on price,
> >> scope, and completion time. You eventually orient about a small cadre
> >> of repeat clients with strong trust relationships.
> >>
> >> How can this be fixed?
> >>
> >> 1) Burn through the current maintainer and hope another one comes
> >> along. The users of the GDAL project simply got lucky that Even
> >> picked up the torch after Frank moved on. Maybe that happens again on
> >> the next iteration.
> >>
> >> 2) Refactor the software so that more maintainers can participate.
> >> That's been our current discussion, which doesn't s

[gdal-dev] ArcGIS and GDAL

2019-03-06 Thread xavier lhomme
Hi

At the ESRI DevSummit 2019, ESRI demonstrated how it's possible to use GDAL
with ArcGIS Pro using python  :

https://www.youtube.com/watch?v=FXlokt6mCkA&list=PLaPDDLTCmy4Y3e8AkFYr9n-njdf2fAbS4&index=26

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