<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
thank you guys, a lot of useful information!<BR>
finally, I'm tryin' what works best in my case.<BR>
<BR>
cheers<BR>
manuel<BR> <BR>
<HR id=stopSpelling>
Date: Wed, 16 Mar 2011 12:05:18 +0100<BR>Subject: Re: [gdal-dev] netCDF to Shapefile<BR>From: andreasft@gmail.com<BR>To: pcorti@gmail.com<BR>CC: manuelrainer@hotmail.com; gdal-dev@lists.osgeo.org<BR><BR>I have done this but not to a shapefile direct, but into a postgis database.
<DIV>Use for loops to loop through the temporal dimension, then the lon and lat as sub loops.</DIV>
<DIV>Then you create an insert string to input each line of data into the sql database.</DIV>
<DIV>In our NetCDF we have 720x360 observations spatially and 1308 temporal dimension observations.</DIV>
<DIV>Thats a lot of data!</DIV>
<DIV><BR></DIV>
<DIV>Andreas</DIV>
<DIV><BR><BR>
<DIV class=ecxgmail_quote>2011/3/16 Paolo Corti <SPAN dir=ltr><<A href="mailto:pcorti@gmail.com">pcorti@gmail.com</A>></SPAN><BR>
<BLOCKQUOTE style="BORDER-LEFT: #ccc 1px solid; PADDING-LEFT: 1ex" class=ecxgmail_quote>
<DIV class=ecxim>On Wed, Mar 16, 2011 at 3:51 AM, Manuel Rainer <<A href="mailto:manuelrainer@hotmail.com">manuelrainer@hotmail.com</A>> wrote:<BR>> Hi,<BR>><BR>> I would like to convert certain time slices (records) out of a netCDF file<BR>> to a Shapefile.<BR>> The netCDF file has 7> GB, so what is the best proceed to get an appropriate<BR>> performance?<BR>> I mean, should the data be cached (e.g. in an ASCII file, ...)<BR>> before writing a Shapefile or can the shp directly be generated?<BR>> Perhaps you have some experiences...<BR><BR></DIV>Hi<BR>I don't know what you mean with performance (maybe the time needed to<BR>make the export or the subsequent access to them?), but as far as I<BR>remember shapefile has a file size<BR>limit of 2 Gb, I personally would avoid that approach.<BR>Here PostGis seems to well suit in the scenario, but if you don't have<BR>the possibility to access/create a PostGis infrastructure, I<BR>personally would give a try to Spatialite.<BR><BR>If performance are really a concern, you could instead opt for a NoSQL<BR>database: CouchDb has a nice spatial module [0] as far as I have<BR>heard.<BR>You could use the shp2geocouch approach utility [1] (first export to json with<BR>ogr2ogr then json to couchdb) for loading your data.<BR>Please note that if you opt for the latest, I am not sure if you will<BR>have tools for symbology and map creation at this time, neither you<BR>can use the GDAL API.<BR><BR>best regards<BR>Paolo<BR><BR>[0] <A href="http://vmx.cx/blog/2009-11-17/geodata-and-couchdb.htm" target=_blank>http://vmx.cx/blog/2009-11-17/geodata-and-couchdb.htm</A><BR>[1] <A href="https://github.com/maxogden/shp2geocouch/blob/master/bin/shp2geocouch" target=_blank>https://github.com/maxogden/shp2geocouch/blob/master/bin/shp2geocouch</A><BR><FONT color=#888888><BR>--<BR>Paolo Corti<BR>Geospatial software developer<BR>web: <A href="http://www.paolocorti.net/" target=_blank>http://www.paolocorti.net</A><BR>twitter: @paolo_corti<BR></FONT>
<DIV>
<DIV></DIV>
<DIV class=h5>_______________________________________________<BR>gdal-dev mailing list<BR><A href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</A><BR><A href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target=_blank>http://lists.osgeo.org/mailman/listinfo/gdal-dev</A><BR></DIV></DIV></BLOCKQUOTE></DIV><BR></DIV>                                            </body>
</html>