2

I have already an operational application but which convert gml to shape. The requirement of the gml file size to be supported was increased to 2GB. Upon execution, OutOfMemory exception occurs.

Any guidance on the right direction is appreciated.

eros
  • 4,946
  • 18
  • 53
  • 78
  • What software gives the OutOfMemory exception. – Nathan W May 26 '11 at 01:31
  • My apology. I forgot to include the application. It is Java application. Perhaps, something wrong with the coding that's why the unnecessary memory usage remains. – eros May 26 '11 at 03:28
  • I just want to add the split functionality when the file size is more than 1GB. What is the best approach to split a GML file? – eros May 26 '11 at 03:29
  • 1
    Most of my questions indicate you should repost this on SO; you're really asking how to efficiently parse an XML document which is greater than memory in Java, which isn't a GIS or spatial question. – scw May 26 '11 at 03:46

1 Answers1

0

I think that you should use 64=bit OS, 64-bit Java Vm, nd extended vtd-xml. If you do all those things and have enough memory, you will be ok.

vtd-xml-author
  • 3,319
  • 4
  • 22
  • 30