[Gvsig_english] error loading big shapefile

Juan Lucas Dominguez Rubio jldominguez at prodevelop.es
Tue Mar 2 18:55:22 CET 2010


Hello. Just to quantify what we mean by "quite big", you can run this to see a summary of your large shapefile (sorry for the ugly syntax). Simply replace the two occurrences of "myfile" and send the output to the list. That will give us an idea:
 
ogrinfo -geom=SUMMARY myfile.shp myfile | awk '{ if (NR <= 10) print; if ($1=="POLYGON") { pol++; vert=vert + $3; if ($3 > maxv) maxv=$3; } if ($1=="LINESTRING") { pol++; vert=vert + $3; if ($3 > maxv) maxv=$3; } } END { print "========="; print "POLYGONS OR LINESTRINGS: " pol; print  "VERTICES: " vert; print "MAX VERTICES: " maxv;  }'
 
 
(perhaps I forgot something and it'll need some small changes)
Regards,
 
 
 
Juan Lucas Domínguez Rubio
---
Prodevelop SL, Valencia (España)
Tlf.: 96.351.06.12 -- Fax: 96.351.09.68
http://www.prodevelop.es <http://www.prodevelop.es/> 
---

________________________________

De: gvsig_internacional-bounces at listserv.gva.es en nombre de Wolfgang Qual
Enviado el: mar 02/03/2010 14:47
Para: gvsig_internacional at listserv.gva.es
Asunto: [Gvsig_english] error loading big shapefile



Dear list,
when loading a quite big shapefile into gvSIG, I get the following error message. It seems not to crash the application, but still, I am a little bit confused. I specified -Xmx2000M in gvSIG.sh. I would be happy, if someone could explain the error message of gvSIG

Best,
Wolfgang


Requested array size exceeds VM limit java.lang.OutOfMemoryError: Requested array size exceeds VM limit     com.iver.cit.gvsig.fmap.core.GeneralPathX. (GeneralPathX.java:196)     com.iver.cit.gvsig.fmap.core.GeneralPathX. (GeneralPathX.java:175)     com.iver.cit.gvsig.fmap.drivers.shp.IndexedShpDriver.getShape(IndexedShpDriver.java:336)     com.iver.cit.gvsig.fmap.layers.VectorialFileAdapter.getShape(VectorialFileAdapter.java:144)     com.iver.cit.gvsig.fmap.drivers.featureiterators.SpatialQueryFeatureIterator$IGeometryBoundProvider.getBounds(SpatialQueryFeatureIterator.java:346)     com.iver.cit.gvsig.fmap.drivers.featureiterators.SpatialQueryFeatureIterator$FastSpatialCheck.intersects(SpatialQueryFeatureIterator.java:420)     com.iver.cit.gvsig.fmap.drivers.featureiterators.SpatialQueryFeatureIterator.hasNext(SpatialQueryFeatureIterator.java:176)     com.iver.cit.gvsig.fmap.layers.FLyrVect._draw(FLyrVect.java:436)     com.iver.cit.gvsig.fmap.layers.FLyrVect.draw(FLyrVect.java:631)     com.iver.cit.gvsig.fmap.DefaultMapContextDrawer.draw(DefaultMapContextDrawer.java:209)     com.iver.cit.gvsig.fmap.DefaultMapContextDrawer.draw(DefaultMapContextDrawer.java:175)     com.iver.cit.gvsig.fmap.MapContext.draw(MapContext.java:1092)     com.iver.cit.gvsig.fmap.MapControl$PaintingRequest.paint(MapControl.java:1043)     com.iver.cit.gvsig.fmap.MapControl$Drawer2$Worker.run(MapControl.java:1234)     java.lang.Thread.run(Unknown Source)
--
Sicherer, schneller und einfacher. Die aktuellen Internet-Browser -
jetzt kostenlos herunterladen! http://portal.gmx.net/de/go/chbrowser
_______________________________________________
Gvsig_internacional mailing list
Gvsig_internacional at listserv.gva.es
http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserv.gva.es/pipermail/gvsig_internacional/attachments/20100302/28b69c14/attachment.htm 


More information about the Gvsig_internacional mailing list