Tag Info

Hot answers tagged

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. ...


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.


2

The coordinates in your example (300247, 5040897) are in some type of projected coordinate system. Coordinates in NAD27, or NAD83 (as stated in the comments there is no such thing as NAD31) are Longitude/Latitudes which are the same form as your WGS84 sample. There is no way to determine what coordinate system has been used for your data, although you ...


1

Benno, you can use Spatial Manager Desktop, the Professional edition can read and write the formats you said(among others), and also supports the execution of tasks from the command line. You can download a trial version (limited), here: http://www.spatialmanager.com/downloads/ Hope this helps Disclaimer: I work for Opencartis (Spatial Manager ...


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


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

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


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

My lib PyGeoj is specifically meant as a geojson file reader and writer, with a simple API that turns the file contents into objects with attributes, so you don't have to deal with the dictionaries directly. It also has some convenience methods, like calculate and add the bbox for the entire feature collection or just for each feature. So for instance, the ...


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", ...



Only top voted, non community-wiki answers of a minimum length are eligible