How to import all fields of my GML file

How to import all fields of my GML file

patrickvanhoeijen
Contributor Contributor
5,231 Views
43 Replies
Message 1 of 44

How to import all fields of my GML file

patrickvanhoeijen
Contributor
Contributor

I have this GML file attached ( I renamed to txt as I could not upload GML). I try to import this in Autocad map via Mapimport>GML. Some of the data I cannot import, I am interested in these fields/values for example to display as labels/texts:

<oz:kadastraleAanduiding>
<oz:TypeKadastraleAanduiding>
<oz:kadastraleGemeente>
<oz:KadastraleGemeente>
<t:code>272</t:code>
<t:waarde>Emmen</t:waarde>
</oz:KadastraleGemeente>
</oz:kadastraleGemeente>
<oz:sectie>AF</oz:sectie>
<oz:perceelnummer>58</oz:perceelnummer>
<oz:aKRKadastraleGemeenteCode>
<oz:AKRKadastraleGemeenteCode>
<t:code>319</t:code>
<t:waarde>EMN00</t:waarde>
</oz:AKRKadastraleGemeenteCode>
</oz:aKRKadastraleGemeenteCode>
</oz:TypeKadastraleAanduiding>
</oz:kadastraleAanduiding>

 

Anyone can help me?

0 Likes
5,232 Views
43 Replies
Replies (43)
Message 21 of 44

АлексЮстасу
Advisor
Advisor

This *.xsd will unfortunately not help you either. 😞

 

My hypothesis is that if make the correct *.xsd schema file, could connect it in import to Driver Options and read your GML directly without third-party software.
You can save all settings, including schema, desired fields, layers, etc., to Saved profiles. And after that, imports would be simple and fast.

 

I am not a specialist in GML and in their schemas. Programmers could probably help. For example,

or others...

 


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help

0 Likes
Message 22 of 44

ChicagoLooper
Mentor
Mentor

@patrickvanhoeijen wrote:

<<I am curious about this XSD file and how this could help me further.>>


 

You don't need an XSD file. The entire procedure can be performed in Map3D.

 

