Skip to content

Instantly share code, notes, and snippets.

View bojko108's full-sized avatar

Bogdan Hristozov bojko108

View GitHub Profile
... rest of your makeaddin.py file
destPath = 'C:\\Users\\bojko108\\Documents\\ArcGIS\\AddIns\\Desktop10.6\\{}.esriaddin'.format(
os.path.basename(current_path))
os.popen('copy {} {}'.format(out_zip_name, destPath))
print('.esriaddin file copied to: {}'.format(destPath))
ArcFM CGOs (CLSID)
{EA831E01-7D3D-11D4-9A1B-0001031AE963} mmGeodatabase.MMArcFMObject
{EA831E02-7D3D-11D4-9A1B-0001031AE963} mmGeodatabase.MMArcFMFeature
{EA831E05-7D3D-11D4-9A1B-0001031AE963} mmGeodatabase.MMArcFMSimpleEdgeFeature
{EA831E06-7D3D-11D4-9A1B-0001031AE963} mmGeodatabase.MMArcFMComplexEdgeFeature
{EA831E03-7D3D-11D4-9A1B-0001031AE963} mmGeodatabase.MMArcFMSimpleJunctionFeature
{1CBACE68-7E30-46EF-89F6-486082380E16} mmGeodatabase.mmArcFMAnnotationFeature
Designer CGOs (CLSID)
{53D0BFE5-446E-11D3-88FC-00104B9F25F6} mmGeodatabase.D8DesignFeature
@bojko108
bojko108 / README.md
Last active September 24, 2020 06:35
Debug ArcObjects on .NET 4.x
@bojko108
bojko108 / README.md
Created June 29, 2020 05:32
Do not copy local if in GAC

VS 2015 copies to GAC references of a project regardless of copy local setting. Add this property in your *.csproj file to disable this behaviour:

<PropertyGroup>
  <!-- Fix the default copy local behaviour changed in VS 2015 -->
  <DoNotCopyLocalIfInGac>true</DoNotCopyLocalIfInGac>
</PropertyGroup>
@bojko108
bojko108 / README.md
Last active December 8, 2020 22:46
Transform data using ArcGIS Geometry Service

Transform WGS84 to Stereo70

Input Parameters

  • Input Spatial Reference: 4326
  • Output Spatial Reference: 31700
  • Geometries:
{
  1. Navigate to kade.si or another web map site.
  2. Open browsers console and set width and height properties of the map's target element.
  3. Resize the browser window so the map can update its size and fill the entire target element, or run:
map.updateSize()
  1. Save the map image by right clicking the map element.
@bojko108
bojko108 / NanoHTTPD.java
Last active April 11, 2020 11:06
Modified NanoHTTPD v2.3.1 - workaround for "Broken Pipe" exception added + more static mime types
package com.bojkosoft.bojko108.mobiletileserver.server;
/**
* Modified NanoHTTPD based on: <a href="https://github.com/NanoHttpd/nanohttpd/issues/232#issuecomment-383230330">Broken Pipe exception</a>
* <p>
* I was using newChunkedResponse() in my app (<a href="https://github.com/bojko108/mobile-tile-server">Mobile Tile Server</a>),
* but there were exceptions simmilar to "Broken Pipe" so I've replaced them with newFixedLengthResponse() and it works for now.
* The good thing is that all map tiles are with fixed length so there is no need to use newChunkedResponce().
* <p>
* Added TryCatch in sendBody(), starting at LINE 1700:
@bojko108
bojko108 / qgis-generate-xyz-tiles.py
Last active April 24, 2024 17:38
Set of scripts designed for use in QGIS 3
"""
Run this script from the Python console inside QGIS.
It creates XYZ Tiles from the map using Generate XYZ Tiles (Directory) tool.
Zoom to desired area and run this script. You can change the input parameters as needed.
Script by bojko108, 27.03.2020
"""
@bojko108
bojko108 / GitHub-Forking.md
Created August 2, 2019 11:05 — forked from Chaser324/GitHub-Forking.md
GitHub Standard Fork & Pull Request Workflow

Whether you're trying to give back to the open source community or collaborating on your own projects, knowing how to properly fork and generate pull requests is essential. Unfortunately, it's quite easy to make mistakes or not know what you should do when you're initially learning the process. I know that I certainly had considerable initial trouble with it, and I found a lot of the information on GitHub and around the internet to be rather piecemeal and incomplete - part of the process described here, another there, common hangups in a different place, and so on.

In an attempt to coallate this information for myself and others, this short tutorial is what I've found to be fairly standard procedure for creating a fork, doing your work, issuing a pull request, and merging that pull request back into the original project.

Creating a Fork

Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your repo or j