Jml can take only one layer. Try command as
ogr2ogr -f jml output.jml input.xml layer_name.

-Jukka--
________________________________
Lähettäjä: Uwe Dalluege<mailto:uwe.dallu...@hcu-hamburg.de>
Lähetetty: ‎21.‎10.‎2014 14:08
Vastaanottaja: Rahkonen Jukka (Tike)<mailto:jukka.rahko...@mmmtike.fi>; 
OpenJump develop and use<mailto:jump-pilot-devel@lists.sourceforge.net>
Aihe: Re: [JPP-Devel] GDAL reads and writes JUMP JML now

D:\Arbeit\ALKIS_LoD1\Test>ogrinfo ALKIS_FHH_0008.xml
Had to open data source read-only.
INFO: Open of `ALKIS_FHH_0008.xml'
       using driver `NAS' successful.
1: AP_PPO (Multi Point)
2: AP_PTO (Point)
3: AX_Baublock (Polygon)
4: AX_BauRaumOderBodenordnungsrecht (Polygon)
5: AX_BesondereFlurstuecksgrenze (Line String)
6: AX_Bodenschaetzung (Polygon)
7: AX_GeoreferenzierteGebaeudeadresse (Point)
8: AX_LagebezeichnungMitHausnummer (None)
9: AX_Flurstueck (Polygon)
10: AX_LagebezeichnungOhneHausnummer (None)
11: AX_Gebaeude (Polygon)
12: AX_LagebezeichnungMitPseudonummer (None)
13: AX_GrablochDerBodenschaetzung (Point)
14: AX_Landwirtschaft (Polygon)
15: AX_Strassenverkehrsanlage (Multi Line String)
16: AX_Vegetationsmerkmal (Point)
17: AX_Wald (Polygon)
18: ALKIS_beziehungen (None)

D:\Arbeit\ALKIS_LoD1\Test>pause
Drücken Sie eine beliebige Taste . . .

Regards

Uwe

Am 21.10.2014 um 12:32 schrieb Rahkonen Jukka (Tike):
> Do you have several layers in your XML? What do you see with plain
> "ogrinfo your-file.xml"?
>
> -Jukka-
> ------------------------------------------------------------------------
> Lähettäjä: Uwe Dalluege <mailto:uwe.dallu...@hcu-hamburg.de>
> Lähetetty: ‎21.‎10.‎2014 12:42
> Vastaanottaja: OpenJump develop and use
> <mailto:jump-pilot-devel@lists.sourceforge.net>; Rahkonen Jukka (Tike)
> <mailto:jukka.rahko...@mmmtike.fi>
> Aihe: Re: [JPP-Devel] GDAL reads and writes JUMP JML now
>
> Hi Jukka,
>
> thank you for your work!
>
> I receive an error when I try to convert an NAS xml-file to jml.
>
> D:\Arbeit\ALKIS_LoD1\Test>ogr2ogr -f "JML" xxx.jml ALKIS_FHH_0008.xml
> Layer AP_PTO not found, and CreateLayer not supported by driver.
> ERROR 1: Terminating translation prematurely after failed
> translation of layer AP_PTO (use -skipfailures to skip errors)
>
> Regards
>
> Uwe
>
> Am 20.10.2014 um 12:22 schrieb Rahkonen Jukka (Tike):
>> Hi,
>>
>> Since yesterday GDAL can read and write the JUMP JML format
>>http://gdal.org/drv_jml.html
>>
>> What does it mean?
>>
>> ·Data from any vector format that is supported by GDAL
>>http://www.gdal.org/ogr_formats.html can be converted from and into JUMP
>> JML format without a need to use shapefiles as interim format. That
>> removes some problems which come from the limitations of the shapefile
>> format:
>>
>> oColumn names can be longer than 10 characters
>>
>> oValues in string fields can be longer than 255 characters
>>
>> oLong datatime data type is supported
>>
>> oIf source data contains mixed geometry types there is no need to split
>> data into separate shapefiles by the geometry type
>>
>> I believe that GDAL JML driver will make is easier to use OpenJUMP in
>> workflows where data comes from various sources and several programs are
>> used in the processing chain.
>>
>> For testing the driver a GDAL from current trunk (revision r27882 or
>> higher) is needed. Windows users can get ready made binaries from
>>http://gisinternals.com/sdk/ by selecting some of the “development”
>> versions. The GDAL tool to use is ogr2ogrhttp://gdal.org/ogr2ogr.html.
>> As an example, for converting data from MapInfo tab into JML format the
>> command to use is
>>
>> ogr2ogr –f JML output.jml input.tab
>>
>> Feedback is welcome. I already noticed that at least on Windows with
>> Finnish locale OpenJUMP claims to store XML in UTF-8 which is not true.
>>
>> Driver is written by Even Rouault and donated to OpenJUMP community by me.
>>
>> -Jukka Rahkonen-
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Comprehensive Server Monitoring with Site24x7.
>> Monitor 10 servers for $9/Month.
>> Get alerted through email, SMS, voice calls or mobile push notifications.
>> Take corrective actions from your mobile device.
>>http://p.sf.net/sfu/Zoho
>>
>>
>>
>> _______________________________________________
>> Jump-pilot-devel mailing list
>> Jump-pilot-devel@lists.sourceforge.net
>>https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>>
------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to