Skip to content

Instantly share code, notes, and snippets.

View johan974's full-sized avatar

holtdev johan974

  • Netherlands
View GitHub Profile
@johan974
johan974 / Sample-file--structure.xml
Created September 2, 2023 19:51
Sample file structure
<headers...>
<featurecollection>
<feature> # id with only new geometry, so new object
<id>1234</id>
<type>new</type>
<geometry>...gml...</geometry>
</feature>
<feature> # id with current and new geometries, so object change
<id>1235</id>
<type>current</type>
@johan974
johan974 / Sample-data-map-change.xml
Created September 2, 2023 16:21
Sample data map change
<ogr:FeatureCollection xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ogr="http://ogr.maptools.org/" xmlns:gml="http://www.opengis.net/gml/3.2" gml:id="aFeatureCollection" xsi:schemaLocation="http://ogr.maptools.org/ gml_polygons.xsd">
<gml:boundedBy>
<gml:Envelope srsName="urn:ogc:def:crs:EPSG::4326">
<gml:lowerCorner>0.0 0.0</gml:lowerCorner>
<gml:upperCorner>4.0 3.0</gml:upperCorner>
</gml:Envelope>
</gml:boundedBy>
<ogr:featureMember>
<ogr:gml_polygons gml:id="gml_polygons.0">
<gml:boundedBy>
@johan974
johan974 / Complete OkHttp listing
Created May 27, 2017 07:10
New logging process
public class OkHttpGeocaching {
PersistentCookieStore cookieStore;
boolean forceOkHttpLogin = false;
String username;
String password;
boolean forceLogin = false;
String gcId;
Context context;
String status = "not started";