Hi,

Perhaps GDAL does not follow redirections automatically:

curl http://www.aixm.aero/schema/4.5/AIXM-Snapshot.xsd
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a 
href=https://www.aixm.aero/schema/4.5/AIXM-Snapshot.xsd>here</a>.</p>
</body></html>

Did you already edit your GML by changing http into https?

-Jukka Rahkonen-

Lähettäjä: paul.m...@lfv.se <paul.m...@lfv.se>
Lähetetty: torstai 9. joulukuuta 2021 11.19
Vastaanottaja: Rahkonen Jukka (MML) <jukka.rahko...@maanmittauslaitos.fi>; 
even.roua...@spatialys.com; gdal-dev@lists.osgeo.org
Aihe: SV: [gdal-dev] ogrinfo XML (AIXM)

Hi,
I turnd off the proxy and added -debug on.
This is the result:
ogrinfo GMLAS:c:\Temp\data\mydata.GML --debug on
GDAL: Auto register C:\Program Files\Gdal_321\bin\gdal\plugins\gdal_BAG.dll 
using GDALRegister_BAG.
GDAL: Auto register C:\Program 
Files\Gdal_321\bin\gdal\plugins\gdal_ECW_JP2ECW.dll using 
GDALRegister_ECW_JP2ECW.
GDAL: Auto register C:\Program Files\Gdal_321\bin\gdal\plugins\gdal_FITS.dll 
using GDALRegister_FITS.
GDAL: Auto register C:\Program Files\Gdal_321\bin\gdal\plugins\gdal_GMT.dll 
using GDALRegister_GMT.
GDAL: Auto register C:\Program Files\Gdal_321\bin\gdal\plugins\gdal_HDF4.dll 
using GDALRegister_HDF4.
GDAL: Auto register C:\Program 
Files\Gdal_321\bin\gdal\plugins\gdal_HDF4Image.dll using GDALRegister_HDF4Image.
GDAL: Auto register C:\Program Files\Gdal_321\bin\gdal\plugins\gdal_HDF5.dll 
using GDALRegister_HDF5.
GDAL: Auto register C:\Program 
Files\Gdal_321\bin\gdal\plugins\gdal_HDF5Image.dll using GDALRegister_HDF5Image.
GDAL: Auto register C:\Program Files\Gdal_321\bin\gdal\plugins\gdal_KEA.dll 
using GDALRegister_KEA.
GDAL: Auto register C:\Program 
Files\Gdal_321\bin\gdal\plugins\gdal_MG4Lidar.dll using GDALRegister_MG4Lidar.
GDAL: Auto register C:\Program Files\Gdal_321\bin\gdal\plugins\gdal_MrSID.dll 
using GDALRegister_MrSID.
GDAL: Auto register C:\Program Files\Gdal_321\bin\gdal\plugins\gdal_netCDF.dll 
using GDALRegister_netCDF.
GDAL: Auto register C:\Program Files\Gdal_321\bin\gdal\plugins\gdal_PDF.dll 
using GDALRegister_PDF.
GDAL: Auto register C:\Program 
Files\Gdal_321\bin\gdal\plugins\ogr_AmigoCloud.dll using RegisterOGRAmigoCloud.
GDAL: Auto register C:\Program 
Files\Gdal_321\bin\gdal\plugins-external\ogr_FileGDB.dll using 
RegisterOGRFileGDB.
OGR: XMLPlatformUtils::Initialize()
GMLAS: XSD cache directory: C:\Users\anpaumal\.gdal\gmlas_xsd_cache
GMLAS: 
noNamespaceSchemaLocation=http://www.aixm.aero/schema/4.5/AIXM-Snapshot.xsd
GMLAS: Resolving http://www.aixm.aero/schema/4.5/AIXM-Snapshot.xsd () to 
/vsicurl_streaming/http://www.aixm.aero/schema/4.5/AIXM-Snapshot.xsd
VSICURL: Start download for http://www.aixm.aero/schema/4.5/AIXM-Snapshot.xsd
HTTP: libcurl/7.74.0-DEV OpenSSL/1.1.1i zlib/1.2.11
VSICURL: Stop download for http://www.aixm.aero/schema/4.5/AIXM-Snapshot.xsd
ERROR 3: Cannot resolve http://www.aixm.aero/schema/4.5/AIXM-Snapshot.xsd
OGR: XMLPlatformUtils::Terminate()
FAILURE:
Unable to open datasource `GMLAS:c:\Temp\data\mydata.GML' with the following 
drivers.
  -> BAG
  -> JP2ECW
  -> FITS
  -> netCDF
  -> PDF
  -> AmigoCloud
  -> FileGDB
  -> ESRIC
  -> PCIDSK
  -> PDS4
  -> VICAR
  -> JP2OpenJPEG
  -> MBTiles
  -> EEDA
  -> OGCAPI
  -> DB2ODBC
  -> ESRI Shapefile
  -> MapInfo File
  -> UK .NTF
  -> LVBAG
  -> OGR_SDTS
  -> S57
  -> DGN
  -> OGR_VRT
  -> REC
  -> Memory
  -> BNA
  -> CSV
  -> NAS
  -> GML
  -> GPX
  -> LIBKML
  -> KML
  -> GeoJSON
  -> GeoJSONSeq
  -> ESRIJSON
  -> TopoJSON
  -> Interlis 1
  -> Interlis 2
  -> OGR_GMT
  -> GPKG
  -> SQLite
  -> ODBC
  -> WAsP
  -> PGeo
  -> MSSQLSpatial
  -> OGR_OGDI
  -> PostgreSQL
  -> MySQL
  -> OpenFileGDB
  -> XPlane
  -> DXF
  -> CAD
  -> FlatGeobuf
  -> Geoconcept
  -> GeoRSS
  -> GPSTrackMaker
  -> VFK
  -> PGDUMP
  -> OSM
  -> GPSBabel
  -> SUA
  -> OpenAir
  -> OGR_PDS
  -> WFS
  -> OAPIF
  -> HTF
  -> AeronavFAA
  -> Geomedia
  -> EDIGEO
  -> SVG
  -> CouchDB
  -> Cloudant
  -> Idrisi
  -> ARCGEN
  -> SEGUKOOA
  -> SEGY
  -> ODS
  -> XLSX
  -> Elasticsearch
  -> Walk
  -> Carto
  -> SXF
  -> Selafin
  -> JML
  -> PLSCENES
  -> CSW
  -> VDV
  -> GMLAS
  -> MVT
  -> NGW
  -> MapML
  -> TIGER
  -> AVCBin
  -> AVCE00
  -> HTTP
GDAL: In GDALDestroy - unloading GDAL shared library.

Från: Rahkonen Jukka (MML) 
<jukka.rahko...@maanmittauslaitos.fi<mailto:jukka.rahko...@maanmittauslaitos.fi>>
Skickat: den 9 december 2021 10:11
Till: Malm, Paul (Operations AIM) <paul.m...@lfv.se<mailto:paul.m...@lfv.se>>; 
even.roua...@spatialys.com<mailto:even.roua...@spatialys.com>; 
gdal-dev@lists.osgeo.org<mailto:gdal-dev@lists.osgeo.org>
Ämne: Re: [gdal-dev] ogrinfo XML (AIXM)


Klicka bara på länkar och öppna bilagor om du litar på avsändaren och vet att 
innehållet är säkert.
Hi,

The syntax is correct but "ogrinfo GMLAS:c:\Temp\data\Mydata.GML --debug on" 
would print much more info. Now something fails here: ERROR 3: Cannot resolve 
http://www.aixm.aero/schema/4.5/AIXM-Snapshot.xsd<https://url11b.mailanyone.net/v1/?m=1mvFSU-0007Mi-5p&i=57e1b682&c=3D6NElsg50_At25FG1xTAHkKYS0u-w4J9U7GdQGCYQIMPbu33hOmsgC8nWHBs-jUM4YcB5GdDGZ2OK892mNb05ysdi24X6gdolItqMAQ_OJPsMupkt1Xq3k5E1KF-zS-4rgVOMTTQTrYT1nz_TVFM9Bs8oqcnCJIVNdAYtXL0ZHHNAh1u7XhJyIocwUnOxKrfbm0X0cD3DstF-0nBmCxHwlAIq9qJXaJjfTAgbcVYDcO8HhmmedYA4hiG0DGN3tDjcExg5iqscTbqUIhXE3b7bph9HFGdGPTu8KpLFmZBopRMGz53SkPFWN1FMZuGlXp>

The schema file seems to be moved to https, I would have a try by editing that 
in your GML file. If you are behind a proxy server set http_proxy and 
https_proxy environment variables so that GDAL can access the schemas.

-Jukka Rahkonen-

Lähettäjä: gdal-dev 
<gdal-dev-boun...@lists.osgeo.org<mailto:gdal-dev-boun...@lists.osgeo.org>> 
Puolesta paul.m...@lfv.se<mailto:paul.m...@lfv.se>
Lähetetty: torstai 9. joulukuuta 2021 10.52
Vastaanottaja: even.roua...@spatialys.com<mailto:even.roua...@spatialys.com>; 
gdal-dev@lists.osgeo.org<mailto:gdal-dev@lists.osgeo.org>
Aihe: Re: [gdal-dev] ogrinfo XML (AIXM)

Is this the correct syntax:
C:\>ogrinfo GMLAS:c:\Temp\data\Mydata.GML

I get the error:
ERROR 3: Cannot resolve 
http://www.aixm.aero/schema/4.5/AIXM-Snapshot.xsd<https://url11b.mailanyone.net/v1/?m=1mvFSU-0007Mi-5p&i=57e1b682&c=3D6NElsg50_At25FG1xTAHkKYS0u-w4J9U7GdQGCYQIMPbu33hOmsgC8nWHBs-jUM4YcB5GdDGZ2OK892mNb05ysdi24X6gdolItqMAQ_OJPsMupkt1Xq3k5E1KF-zS-4rgVOMTTQTrYT1nz_TVFM9Bs8oqcnCJIVNdAYtXL0ZHHNAh1u7XhJyIocwUnOxKrfbm0X0cD3DstF-0nBmCxHwlAIq9qJXaJjfTAgbcVYDcO8HhmmedYA4hiG0DGN3tDjcExg5iqscTbqUIhXE3b7bph9HFGdGPTu8KpLFmZBopRMGz53SkPFWN1FMZuGlXp>
FAILURE:
Unable to open datasource `GMLAS:c:\Temp\eaddata\EADdata.GML' with the 
following drivers.
  -> BAG
  -> JP2ECW
  -> FITS
  -> netCDF
  -> PDF
  -> AmigoCloud
  -> FileGDB
  -> ESRIC
  -> PCIDSK
  -> PDS4
  -> VICAR
  -> JP2OpenJPEG
  -> MBTiles
  -> EEDA
  -> OGCAPI
  -> DB2ODBC
  -> ESRI Shapefile
  -> MapInfo File
  -> UK .NTF
  -> LVBAG
  -> OGR_SDTS
  -> S57
  -> DGN
  -> OGR_VRT
  -> REC
  -> Memory
  -> BNA
  -> CSV
  -> NAS
  -> GML
  -> GPX
  -> LIBKML
  -> KML
  -> GeoJSON
  -> GeoJSONSeq
  -> ESRIJSON
  -> TopoJSON
  -> Interlis 1
  -> Interlis 2
  -> OGR_GMT
  -> GPKG
  -> SQLite
  -> ODBC
  -> WAsP
  -> PGeo
  -> MSSQLSpatial
  -> OGR_OGDI
  -> PostgreSQL
  -> MySQL
  -> OpenFileGDB
  -> XPlane
  -> DXF
  -> CAD
  -> FlatGeobuf
  -> Geoconcept
  -> GeoRSS
  -> GPSTrackMaker
  -> VFK
  -> PGDUMP
  -> OSM
  -> GPSBabel
  -> SUA
  -> OpenAir
  -> OGR_PDS
  -> WFS
  -> OAPIF
  -> HTF
  -> AeronavFAA
  -> Geomedia
  -> EDIGEO
  -> SVG
  -> CouchDB
  -> Cloudant
  -> Idrisi
  -> ARCGEN
  -> SEGUKOOA
  -> SEGY
  -> ODS
  -> XLSX
  -> Elasticsearch
  -> Walk
  -> Carto
  -> SXF
  -> Selafin
  -> JML
  -> PLSCENES
  -> CSW
  -> VDV
  -> GMLAS
  -> MVT
  -> NGW
  -> MapML
  -> TIGER
  -> AVCBin
  -> AVCE00
  -> HTTP

