Tag Info

New answers tagged

1

That's a feature in pgadmin/PostGIS - it won't show geometry column values if they are too long. It's mentioned in the PostGIS manual http://postgis.net/docs/manual-dev/PostGIS_FAQ.html#pgadmin_shows_no_data_in_geom


1

Figured it out thanks to some documentation reading. The polygon in leaflet responds to setStyle but the marker can be changed using setIcon Documentation for setIcon


1

Seems like you can't do that because a marker uses an image to render. I think you'd need to grab the icon class of your marker and change the "iconUrl" attribute to whatever new image you want. Source: Leaflet API Reference Hope that helps, DR


0

Sorry for the late reply but there is also the leaflet-vector-layers plugin which has support for postGIS services http://jasonsanford.github.io/leaflet-vector-layers/demos/postgis-restful-web-service-framework/ By the looks of it you can filter the service. I've used this plugin for ArcGIS services and it's been really good. Hope that helps, Rowan


1

You can use the Dissolve tool from QGIS: Vector > Geoprocessing Tools > Dissolve


0

If its a one time query and you don't have more than 1000 features try pasting this into qgis by using the add vector layer - choose protocol and replace this arcgis rest URL with yours: http://geodata.epa.gov/arcgis/rest/services/OAR/USEPA_NEI_2005/MapServer/1/query?where=objectid+%3D+objectid&outfields=*&f=json ... This assumes you have gdal 1.10 ...


1

For a one-time conversion I would have used the accepted answer from @Sasa Ivetic but needed something real-time, and Terraformer worked decently for that. Unfortunately it's only for single features by default, so for multiple features you need to loop through the array and add an ID to each feature: var FeatureCollection = { type: "FeatureCollection", ...


1

The quickest way to do this is https://mangomap.com, you should be able to get the whole thing set up in about 10 minutes without writing a single line of code. I'm the CEO, just give me a ping on chris@mangomap.com if you have any questions.


-1

Ok, my assumptions in 2 were incorrect. You can use mapbox.js. The end result will be a bit different, I believe - the markers themselves will be a static raster layer, but they'll be clickable. The spec that makes large scale interactivity work is https://github.com/mapbox/utfgrid-spec It's implemented clientside in ...


3

There is a plugin for that: Leaflet.Terminator.


2

I'm not sure who you consulted, but this doesn't seem like great advice. The problem seems to be not one of negative values but more the order of x and y co-ordinates. A latitude (y) can only be in the range of -90 to +90. Longitude (x) can be -180 to +180, broadly speaking. These co-ordinates are from the equator and the Greenwich meridian, respectively. ...


0

Technically we don't support shapefiles with ArcGIS Runtime SDK for Android, but it can be done. Concerning loading points from a json file you need to parse the geojson file. // Making the request and getting the response HttpClient client = new DefaultHttpClient(); HttpGet req = new HttpGet(url); HttpResponse res = client.execute(req); // Converting ...


2

Two options: You could try using this python script, to merge. Add the geojson into QGIS, convert to shapefile, edit/merge features, and finally export back out to geojson.


0

Both of them are valid GeoJSON, but most software tend to use the former. Additionally a GeoJSON file in the former format can be converted to other formats likes KML & Shapefile etc. So I'll suggest that you use the former format, unless you have some specific reason to use the latter format.


2

The controls on the map appear to be OpenLayers. Here's how you can find out yourself what kind of data it's using in the client in Chrome or Firefox: In Chrome, go to Menu > Tools > Developer Tools and switch to the Network tab. In Firefox, go to Menu > Developer > Network Refresh the page, pan around the map a few times, see what resources load.


1

You can write a script that reads the JSON file, appends the new features and write it back. That way when the map is loaded, it reads the new GeoJSON file. import json # Load existing data with open('test.json') as f: data = json.load(f) # Add data feature = {} feature['type'] = 'Feature' feature['geometry'] = {'type': 'Point', ...


0

I found it. It was a security property of Chrome: XMLHttpRequest cannot load file:///C:/Users/.../emprise.json. Cross origin requests are only supported for HTTP. I have to launch Chrome using a command prompt: C:\Program Files (x86)\Google\Chrome\Application>chrome.exe --disable-web-securtiy See for instance Stack Overflow question Error message ...


3

I am not sure which GDAL version ogr2gui is using but with a current ogr2ogr it is for sure possible. Read first the driver manual page http://www.gdal.org/drv_csv.html Layer creation options: GEOMETRY (Starting with GDAL 1.6.0): By default, the geometry of a feature written to a .csv file is discarded. It is possible to export the geometry in its ...


0

I am feeding my vector data into a OSM-like postgis database, and use Mapnik to render tiles from that (only the vector data, not together with other data). The mapnik style allows to create a transparent background: Map bgcolor="#ffffff" For displaying, I use openlayers, but leaflet should do as well: http://powerland.bplaced.net/osm-power.htm


1

The documentation is not that clear, I had the same issue and needed to dig around in the topojson test scripts to work it out. https://github.com/mbostock/topojson/blob/master/test/feature-test.js You do it by passing a function as an option, like this: var geojson = ...



Top 50 recent answers are included