ClearSKY FaviconClearSKY Polygon Tools

Polygon Formats That Keep Attributes and Metadata.

2026-01-08 · 6 min read · WKT · WKB · GeoJSON · Shapefile · KML · KMZ · attributes · properties · metadata · CRS · GIS

Some polygon formats carry attributes, CRS metadata, and styling. Others are geometry only. Learn what survives conversion, when to use each format, and how to avoid losing fields in ClearSKY Polygon Tools.

Try it now

When people say “convert my polygon”, they often mean more than geometry. They usually mean geometry plus:

Some formats keep this. Some formats drop it by design.

This guide helps you choose formats based on what you need to preserve.


The core idea. Geometry only vs features with properties

There are two common “shapes” of data.

Geometry only

This is just coordinates and topology. No fields. No labels. No dataset context.

Typical examples:

Features with properties

This is geometry plus an attribute dictionary.

Typical examples:

If you convert a feature into a geometry only format, the attributes cannot survive. They have nowhere to go.


Quick decision guide

Use this when you do not want to think too hard.


What each format can actually carry

WKT

What it is: A text representation of geometry.

WKT is great for quick copy and paste, debugging, and simple database inputs. It is a bad choice for “dataset export” if you care about fields.

WKB

What it is: A binary representation of geometry, often transported as hex or base64.

WKB is common in databases and low level geospatial tooling. It is great when you want a compact payload and you already store attributes elsewhere.

GeoJSON

What it is: JSON that can represent geometry alone, or full features.

Important detail:

{
  "type": "Polygon",
  "coordinates": [[[0,0],[2,0],[2,2],[0,2],[0,0]]]
}
{
  "type": "Feature",
  "properties": { "name": "Field 12", "crop": "rye" },
  "geometry": {
    "type": "Polygon",
    "coordinates": [[[0,0],[2,0],[2,2],[0,2],[0,0]]]
  }
}

If you paste only the geometry object into another tool, you will lose the attributes.

Shapefile

What it is: A bundle of files, usually zipped. Geometry plus an attribute table.

Shapefile is still widely used, but it has sharp edges:

If you need modern flexible attributes, GeoJSON often feels better.

KML and KMZ

What they are: Formats for Google Earth style workflows. KMZ is just zipped KML with optional embedded assets.

KML is great when presentation matters. KMZ is great when you want one package with icons and multiple layers.


The most common way people lose attributes

Here are the classic mistakes.

If you see “my polygon converted but my fields disappeared”, it is usually one of these.


How to preserve attributes in ClearSKY Polygon Tools

ClearSKY Polygon Tools runs locally in your browser. It is fast, and it does not upload your data.

Rule 1. Validate and fix geometry separately from dataset export

The validators are meant to detect problems. They can apply conservative fixes to geometry output, but they do not manage datasets. Use them to answer “is this polygon valid”.

Use the Editor when you need to reshape, split, merge, or rebuild geometry.

Rule 2. If you need attributes, keep a container format

If you care about fields, pick an export that can carry them.

If you export as WKT or WKB, treat that as geometry only. Store attributes separately.

Rule 3. If you must convert to WKT or WKB, do it at the end

A safer workflow is:

  1. Start with Shapefile, KML, KMZ, or GeoJSON FeatureCollection.
  2. Fix geometry in the Editor.
  3. Export GeoJSON, Shapefile, or KML if you still need fields.
  4. Convert to WKT or WKB only for the final target that requires geometry only.

CRS notes that matter for metadata

CRS mistakes look like attribute loss, because the geometry “moves” or becomes nonsense.

If you store WKT or WKB, always store an EPSG code next to it.


Practical checklist

Use this before you hit export.

Then choose:


FAQ

Why did my attributes disappear after converting to WKT or WKB?

WKT and WKB represent geometry only. They have no place to store properties, so any fields must be stored separately or exported in a different format like GeoJSON, Shapefile, or KML.

GeoJSON can be geometry-only or a Feature. Which should I use?

Use Feature or FeatureCollection when you care about attributes. Use geometry-only when you only need coordinates and topology.

Does GeoJSON store CRS information?

In modern practice, GeoJSON is treated as WGS84 lon, lat. Some older tools supported a CRS member, but many tools ignore it. If CRS matters, store EPSG metadata alongside your file, or use a format that carries CRS explicitly, like Shapefile.

Can I keep styling when converting formats?

KML and KMZ are best for styling. GeoJSON styling is not standardized and often tool-specific. Shapefile styling is usually stored separately. WKT and WKB do not carry styling.

Which format should I choose for an API payload?

If you need attributes, use GeoJSON Feature. If you only need geometry, WKT is easiest to debug, and WKB is often the most compact.

Related resources

Related guides