Kind regards,
Paul

Från: gdal-dev 
<gdal-dev-boun...@lists.osgeo.org<mailto:gdal-dev-boun...@lists.osgeo.org>> För 
Even Rouault
Skickat: den 8 december 2021 14:17
Till: gdal-dev@lists.osgeo.org<mailto:gdal-dev@lists.osgeo.org>
Ämne: Re: [gdal-dev] ogrinfo XML (AIXM)


Klicka bara på länkar och öppna bilagor om du litar på avsändaren och vet att 
innehållet är säkert.

Paul,

the GML driver can open some formulation of AIXM, but probably not all.

You may also try the generic GMLAS driver: 
https://gdal.org/drivers/vector/gmlas.html<https://url11b.mailanyone.net/v1/?m=1muwp2-00020I-3x&i=57e1b682&c=uz6vvUD3oCT_jv_J5c_6KFuW0bs7EadIzr6OyxIasmJB9f0PvrKackVIBaRsFK-0stBeq1jraWibIe0x4V8n-DqK_LxdtuDwLz4StmNGea8b709nnGHKo6LHjY6UtNxFRoL3LvpEKfLl3hjdjYHY9syToDuM2pO38ed50RsrAYxQmOxUUkTk4lJsAL576_C7ixRLkb6v0gGEBz19nHYgwz5tF4VetmM5wctrqTBPzgnGA3Vrxc60mpoDN6zujvfITr8U2NsMq8ucDdCh1a-zyQsms4KWk3XQaSgMr54DgjA>

