New answers tagged

4

Use the CRS EPSG:3857. See below. Circle in GE Same KML as WGS 84 in QGIS Same KML again using EPSG:3857 Measure the diameter of your circle and it should be much better.


0

The <coordinates> are in longitude,latitude order. See https://developers.google.com/kml/documentation/kmlreference#syntax_151. So you wanted: <coordinates>0.03888889,51.45</coordinates> This is a pretty common mixup. Much of this stuff is done on a Cartesian plane, so think X-Y coordinates, and it'll make more sense.


0

There is a ArcGIS Tool for converting Maps into Garmin Custom Maps: https://bitbucket.org/wankoelias/maptogarmincustommap/src Its quite similar to your script... i discoverd this after i finished making this Tool :O


0

If your needs are stepping up from simple viewer to managing maps across sessions you should either build your own, or look into something offering that functionality out of the box. MapStore 2 for example offers this functionality (among several others) and it's open source: http://geosolutions-it.github.io/MapStore2/ There are other projects building on ...


1

You may not need KML for the whole world just to get labels turned on. Have you tried selecting a different base imagery layer? It's the second icon from the upper-right on the toolbar. var imagery = Cesium.createDefaultImageryProviderViewModels(); var viewer = new Cesium.Viewer('cesiumContainer', { imageryProviderViewModels: imagery, ...


3

The meridians in your Google Earth picture look like they are displaying at every 0.0035 degrees. It looks like you are measuring the distance between your data, which is placed correctly at 142E, and the 141.9985E meridian. The measured distance between 142E and 141.9985E is right around 170 meters. Your data looks correct, but you are validating ...


4

WGS84 is not a projection, it is a Datum, there is a key difference between the two. You could have WGS84 in a geographic projection, or a UTM projection, or many other projections. You want to make sure that not only are you using WGS 84, but are also using the correct projection. Google Earth uses Simple Cylindrical projection with a WGS84 datum, you are ...


0

Thanks a lot Midavolo! Unfortunately, I don't have access to the Water Utility Network Editing and Analysis toolbars (which as you say has a Rotation to Features tool that populates a ROTATION field with the orientation of a line, which you can then use to rotate your symbols for each point). However, you got me thinking that if a tool can read the direction ...


1

Got it! An environment variable needs to be set. It can be set either in the shell: export SHAPE_ENCODING="utf-8" or within the script: os.environ['SHAPE_ENCODING'] = "utf-8" I prefer to set it in the script. I tried out various ways of decoding from utf-8 and encoding to ISO8859_1 within the script with no luck. feature.SetField does not accept ...


0

Welcome to the world of Python encodings... The first line of a KML file indicates the character encoding (XML encoding declaration) <?xml version="1.0" encoding="utf-8" ?> In GDAL: KML - Keyhole Markup Language The content returned by OGR will be encoded in UTF-8, after the conversion from the encoding mentioned in the file header is. With ...


1

It's actually much simpler than what you've got going on there. ogr2ogr outputShapefile.shp input.kml Of course you can also use other option to specify srs etc. for example I work alot with a non standard crs, Lowrance Mercator Meter, so I use: ogr2ogr -t_srs "+proj=merc +a=6356752.3142 +b=6356752.3142 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=...


0

Using FME 2016.1 Dynamic Reader (for KML) Attribute Creator for ID and Populate with system parameter (SourceDataset) Trim Folder name out (c:\temp in this case) Trim .kml out of ID (leaves ID = 123) write the KML out as 'ID.kml' 6.done will batch 5000 kml files. After the comment: Dynamic Writer can be created by adding a Google KML Writer then with ...



Top 50 recent answers are included