The video below shows how to use MapImport to import your gml file including your line work and the data. It also demonstrates how to shorten the field names. (If the field names are too long, Map3D won't import the fields properly.) You'll likely need a 'cheat sheet' or a copy of the original field names because once they're edited, they might not be recognizable. Even though the fields are shortened, the video shows the fields are still distinct from one another because their names only change by one character. Once the map import is done, the gml data can be viewed at the bottom of the Properties Palette as Object Data. Note: Shortening a field name merely reduces the number of characters in the field's name. It does not affect the attribute data. 

 

To see how, you may click >>HERE<<.

 

9988_video.png

 

Chicagolooper

EESignature

Message 23 of 44

Pointdump
Consultant
Consultant

@ChicagoLooper,
Nice! Good video.
Dave

Dave Stoll
Las Vegas, Nevada

EESignature

64GB DDR4 2400MHz ECC SoDIMM / 1TB SSD
NVIDIA Quadro P5000 16GB
Windows 10 Pro 64 / Civil 3D 2025
0 Likes
Message 24 of 44

Pointdump
Consultant
Consultant

@ChicagoLooper,
When I hit "Driver Options..." I get this, then an AutoCAD fatal error, then my computer crashes.

 

GML_6.png

 


Dave

Dave Stoll
Las Vegas, Nevada

EESignature

64GB DDR4 2400MHz ECC SoDIMM / 1TB SSD
NVIDIA Quadro P5000 16GB
Windows 10 Pro 64 / Civil 3D 2025
0 Likes
Message 25 of 44

ChicagoLooper
Mentor
Mentor

Mr. @Pointdump ,

I don't know what to tell you. Shut down and reboot? Re-copy the original txt that was uploaded in an earlier post by the OP then change the extension to .gml?

 

If it means anything.....in the past I used to click that same button when performing a mapimport on kmz's and I'd crash without the message you got. Just crashed, without any warning, without any error message. It happened so often I decided to stay away from that button for fear of losing time due to restarting all over. Now that button works. No crashing. And weird thing is I don't know how it corrected itself. IDK. Karma maybe?

Chicagolooper

EESignature

Message 26 of 44

АлексЮстасу
Advisor
Advisor

@ChicagoLooper,

Great!
You noticed what I missed!
Indeed, no schema is needed.
But the way through Drawing Options is what need!
Exactly that the scheme is not needed. And need to collect fields from GML itself.


Only in 2019 and older, this option is called differently - not Map FeatureCollection, but Show Feature Types from -- Dataset Only.

Dataset_only.png
Unnecessary fields in the Perceel table can be disabled, and the necessary fields can be named correctly.
And all these settings and all other settings can be Save in Saved Profiles - see the dkk_perceel.ipf settings file (in dkk_perceel-ipf.zip).


Then when importing, it will be enough to make Load settings, and the import will be fast, easy and identical.

Fields after Load settings:

Saved_Fields.png

 


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help

Message 27 of 44

АлексЮстасу
Advisor
Advisor

@Pointdump,

They tell you something about "windows"...

Most likely I'll write nonsense, but before Map really did not like in some cases, if in Windows in the settings Language... the separator was a comma, not a dot.

 


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help

0 Likes
Message 28 of 44

patrickvanhoeijen
Contributor
Contributor

Thanks for the video and the other reply explaining some of the steps required to perform my task. I will go throgh these and let you know if this all will help me.

0 Likes
Message 29 of 44

Pointdump
Consultant
Consultant

Alexander,

"Only in 2019 and older, this option is called differently - not Map FeatureCollection, but Show Feature Types from -- Dataset Only."

OK, I wondered, because my 2018 works like that. And I don't get the crash like 2020.

Dave

Dave Stoll
Las Vegas, Nevada

EESignature

64GB DDR4 2400MHz ECC SoDIMM / 1TB SSD
NVIDIA Quadro P5000 16GB
Windows 10 Pro 64 / Civil 3D 2025
Message 30 of 44

АлексЮстасу
Advisor
Advisor

Dave,

My dkk_perceel.ipf, made in 2019, is read in your 2020? Or killing AutoCAD?

 


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help

0 Likes
Message 31 of 44

Pointdump
Consultant
Consultant

Hi Alexander,
I haven't tried yet, but found my problem identified >>>Here<<< and fix is >>>Here<<<.
Sorry, I don't know what to do with "ipf".
Dave

 

GML_7.png

 

Dave Stoll
Las Vegas, Nevada

EESignature

64GB DDR4 2400MHz ECC SoDIMM / 1TB SSD
NVIDIA Quadro P5000 16GB
Windows 10 Pro 64 / Civil 3D 2025
Message 32 of 44

АлексЮстасу
Advisor
Advisor

* .ipf - saved import settings. They are loaded in the Import window by the Load button.

 


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help

0 Likes
Message 33 of 44

Pointdump
Consultant
Consultant

Alexander,
I finally figured out where the "Load" button is. But what "Load" does I haven't a clue. Where did you find this "IPF" file and what does it do? I'm not getting any OD at all. (And I'm not touching the "Driver Options" button.)
Dave

 

GML_8.png

 

Dave Stoll
Las Vegas, Nevada

EESignature

64GB DDR4 2400MHz ECC SoDIMM / 1TB SSD
NVIDIA Quadro P5000 16GB
Windows 10 Pro 64 / Civil 3D 2025
0 Likes
Message 34 of 44

АлексЮстасу
Advisor
Advisor

Dave,

 

1. 2020 didn't die after downloading my *.ipf?


2. After loading my *.ipf and importing you have OD on objects?

With these data fields:

gml_import_ipf.png


3. *.ipf - the import settings I saved (Save button): both Driver Options settings, OD settings, and OD fields, and how to import polygons.

 

You can always save your import settings to the * .ipf you specify (Save button).

 


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help

0 Likes
Message 35 of 44

Pointdump
Consultant
Consultant

Alexander,
No, I didn't get any OD on anything in the drawing. But also, AutoCAD didn't die either.
Dave

Dave Stoll
Las Vegas, Nevada

EESignature

64GB DDR4 2400MHz ECC SoDIMM / 1TB SSD
NVIDIA Quadro P5000 16GB
Windows 10 Pro 64 / Civil 3D 2025
Message 36 of 44

АлексЮстасу
Advisor
Advisor

Dave,

I asked you to check in 2020 to understand how different versions perceive *.ipf made in other versions.
And even he himself did not check in 2018 - import does not!  😞

 

Perhaps my *.ipf made in 2019 is not perceived in 2020 due to the difference between Driver Options in 2019 and 2020.
And in 2018 it is not imported due to the fact that gml in the 2019 version (v20190402):

 

        xmlns:kk="http://www.kadaster.nl/schemas/brkkadastralekaart/v4/featurecollection/v20190402"
        xmlns:oz="http://www.kadaster.nl/schemas/brkkadastralekaart/v4/imkad-onroerendezaak/v20190402"
        xmlns:h="http://www.kadaster.nl/schemas/brkkadastralekaart/v4/imkad-historie/v20190402"
        xmlns:t="http://www.kadaster.nl/schemas/brkkadastralekaart/v4/imkad-typen/v20190402"
        xmlns:ko="http://www.kadaster.nl/schemas/brkkadastralekaart/v4/imkad-kadastraalobject/v20190402"

 

 


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help

0 Likes
Message 37 of 44

Pointdump
Consultant
Consultant

Alexander,
Even after installing the >>>Single Sign On Fix<<<, hitting "Driver Options" still crashes my 2020. That is after shortening all the attributes.
Dave

 

GML_9.png

 

GML_9-1.png

 

Dave Stoll
Las Vegas, Nevada

EESignature

64GB DDR4 2400MHz ECC SoDIMM / 1TB SSD
NVIDIA Quadro P5000 16GB
Windows 10 Pro 64 / Civil 3D 2025
Message 38 of 44

patrickvanhoeijen
Contributor
Contributor

Thanks, I managed to import the way you described, following all steps and the .ipf file.

However, one fields of the GML file seems to be imported in your situation, but will not in mine: the one that is called OZ_perceelnummer in your screenshot (that's how you renamed I think).
Any idea why? How did you manage to import that field as well? Maybe you could share your ipf file with me?
If this final step will be solved as well, my next question/step will be: how to easily show few of the Object data fields with the polygons on the drawing/map....

Message 39 of 44

АлексЮстасу
Advisor
Advisor

Patrick,

 

My *.ipf has been attached to 26 in zip, I am attaching again.
It was made in 2019, but I myself cannot check whether it acts the same in 2020...


Maybe @ChicagoLooper will help.

 


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help

Message 40 of 44

patrickvanhoeijen
Contributor
Contributor

This ipf file works well on my side. So curious how you prepared this? If I follow the steps of the video you posted I miss one of the fields as mentioned earlier.
Besides this, could one of you tell me what command or menu I could use to show the values of one or several fields of the OD_perceel data on the map with the polygons or points?