Even
Le 08/12/2021 à 14:06, paul.m...@lfv.se<mailto:paul.m...@lfv.se> a écrit :
Hi,
I'm trying to read a XML (AIXM) file. But ogrinfo says it can't be read with 
either  KML, KMZ or GML installed drivers (among other formats).
Is there anything I must do, the GML, KML, KMZ drivers are there. I'm working 
in Windows 10.
Kind Regards,
Paul


    [1_LFV_svensk_96]
  Paul Malm

  Operations / AIM Flyginfo SE



  Direkt  08-797 70 23  Mobil 070-860 11 15
  paul.m...@lfv.se<mailto:paul.m...@lfv.se>
   Besöks- och postadress
   LFV Flyginfo SE
   Af Pontins väg 6
   115 21 STOCKHOLM







   Tänk på miljön innan du skriver ut detta e-postmeddelande.







_______________________________________________

gdal-dev mailing list

gdal-dev@lists.osgeo.org<mailto:gdal-dev@lists.osgeo.org>

https://lists.osgeo.org/mailman/listinfo/gdal-dev<https://url11b.mailanyone.net/v1/?m=1muwp2-00020I-3x&i=57e1b682&c=8cQdqlhVp6efzQPPPMP2SSoz1twQoc-Brn1LHEqN6oLcHdKYGbwOMLaS1ud2-c3K2wJz_BjWpsvl_sFiClF25Mkjf26TUJ0lngn57KfU5_1pvRYlSzF-TSRVK7FmkE2-lN-FzsJrpQ_uALYChCE8uKG44TrZXaSjXrm6_g5glOMqqxyXu2se8hTXiVV0TcMyWT0PM6bRtDidilS2e5dRAkGN4FniHqO-r279Xxlxc_0BS-JA8pt3peQIVgFzxvXtOViQeKZo18om84eSdbwiswYDunnqEYA2qSjoRj7hSPISZXTR0sM0VLk1J7OS85xk>

--

http://www.spatialys.com<https://url11b.mailanyone.net/v1/?m=1muwp2-00020I-3x&i=57e1b682&c=YwQqpD2eaPwcv6LDZBcVDWMnjpiEULCacsUNFprErGwVLGI8CsHK3CFLDUm1C9iguPEKghMKrE1S38rRIq9iX0dMmZ8_TZG28jNN05jm0SSkJg9nYMej-gdcJAdasx1eJ5jQflEf3TPJBK-Ny18ruljafZ8yd5uCbB3JPK79JbPtzHZFMCGNPSMCCnAxtihQnz7g-LFEjGKX5k1jAJ3zg-I1V5yEWedzV9cAzxofReXeozuQNOdAjImHBEhMrH-SC5OU3ZABTJyNhCfym4wWfg>

My software is free, but my time generally not.
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to