Reputation
1,753
Next privilege 2,000 Rep.
Edit questions and answers
Badges
11 42
Impact
~96k people reached

  • 0 posts edited
  • 0 helpful flags
  • 76 votes cast
Sep
24
comment Alternative approach for loading osm2pgsql data
my import is finally crawling through its relations so I think it might make it but I'm not celebrating just yet. I've never previously read of the way cache but I'm glad this explains my memory errors. The VM is hosted on a SAN with very fast disks but I'm limited to a single CPU which isn't helping. I think downloading a new PBF might be the most important change I made in this import as all the suggestions above have been tried in different iterations.
Sep
22
comment Alternative approach for loading osm2pgsql data
@RustProofLabs I have been looking for an updated RAM estimation - according to wiki.openstreetmap.org/wiki/Stats there are now ~3bn nodes and there is no indication of whether memory requirements scale linearly. So far I have tested both slim mode with a high cache value and non-slim mode with a lot of memory. Both failed for different reasons
Sep
22
comment Alternative approach for loading osm2pgsql data
@RustProofLabs osm2pgsql documentation states -C or --cache option is "Only for slim mode". Do you know if this is a mistake? osm2pgsql in verbose mode doesn't complain when this option is provided in non-slim mode.
Sep
17
comment osm2pgsql Ways importing very slowly in .pbf, much slower than .osm
I re-tested with the .osm format file and it's also running slow. Since the last time I imported the .osm I have updated to the latest version of osm2pgsql from a previous 0.82. I found this mailing list entry lists.openstreetmap.org/pipermail/dev/2011-November/023841.html that suggests dramatic changes in ways import performance at a certain revision. I'm now testing with the --cache option set at 2000 to see if it helps. If now I plan to downgrade osm2pgsql and re-test the pbf
Sep
16
comment osm2pgsql Ways importing very slowly in .pbf, much slower than .osm
memory is an obvious go-to but it doesn't explain why the .pbf is soooo much slower than the .osm - I'm going to rerun with the .osm today and see what it reports for the speed
Sep
11
comment osm2pgsql import fails with parse error
@JesseCrocker thanks for the tip, it seems pretty obvious now you mention it... I'm not sure why the process I'm following uses .osm instead of .pbf but it was created several years ago and maybe things were different then.
Sep
2
comment Is there any learning material available for GE Smallworld?
I really don't like GE's approach to Smallworld. It seems based around the idea that if you want to learn anything about the product you need to contact them. I presume the approach is intended to get large customers connected with an account manager who can then smooth-talk them into a big purchase. But if you're the person trying to decide which GIS product to pursue what would you prefer - reams of marketing speak with vague references to "delivering on business goals" or an actual hands-on trial? It makes me assume their product is terrible and they need to make it very hard to back out.
Aug
27
comment ArcGIS JavaScript setRequestPreCallback is partially working?
Perhaps images are not requested via XHR? The simplest way to retrieve an image is to create an <img> element and set its src attribute. If this is the case then dojo might not even be involved
Jul
7
comment ArcGIS Javascript Api centerAt
possible that your map is displaying in web mercator (aka google projection) and lat/lon need projecting before you centerAt
Jun
23
comment Working w/ Shapefiles Containing 50,000 to 300,000 Features
Can you elaborate on "Sometimes I am able to perform operations [...] and sometimes I am not"? What happens when you are not able to perform the operation?
Apr
30
comment ExportMap in OpenLayers not finding canvas property in layers
which browser / version are you using?
Apr
14
comment ogr2ogr KML to SHP generates invalid file names from layer names
this looks like a great option, I'll try it out tonight
Mar
24
comment Debugging a MapCache / MapServer error
have you tried changing the image format from jpeg to something else (png)? If the issue revolves around tile size it could be a problem compressing the larger image to whatever the default jpeg rate is
Feb
19
comment ESRI Javascript API pan parameters
Do you also want to change the behaviour of the pan navigation buttons, or just what happens when you call the API's panUp function?
Feb
13
comment ArcMap: Output to XML Including Shape Data?
your .NET tool could be a standalone or an ArcMap add-in that calls ogr2ogr and then manages the GML output - very user-friendly. However I think you should update your question with what you ultimately want to achieve. You mention parsing the XML for... something. If you describe your end-goal you might find a tool / approach that negates some of the steps
Feb
13
comment ArcMap: Output to XML Including Shape Data?
using ogr2ogr you could automate conversion of all .shp to GML (xml) format without needing your users to do it manually. Then you can parse the GML in .NET
Feb
11
comment vb.net arcobjects enable customized context menu item only if a feature is selected
may be a better option to only update bSelected in response to events in ISelectionEvents Interface so that you're only checking the selection count when it actually changes, and not every time ArcGIS fires the update event
Feb
6
comment How do I json_encode without those quotes for the coordinates in leaflet geojson polygon?
you're storing the coordinate data as a text field in the database?
Jan
29
comment GeoServer Style referencing SQL Server data store
Sorry but I have to ask - can you remove the whitespace from the field name? I imagine you will encounter more problems like this in different applications over time and this bucks a generally accepted convention on field names that will confuse other developers in future.
Jan
27
comment Programatically add feature to Feature Layer with ArcGIS JavaScript API
I would say the best place to start is the API, particularly developers.arcgis.com/javascript/jsapi/… and developers.arcgis.com/javascript/jsapi/graphic-amd.html