Split polygon using offset distance method in ArcGIS using VB.NET/C# - arcgis

I am developing the extension on ArcMap for custom mapping solution.I have the requirement for splitting the polygon on ArcMap using VB.NET or C#. The algorithm is something like below-
Given as line on the polygon, the split operation should cut the polygon using offset line and area technique. I have prepared image below which may illustrate the scenario.
Does anyone has clue or snippet which does the same?
Thanks!

Related

How to add a point to an AutoCAD drawing using the command line

I work in the field of GIS and I am working with contours, point heights and other datasets which have elevation related information.
In a GIS software (for example QGIS), I can extract the geometry attributes of a line, polygon or a set of points. Consequently, I can also write the set of points and their geometrical attributes to a text file through Python scripting.
There a person who does not use QGIS and is specifically unaware of GIS based techniques. Consequently, the files that I generate using QGIS are completely useless to him. Further, he also works on a Mac OS based computer and therefore the GIS based Autocad is also not available with him.
Therefore, the question how can I provide a set of points with their coordinates, or a polygon with points to AutoCAD via a command line. For example, do we have a command or set of commands like
SET ORIGIN TO 50000,5000
ADD POINT 51000, 51000
...
In AutoCAD he may use command SCRIPT.
You crerate .scr text file.
Example file with coordinates You can find here

batch convert weblinks by appending characters

is there any easy way to batch convert links by appending characters and provide batch output.
As shown in this picture
https://i.imgur.com/resTpFQ.png
The inputs will be given in batch as separate lines , and the output expected is batch in separate lines..
I do not have any programming background, so appreciate if you can direct me to any application that can easily do it without me writing the code else you can give me advice. I do have windows and MS office, so if there is something already in there, that can do it by writing a simple program, also let me know.
You can use regular expressions to achieve that. There are many online tools where you can transform your data without having tools installed locally.
I prepared an expression for you here: https://regex101.com/r/l1ZUHZ/1
Programmatically a solution could look like:
/^(http.*)/![]($1)/gm
A second example, that matches the protocol and replaces it with https: https://regex101.com/r/sufiUI/1
/^https?(:.*)/![](https$1)/gm
Sorting is a different task. I suppose you can do that in Excel for example. There's also a sort command available in Windows.
To sort in reverse order you need the /r option.

Getting wrong page numbers in TOC via docx4j-export-fo

I'm using docxj4 for generating Word documents and now I need to generate a table of contents. Since 3.3.0 version docx4j uses plutext conversion service to get page numbers that is inappropriate for me, so I need to use docx4j-export-fo library for that purpose. But it produces the wrong numbering... Seems like it gets the wrong page size or something like this, because all page numbers are lag 1-2 numbers.
I've researched the source code and properties docx4j provides, but for now I didn't succeed.
As per the documentation, the standalone PDF Converter (which you can download from https://converter-eval.plutext.com/ ) exists precisely to provide better accuracy than can be expected from docx4j-export-fo.
export-fo uses XSL FO to layout the document, and because the XSL FO layout model is not a precise match for Word's, there are limits to what can be achieved.
That said, improvements may be possible in individual cases. You'd need to share your docx somewhere for specific feedback.

Creating highly formatted PDF forms using BIRT - e.g. Tax Documents

I'm using open-source BIRT and trying to generate government forms, like W-2s or 1099s (http://www.irs.gov/pub/irs-pdf/fw2.pdf). These have government-mandated positions for text and grids, so that they're machine-readable. We currently use background images of the form layout and then lay the text over the form, but this yields high file sizes (multiple MBs) and doesn't seem optimal. Any ideas how to best accomplish this? Are there any repositories for this type of file (the rptdesign)? Thanks!
Answering the second part of your question. Are there any repositories for this type of file (the rptdesign)?
The optimal repository would be the BIRT DevShare http://developer.actuate.com/community/devshare
I searched there and did not find anything. If you wanted to create something and share it. That would be the best place.
Images will almost always be the worst in terms of file size. Can you start with non-image SVG representations of the forms?

What are the specifications for a Wavefront .obj file?

I want to write a parser for Blender's .obj file. The file format seems self explanatory, but also it seems to be missing some data. For example, a simple cube (the default Blender cube) has 8 lines of vertexes, but I was expecting to see 36 lines (12 triangles to form a cube).
I think the confusion, at lease for me, stems from the way cubes are created in direct3d. Direct3d requires 36 vertexes to form a cube. So I am thinking that I need to infer the other 28 vertexes. This type of guessing could cause issues later on when trying to parse vertexes for more complex shapes. So, I thought if I could find the official specs on the file format it might provide me with some insight into how to interpret the data.
It seems that someone else had asked the same question before: How to get proper number of vertices in OBJ file from DCC tools such as Blender for use in OpenGL ES?
but it didn't have any useful information for me.
OBJ Spec
MTL Spec (you'll probably want this too at some point)
FYI OBJ is in no way related to Blender, it's just a common file format for simple models.