> For the complete documentation index, see [llms.txt](https://docs.ladybug.tools/dragonfly-primer/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ladybug.tools/dragonfly-primer/components/2_serialize/model_from_geojson.md).

# Model From geoJSON

![](/files/-MihrbgTAhy5QMvRrd_Z)

![](/files/-MihrakLgBqHtvPPWJMh) - [\[source code\]](https://github.com/ladybug-tools/dragonfly-grasshopper/blob/master/dragonfly_grasshopper/src//DF%20Model%20From%20geoJSON.py)

Create a Dragonfly Model from a geoJSON file.

## Inputs

* **geojson \[Required]**

  Text for the full path to a geojson file to be loaded as a Dragonfly Model.&#x20;
* **point**

  An optional Point for where the bottom-left corner of the bounding rectangle around all of the geoJSON building footprints exists within the Rhino scene. (Default: (0, 0), the Rhino origin).&#x20;
* **all\_to\_bldg**

  Boolean to indicate if all polygon and multi-polygon geometries in the geojson file should be considered Buildings. If False or unspecified, this component will only generate Dragonfly Buildings from geometries that are defined as a 'Building' in the 'type' field of the 'properties' field of each geoJSON feature. Note that this 'type' field is not a universal convention of all geoJSONs. However, all Dragonfly-expored geoJSONs will have it and all URBANopt-compatible geoJSONs will also have it.&#x20;
* **other\_geo**

  Boolean to indicate whether geometry that is not identified as a dragonfly Building should be imported. For large geoJSONs, this can potentially increase the component runtime a lot but this geometry may be useful for constructing other important features like context or electical networks.&#x20;
* **import \[Required]**

  Set to "True" to import the geoJSON as a Dragonfly Model.&#x20;

## Outputs

* **report**

  Reports, errors, warnings, etc.&#x20;
* **model**

  A Dragonfly Model object derived from the input geoJSON.&#x20;
* **other\_geo**

  Other non-building line segment and polygon data contained within the geoJSON. Will be None unless other*geo* is set to True.&#x20;
* **location**

  A ladybug Location object possessing longitude and lattiude data used to position geoJSON file on the globe.&#x20;
* **point**

  A Point for where the \_location object exists within the space of the Rhino scene. This is can be used to re-position the geoJSON file on the globe when re-exporting the Dragonfly Model to geoJSON.&#x20;


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.ladybug.tools/dragonfly-primer/components/2_serialize/model_from_geojson.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
